home / mcp / wx-article mcp server
Saves WeChat public account articles to drafts with rich-text and media handling, plus Markdown and Mermaid support.
Configuration
View docs{
"mcpServers": {
"jeweis-wx-article-mcp": {
"command": "uvx",
"args": [
"wx-article-mcp"
],
"env": {
"WXMP_APPID": "填公众号appId",
"WXMP_SECRET": "填公众号密钥"
}
}
}
}You can run the微信公众账号文章保存 MCP Server to save WeChat public account articles directly into drafts, with full rich-text handling and media management. This MCP server provides a simple bridge between your MCP clients and the article-saving workflow, making it easy to integrate article saving into your IDE or tooling setup.
Connect your MCP client (such as Windsurf, Cursor, Claude, or Cline) to the wx-article-mcp server. Use the standard MCP connection method your client supports and point it at the local MCU server configuration shown below. The server handles saving微信公众号文章 to 草稿, processes rich text, and manages images and media.
Configure the client with the local MCP server settings. You will supply the server name, the command to run, the required arguments, and the environment variables that authenticate with the WeChat MP backend.
Key environment values you provide are the WeChat MP AppID and App Secret. These credentials are used by the server to access your公众号 data and perform save-and-draft operations.
Run the server using the MCP runtime you prefer. Common options are starting via the UVX runner or launching directly from Python, depending on your setup. Once running, your MCP client can send save-article requests that will be processed and stored in drafts.
Prerequisites you need on your machine: Python and a package manager for Python dependencies, and the MCP runtime you choose (UVX is recommended). You also need a WeChat Official Account APPID and Secret to configure access.
Step 1: Clone the repository. This pulls the server source you will run locally.
Step 2: Install dependencies from the requirements file.
Step 3: Create the environment file with your WeChat credentials.
Environment variables you will set include your WeChat MP AppID and App Secret. These values are used by the server to authenticate with WeChat APIs.
# Preferred startup method (recommended)
uvx wx-article-mcp# Alternative: run directly from source
python -m server.py{
"mcpServers": {
"wx-article-mcp": {
"command": "uvx",
"args": [
"wx-article-mcp"
],
"env": {
"WXMP_APPID": "填公众号appId",
"WXMP_SECRET": "填公众号密钥"
}
}
}
}Before starting the service, ensure IP white-listing is configured in the公众号后台 to allow requests from your server.
Features include saving微信公众号文章 to drafts, rich-text content support, automatic image upload handling, and media resource management. The server also provides full Markdown support with code highlighting and Mermaid diagram rendering inside Markdown content. Mermaid diagrams render to images and are uploaded to the公众号 article to ensure proper display.
The server exposes a straightforward path to connect your MCP client via a local runtime. Credentials for the WeChat MP account are passed as environment variables, and the endpoint focuses on saving and drafting articles with media handling and Markdown support.
Saves a微信公众号文章 to the公众号 drafts, with support for rich text and media assets.
Processes and preserves rich-text content in saved articles.
Automatically handles image uploads and media resource management for saved articles.
Full Markdown syntax support with code highlighting.
Renders Mermaid diagrams within Markdown and uploads as images to the article.