Content
# Weixin MCP - Weixin Article Reader
A minimalist MCP that allows large models to read WeChat public account articles.
## Core Features
- 🎭 **Browser Simulation**: Fully simulate the browser environment using Playwright
- 📝 **Content Extraction**: Automatically extract title, author, publication time, and main content
- ⚡ **Concise Implementation**: Implement core functions with minimal code
## Workflow
1. The user sends the URL and requirements to the large model
2. The large model calls the MCP tool
3. The MCP obtains the article content and sends it to the large model
4. The large model outputs natural language based on the article content
## Technology Stack
- **Python 3.10+**
- **fastmcp** - MCP framework
- **Playwright** - Browser automation
- **BeautifulSoup4** - HTML parsing
## Quick Start
### 1. Install Dependencies
# Install Python dependencies
```shell
pip install -r requirements.txt
```
### 2. Configuration
```json
{
"mcpServers": {
"weixin-reader": {
"command": "python",
"args": [
"C:/Users/你的用户名/Desktop/wx-mcp/wx-mcp-server/src/server.py"
]
}
}
}
```
**Note**: Please replace the path with your actual project path.
## Usage Example
Use directly in Claude:
```
请帮我总结这篇文章:https://mp.weixin.qq.com/s/nEJhdxGea-KLZA_IGw9R5A
```
Claude will automatically call the `read_weixin_article` tool to get the article content and analyze it.
<img src="tu/0c7bbf3b419c36325c8e3e00fad207c6.png" alt="alt text">
## Function Description
### `read_weixin_article(url: str)`
Reads the content of a WeChat public account article.
**Parameters**:
- `url`: WeChat article URL, format: `https://mp.weixin.qq.com/s/xxx`
**Returns**:
```json
{
"success": true,
"title": "Article Title",
"author": "Author Name",
"publish_time": "2025-11-05",
"content": "Article main content...",
"error": null
}
```
## Precautions
- ⚠️ Only for personal learning and research
- ⚠️ Comply with the WeChat public platform service agreement
- ⚠️ It is not recommended to crawl at high frequency (recommended interval > 2 seconds)
- ⚠️ Not for commercial use
Connection Info
You Might Also Like
awesome-mcp-servers
A collection of MCP servers.
git
A Model Context Protocol server for Git automation and interaction.
Appwrite
Build like a team of hundreds
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.
chatbox
User-friendly Desktop Client App for AI Models/LLMs (GPT, Claude, Gemini, Ollama...)
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...