home / mcp / wechat publisher mcp server

Wechat Publisher MCP Server

微信公众号MCP服务

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "bobgod-wechat-publisher-mcp": {
      "command": "wechat-publisher-mcp",
      "args": [],
      "env": {
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

You have a focused MCP server that automates publishing articles to a WeChat public account. It integrates with any MCP-enabled AI tool, converts Markdown to WeChat-friendly HTML, manages cover images, supports preview and publish modes, and lets you monitor publishing status in real time.

How to use

You will run the MCP server locally and connect it to your preferred MCP client (for example Claude Desktop, Cursor, or Continue). Once connected, you can compose requests in natural language and the MCP server will convert your content, handle multimedia assets, and publish or preview articles to your WeChat public account. Use the preview mode to verify layout and accuracy before going live, then switch to normal publish when you are ready.

How to install

Prerequisites: you need Node.js version 18.0.0 or higher and npm version 8.0.0 or higher.

Step by step commands to install locally via source code and run directly from the repository.

# 1. Clone the project
git clone https://github.com/your-username/wechat-publisher-mcp.git
cd wechat-publisher-mcp

# 2. Install dependencies
npm install

# 3. Optional: create a global link for easy access
npm link

# 4. Validate the installation
wechat-publisher-mcp --help

Configuration

Configure the MCP client to connect to the server. The following options show how to run the MCP server from the client side using common MCP configuration approaches.

{
  "mcpServers": {
    "wechat-publisher": {
      "command": "wechat-publisher-mcp",
      "args": [],
      "env": {
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

Security and setup notes

Important security practices: do not commit real AppID or AppSecret into code or public repositories. Use a separate local config file or environment management to supply credentials at runtime.

Troubleshooting

If the MCP service status shows issues in your AI tool, verify the command path and use absolute paths when needed. Ensure Node.js version meets the minimum requirement and inspect logs for errors.

# Check the installed command path
which wechat-publisher-mcp

# If needed, restart using absolute paths in your MCP client config

Examples

Basic usage pattern with a local start via Node.js is demonstrated by starting the server directly in a development environment.

# Absolute path example for a Node.js start (adjust paths to your environment)
"/Users/your-username/.nvm/versions/node/v18.20.8/bin/node" "/path/to/wechat-publisher-mcp/src/server.js"

Available tools

wechat_publish_article

Publish or preview an article to WeChat Public Account, including optional cover image and preview mode.

wechat_query_status

Query the publishing status and statistics of a previously published article.