kk121a/my-first-mcp-server
3.2
If you are the rightful owner of my-first-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This MCP server provides a minimal tool to fetch plain text from WeChat articles.
Tools
1
Resources
0
Prompts
0
微信文章文本读取(最小版)
本 MCP 服务器新增了一个最小实现的工具:fetch_wechat_text(url),用于读取微信公众号文章的纯文本(标题 + 正文)。
依赖安装
项目已在 pyproject.toml 中声明以下依赖:
- fastmcp
- httpx
- beautifulsoup4
- lxml
使用 uv(自动创建隔离环境):
uv sync
启动服务
python server.py
工具:fetch_wechat_text
- 入参:
url(形如https://mp.weixin.qq.com/s/...) - 出参:纯文本(标题与正文,以空行分隔)
示例 URL:
https://mp.weixin.qq.com/s/nEJhdxGea-KLZA_IGw9R5A
限制与提示
- 若命中微信风控(页面出现“环境异常/去验证”),该最小实现不会自动过验证,会返回提示信息;请在浏览器中打开一次完成验证后再试。
- 该版本仅返回文本,不下载图片/音视频,也不处理登录/关注可见内容。