# Wechatmp MCP

> Wechatmp MCP is an open-source MCP server for content publishing. MCP server that drives the WeChat Official Account back office to save or publish drafts. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, API, Windows, macOS, Linux
- **Repository:** https://github.com/xiaobinger/wechatmp-mcp
- **MCP Registry name:** io.github.xiaobinger/wechatmp-mcp
- **Categories:** [content publishing](https://ai-powered.com/categories/content-publishing)
- **Listing updated:** 2026-11-27

## About

Wechatmp MCP lets an MCP client work inside the WeChat Official Account console. It assembles an image message (tietu) or a rich-text article from a title, a cover, body text and inline pictures, then either keeps the result as a draft or publishes it from the editor.

The server runs a persistent Playwright browser profile that you log into once by scanning the console QR code. It never reads or exports cookies or tokens, and every publish requires a human to scan a confirmation QR page in the console before it goes live. Publishing and deleting also require an explicit confirm flag in the tool call.

It suits editors and operators of Chinese-language WeChat accounts who want to draft or publish content from an AI client. The console labels are Chinese, and the README notes that article publishing is implemented but not yet proven on a live account.

## Features

- **Image message builder:** Uploads up to 20 local images with a title and description as a single image-message draft.
- **Rich-text article composer:** Builds a 图文 article with body paragraphs, inline pictures, author and digest fields.
- **Draft or publish action:** Each call either saves a draft or publishes straight from the editor, with confirmation required for publishing.
- **Draft box management:** Lists, opens, publishes and deletes existing drafts in the account's draft box.
- **Publish record verification:** Reads publish records to confirm a new publication appeared rather than trusting page text.
- **Persistent login profile:** Reuses a saved browser profile after a one-time QR login, with tokens masked in replies.

## Good for

- Drafting a multi-image WeChat post from an AI assistant for later review
- Assembling a 图文 article with inline pictures and a cover image
- Checking which recent WeChat posts went live by reading publish records
- Clearing outdated drafts from the draft box through an MCP client

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add wechatmp-mcp --env WXMP_PROFILE_DIR='<WXMP_PROFILE_DIR>' --env WXMP_HTTP_TOKEN='<WXMP_HTTP_TOKEN>' -- uvx wechatmp-publish-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add wechatmp-mcp --env WXMP_PROFILE_DIR='<WXMP_PROFILE_DIR>' --env WXMP_HTTP_TOKEN='<WXMP_HTTP_TOKEN>' -- uvx wechatmp-publish-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.wechatmp-mcp]
command = "uvx"
args = ["wechatmp-publish-mcp"]
env = { WXMP_PROFILE_DIR = "<WXMP_PROFILE_DIR>", WXMP_HTTP_TOKEN = "<WXMP_HTTP_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e WXMP_PROFILE_DIR='<WXMP_PROFILE_DIR>' -e WXMP_HTTP_TOKEN='<WXMP_HTTP_TOKEN>' wechatmp-mcp uvx -- wechatmp-publish-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "wechatmp-mcp": {
      "command": "uvx",
      "args": [
        "wechatmp-publish-mcp"
      ],
      "env": {
        "WXMP_PROFILE_DIR": "<WXMP_PROFILE_DIR>",
        "WXMP_HTTP_TOKEN": "<WXMP_HTTP_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 9 tools deletes data and 3 change data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `server_health`: Reports version, protocol versions, registered tools, browser settings and profile state.
- `mp_status` (name suggests: reads): Opens the console root and reports login state with a masked token.
- `mp_account_login`: Shows a QR screenshot and waits until the scan completes.
- `mp_publish_material` (name suggests: changes): Creates a tietu or article and saves it as a draft or publishes it from the editor.
- `mp_create_tietu` (name suggests: changes): Uploads 1-20 images and writes title and description to a draft, publish or schedule.
- `mp_list_drafts` (name suggests: reads): Lists the draft box for tietu or article drafts.
- `mp_publish_draft` (name suggests: changes): Opens a draft and publishes or schedules it after confirmation.
- `mp_delete_draft` (name suggests: deletes): Deletes a draft and reports whether it left the list.
- `mp_list_published` (name suggests: reads): Reads publish records with msgid, title, public URL and status counters.

## FAQ

### Does Wechatmp MCP need a WeChat console password?

No. Login is manual: the server screenshots the QR code, you scan it in the browser window, and the session is kept in a local profile directory.

### Can Wechatmp MCP publish without a human confirming?

No. The console shows a QR page after the publish dialog, and an admin must scan it. Publishing and deleting also require confirm=true in the call.

### Which browsers are supported?

Microsoft Edge is the default, Chrome is supported, and an option uses Playwright's bundled Chromium.

### Is scheduling supported?

The scheduling mechanics are implemented, but the README states that a scheduled submission has not been verified to produce a publish record.

### Is Wechatmp MCP free?

Yes. Wechatmp MCP is open source, so you can use and self-host it for free.

### How do I add Wechatmp MCP to Claude Code?

Run this command in your terminal: claude mcp add wechatmp-mcp --env WXMP_PROFILE_DIR='<WXMP_PROFILE_DIR>' --env WXMP_HTTP_TOKEN='<WXMP_HTTP_TOKEN>' -- uvx wechatmp-publish-mcp

### What are the best alternatives to Wechatmp MCP?

The closest alternatives to Wechatmp MCP are Wechat Writer MCP, Qiita MCP Server, Substack MCP Server, Postbing and Content Launcher.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Wechat Writer MCP](https://ai-powered.com/mcp/wechat-writer-mcp): Wechat Writer MCP is an open-source MCP server for content publishing.
- [Qiita MCP Server](https://ai-powered.com/mcp/qiita-mcp-server): Qiita MCP Server is an open-source MCP server for content publishing.
- [Substack MCP Server](https://ai-powered.com/mcp/substack-mcp-server-2): Substack MCP Server is an open-source MCP server for content publishing.
- [Postbing](https://ai-powered.com/mcp/postbing): Postbing is a freemium MCP server for content publishing.
- [Content Launcher](https://ai-powered.com/mcp/content-launcher): Content Launcher is an MCP server for content publishing.
- [PosteAhora](https://ai-powered.com/mcp/posteahora): PosteAhora is a paid MCP server for content publishing.
- [with-mcp](https://ai-powered.com/mcp/with-mcp): with-mcp is a freemium MCP server for content publishing.
- [Kamaan](https://ai-powered.com/mcp/kamaan): Kamaan is an MCP server for content publishing.

---
Source: https://ai-powered.com/mcp/wechatmp-mcp
