This project provides a tool for searching articles through Sogou WeChat and encapsulates it as an MCP (Model Context Protocol) server.
Key Highlights:
- WeChat Article Search: Enables searching for WeChat official account articles through the Sogou WeChat platform.
- Flexible Query: Supports searching by keywords and specifying the number of articles to return.
- Structured Output: Returns structured article information including title, snippet, URL, source, and date, facilitating further processing.
- MCP Server Integration: Encapsulates the WeChat article search functionality as an MCP tool, allowing other AI agents or systems to call it via the MCP protocol.
You can run the server directly with uvx — no clone, no install, no setup:
uvx --from git+https://github.com/ptbsare/sogou-weixin-mcp-server.git sogou-weixin-mcp-serverThis downloads and runs the latest version in one shot.
Ensure your system has Python 3.10 or higher installed.
It is recommended to use uv for dependency management:
# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone the repository
git clone https://github.com/ptbsare/sogou-weixin-mcp-server.git
cd sogou-weixin-mcp-server
# Install dependencies using uv
uv syncYou can run this project as an MCP server, allowing other AI agents or systems to call the search_wechat_articles tool via the MCP protocol.
# Run via uv (local directory)
uv run sogou-weixin-mcp-server
# Or run the script directly
uv run server.pyOnce the server starts, it will listen for MCP client requests over stdio.
Below is an example mcp_server.json configuration file to connect this MCP server to Claude:
{
"mcp_servers": [
{
"name": "sogou-wechat-search",
"type": "stdio",
"command": ["uvx", "--from", "git+https://github.com/ptbsare/sogou-weixin-mcp-server.git", "sogou-weixin-mcp-server"]
}
]
}{
"mcp_servers": [
{
"name": "sogou-wechat-search",
"type": "stdio",
"command": ["uv", "--directory", "/path/to/sogou-weixin-mcp-server/", "run", "server.py"]
}
]
}Search for WeChat articles via Sogou WeChat.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query |
string | Yes | — | Search keyword |
top_num |
integer | No | 18 | Maximum number of articles to return |
Returns: A list of dictionaries, each containing:
title— Article titlesnippet— Article summary/snippeturl— Article URLsource— WeChat official account namedate— Publication date