Skip to content
MCP server

Wechatmp MCP

MCP server that drives the WeChat Official Account back office to save or publish drafts

Runs locally

Wechatmp MCP is an open-source MCP server for content publishing. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, API
Runs
Locally
What it can do
Can delete data (1 tool)
Version
0.1.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "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

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • WXMP_PROFILE_DIRDirectory of the persistent Playwright profile that holds the console login. Defaults to ./.state/profile
  • WXMP_OUT_DIRDirectory for screenshots (QR code, composer, publish evidence). Defaults to ./out
  • WXMP_BROWSER_CHANNELInstalled browser to drive: msedge (default) or chrome. Empty string uses Playwright's bundled chromium, which needs `playwright install chromium`.
  • WXMP_HEADLESSSet to 1 to run without a visible window. Not recommended: the QR scan needs the window and the console is friendlier with a human watching.
  • WXMP_CDP_URLAttach to an already-running Chrome (for example http://127.0.0.1:9222) instead of launching one.
  • WXMP_HTTP_TOKENOptional bearer token required by the Streamable HTTP transport.

About Wechatmp MCP

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.

Tools this server provides (9)

Taken from the project documentation; the running server may differ.

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_statusName 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_materialName suggests: changes
Creates a tietu or article and saves it as a draft or publishes it from the editor.
mp_create_tietuName suggests: changes
Uploads 1-20 images and writes title and description to a draft, publish or schedule.
mp_list_draftsName suggests: reads
Lists the draft box for tietu or article drafts.
mp_publish_draftName suggests: changes
Opens a draft and publishes or schedules it after confirmation.
mp_delete_draftName suggests: deletes
Deletes a draft and reports whether it left the list.
mp_list_publishedName suggests: reads
Reads publish records with msgid, title, public URL and status counters.

What it does

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

Pricing

Open source

Free and MIT licensed; requires a WeChat Official Account.

Wechatmp MCP 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.

How AIPoweredBot checks servers