Content
# WeChat Official Account MCP Server
WeChat Official Account article search MCP Server + OpenClaw Skill.
Query WeChat Official Account articles through Sogou WeChat search engine to obtain the full text of articles.
## Features
- **Search Articles** — Search WeChat Official Account articles by keywords, return title, summary, date, URL
- **Search Official Accounts** — Search WeChat Official Accounts by name
- **Get Article Full Text** — Extract the complete content of WeChat articles (support Sogou jump links and direct WeChat links)
## Quick Start
### Build
```bash
go build -o wechat-mcp .
```
### Run
```bash
./wechat-mcp --port 8090
```
### Use as OpenClaw Skill
```bash
cd ~/.openclaw/skills/wechat && bash scripts/setup.sh
```
## APIs
### MCP (Model Context Protocol)
Endpoint: `http://localhost:8090/mcp`
Provides 3 MCP Tools:
| Tool | Description |
|------|-------------|
| `search_articles` | Search Official Account articles by keywords |
| `search_accounts` | Search Official Accounts by name |
| `get_article_content` | Get article full text content |
### REST API
```bash
# Check status
curl http://localhost:8090/api/v1/status
# Search articles
curl -X POST http://localhost:8090/api/v1/search/articles \
-H "Content-Type: application/json" \
-d '{"keyword":"AI"}'
# Search Official Accounts
curl -X POST http://localhost:8090/api/v1/search/accounts \
-H "Content-Type: application/json" \
-d '{"keyword":"People's Daily"}'
# Get article full text
curl -X POST http://localhost:8090/api/v1/article/content \
-H "Content-Type: application/json" \
-d '{"url":"https://weixin.sogou.com/link?url=..."}'
```
### Python CLI
```bash
python3 scripts/wechat_client.py status
python3 scripts/wechat_client.py search-articles "AI"
python3 scripts/wechat_client.py search-accounts "People's Daily"
python3 scripts/wechat_client.py article "article URL"
```
## Technical Architecture
- **Go** + MCP SDK + Gin
- Fetch articles and Official Account information through Sogou WeChat search (weixin.sogou.com)
- goquery parse HTML
- Automatically parse Sogou JS jump links to get real WeChat article URLs
- Dual interfaces: MCP + REST API
- No authentication required, pure read-only query
## Known Limitations
- Official Account search is limited by Sogou anti-crawling, may return empty results without cookies
- Frequent requests may trigger Sogou CAPTCHA
- Search results may not include newly published articles
## License
MIT
Connection Info
You Might Also Like
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.
Fetch
Retrieve and process content from web pages by converting HTML into markdown format.
Agent-Reach
Give your AI agent eyes to see the entire internet. Read & search Twitter,...
buddy
Your persistent AI coding companion — the /buddy rescue mission. A...
Vera
Local code search combining BM25, vector similarity, and cross-encoder...
agent-base
Agent Base is a source-level research project on coding agents. It compares...