WeChat MCP Server

One stdio server gives an agent WeChat Search, Channels, article metrics, history, and the article library. The same JSON works in Cursor, Claude, and VS Code.

uvx --from "git+https://github.com/xtree-io/xtree-mcp.git" xtree-mcp

{
  "mcpServers": {
    "xtree": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/xtree-io/xtree-mcp.git", "xtree-mcp"],
      "env": {
        "XTREE_API_KEY": "xt_live_..."
      }
    }
  }
}

Tools

  • account_balance Account balance. Free. Returns the wallet balance and does not charge. API reference
  • wechat_search_articles Search official-account articles. Keyword search for official-account articles. API reference
  • wechat_search_videos Search Channels videos. Keyword search for Channels videos. API reference
  • wechat_search_accounts Search official accounts. Keyword search for official accounts. API reference
  • wechat_channels_feeds Channels posts. List posts for a channel_id from search. API reference
  • wechat_channels_feeds_convert_id Convert Channels IDs. Turn export_id into object_id, or the reverse. Provide at least one. API reference
  • wechat_articles_metrics Article reads and likes. Reads, likes, and wows for an article URL. API reference
  • wechat_articles_metrics_pro Article engagement Pro. Adds shares, favorites, and comment counts for an article URL. API reference
  • wechat_accounts_posts Account post history. List historical posts. account_id is the gh_id. API reference
  • wechat_accounts_search_by_owner_live Accounts by organization. Live search for official accounts under an organization name. API reference
  • wechat_library_search_articles Article library search. Keyword search over the stored article library. API reference
  • wechat_library_search_articles_tokenized Article library, tokenized. Tokenized keyword search in the article library. API reference
  • wechat_library_search_accounts Account library search. Find stored official accounts by keyword. API reference
  • wechat_library_accounts_metrics Library account metrics. Estimated followers and index for an official-account name in the library. API reference

Questions

What is the XTREE MCP server?

A local Model Context Protocol server. An agent calls xtree-mcp, and the server calls the XTREE API with your API key.

Which clients work?

Any client that runs a stdio MCP server, including Cursor, Claude Desktop, and VS Code. The JSON is the same. Only the config file path changes. The machine needs uv so uvx can start the server.

Which WeChat data can an agent read?

WeChat Search for articles, videos, and accounts; Channels search, posts, and ID conversion; article reads, likes, and extended engagement; official-account history and accounts under an organization; plus keyword search and account metrics in the article library. The tool list on this page is the full set.

How is a call billed?

Each successful tool call debits the wallet at the catalog price for that API. account_balance is free. Incomplete delivery is not billed. The response includes _meta.cost_cny and _meta.balance_cny.

How does this differ from Skills and the REST API?

This page is the server install and the tool list. Skills are ready-made prompt packs that call the same APIs. REST and the Python SDK cover every live platform, including those not registered on this MCP server.

Do I need to install uv?

Yes. The published command is uvx --from git+https://github.com/xtree-io/xtree-mcp.git xtree-mcp. Put your key in XTREE_API_KEY.