Weixin MCP

Weixin MCP

Enables reading and extracting content from WeChat public account articles using browser automation, allowing AI models to analyze and summarize WeChat articles through natural language requests.

Category
Visit Server

README

Weixin MCP - 微信文章阅读器

一个极简的MCP,让大模型能够阅读微信公众号文章。

核心功能

  • 🎭 浏览器模拟:使用 Playwright 完整模拟浏览器环境
  • 📝 内容提取:自动提取标题、作者、发布时间、正文内容
  • 简洁实现:最少的代码实现核心功能

工作流程

  1. 用户发送URL和需求给大模型
  2. 大模型调用MCP工具
  3. MCP获取文章内容发送给大模型
  4. 大模型根据文章内容输出自然语言

技术栈

  • Python 3.10+
  • fastmcp - MCP框架
  • Playwright - 浏览器自动化
  • BeautifulSoup4 - HTML解析

快速开始

1. 安装依赖

安装Python依赖

pip install -r requirements.txt

2. 配置

{
  "mcpServers": {
    "weixin-reader": {
      "command": "python",
      "args": [
        "C:/Users/你的用户名/Desktop/wx-mcp/wx-mcp-server/src/server.py"
      ]
    }
  }
}

注意: 请将路径替换为你的实际项目路径。

使用示例

在Claude中直接使用:

请帮我总结这篇文章:https://mp.weixin.qq.com/s/nEJhdxGea-KLZA_IGw9R5A

Claude会自动调用read_weixin_article工具获取文章内容并进行分析。 alt text

功能说明

read_weixin_article(url: str)

读取微信公众号文章内容。

参数:

  • url: 微信文章URL,格式: https://mp.weixin.qq.com/s/xxx

返回:

{
  "success": true,
  "title": "文章标题",
  "author": "作者名",
  "publish_time": "2025-11-05",
  "content": "文章正文内容...",
  "error": null
}

注意事项

  • ⚠️ 仅用于个人学习和研究
  • ⚠️ 遵守微信公众平台服务协议
  • ⚠️ 不建议高频爬取(建议间隔 > 2秒)
  • ⚠️ 不用于商业用途

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured