WeChat Official Account MCP server

WeChat Official Account MCP: your AI searches articles and reads their stats without a WeChat login

Add one URL to Claude, Cursor or ChatGPT and your agent can search Official Account articles by keyword, read the full text and its original-content flag, check reads, likes, Wows, shares and comments, and list everything an account has published. EveryInfra runs the server, so you need no WeChat account, cookies or QR-code scan. It reads only published articles, never your chats, follows or reading history.

13
WeChat Official Account capabilities
24
tools
110
platforms
MCP server URL
https://api.everyinfra.com/mcp

In mainland China, use this URL: https://api-cn.everyinfra.com/mcp

Your agent's first call: articles on a keyword

everyinfra_call_api
{
  "platform": "wechat_oa",
  "action": "article_search",
  "params": {
    "keyword": "新能源汽车"
  }
}

Each url is the article's own link with __biz, mid, idx and sn, so it goes straight into article_detail, article_metrics and article_comments; account_name tells you which account published it.

13 Official Account capabilities, from articles and reads to the company behind an account

Your agent reads each capability's parameters with everyinfra_list_capabilities, then calls it with everyinfra_call_api, platform set to wechat_oa and action set to the first column. Beyond article search and full text, the table covers account search, Mini Program search, search suggestions, today's posts, the registered entity behind an account and the WeChat Index.

actionCapabilityPrice
article_searchArticle search$8 per 1,000 requests
article_detailArticle details$5.56 per 1,000 requests
account_searchAccount search$16 per 1,000 requests
mini_program_searchMini Program search$5.56 per 1,000 requests
search_suggestionsSearch suggestions$5.56 per 1,000 requests
account_profileAccount details$8 per 1,000 requests
account_principalAccount owner$5.56 per 1,000 requests
account_articlesAccount articles$8 per 1,000 requests
account_today_articlesToday's account articles$8 per 1,000 requests
article_commentsArticle comments$6.76 per 1,000 requests
comment_repliesComment replies$6.76 per 1,000 requests
article_metricsArticle engagement$5.56 per 1,000 requests
wechat_indexWeChat Index$5.56 per 1,000 requests

From one keyword to everything an account has posted, in four calls

The article url from article_search opens every later step: full text, engagement and comments all take it, and the account it came from goes to account_profile and account_articles.

  1. Search articles with article_search

    article_search

    keyword is a word or phrase from the article, not a personal WeChat ID or chat text. category takes ALL, LATEST or HOT; FOLLOWED and RECENT_READ depend on a WeChat login, which this server doesn't use, so they usually come back empty. Each hit has a title, summary, url, cover, account name and publish time.

  2. Read the full article with article_detail

    article_detail

    Pass the article url to article_detail for plain text in content_text and formatted content_html, plus the author, account name and account_ghid, images, the is_original flag and the IP region in ip_region. The digest and hashtags are sometimes missing.

  3. Check reach and comments with article_metrics and article_comments

    article_metricsarticle_comments

    article_metrics takes the same url and returns read_count, like_count, watching_count (Wows), share_count, collect_count and comment_count. article_comments reads the comment section; each comment has its likes, an is_top flag for pinned ones, reply_count and province. For a comment with replies, pass its id as comment_id to comment_replies.

  4. Profile the account with account_profile and account_articles

    account_profileaccount_articles

    account accepts the WeChat ID, the original ID that starts with gh_, or a link to any article from that account; personal WeChat IDs don't work. account_profile returns the name, type, description and biz. account_articles lists past articles, 8 by default and up to 160, each with is_original. A full account name works only when exactly one account has that name; otherwise you get a 422 before any charge, so look up the original ID with account_search first.

Then ask for what you need

The agent checks the capability catalog first, then picks a tool and its parameters. Each example links to the matching API page, so you can review the parameters and fields first.

  1. Find recent WeChat Official Account articles about electric cars and list the title, account and publish date.

    Tool used: everyinfra_call_apiWeChat Official Accounts · Article search

  2. Read this Official Account article in full and tell me whether it's marked original and who wrote it.

    Tool used: everyinfra_call_apiWeChat Official Accounts · Article details

  3. How many reads, likes and Wows does this Official Account article have?

    Tool used: everyinfra_call_apiWeChat Official Accounts · Article engagement

  4. List this Official Account's latest articles and mark which ones are original.

    Tool used: everyinfra_call_apiWeChat Official Accounts · Account articles

Connect the Official Account MCP

Add https://api.everyinfra.com/mcp to your client's remote MCP settings and send Authorization: Bearer with your API key. Besides everyinfra_call_api for Official Accounts, the same URL serves search, CAPTCHA solving, AI and account tools, 24 in all.

mcp.json
{
  "mcpServers": {
    "everyinfra": {
      "url": "https://api.everyinfra.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Keep the API key in your client's secret or environment settings, and never commit it to a repository.

Setup for each client and the full tool list on the remote MCP overview

Frequently asked questions

Is there an official WeChat Official Account API? Why use MCP?

Yes, but only for your own account. The WeChat Official Accounts Platform's publish list, article statistics and comment interfaces need your account's AppID, AppSecret and access token, and some are open only to verified accounts. There is no official interface for other accounts' published articles, read counts or comments. That is what this MCP reads, with no developer application on your side.

What Official Account data can I get through MCP?

13 capabilities: article search, full text, reads, Wows and other engagement, comments and replies, account search and profiles, the registered entity, past and today's articles, plus Mini Program search, search suggestions and the WeChat Index. Everything is published content; private chats, Moments and messages are out of reach.

Do I need to log in to WeChat or provide cookies?

No. EveryInfra runs the server and the only credential is your EveryInfra API key: no WeChat account, cookies or QR-code scan. Because your login isn't used, the FOLLOWED and RECENT_READ categories of article_search may return nothing, and your follows and reading history are never read.

How is the Official Account MCP billed?

MCP costs nothing extra; Official Account capabilities cost from $5.56 per 1,000 requests, with each unit price in the table's third column. Invalid parameters, failed calls and empty results aren't charged, and an article link that can't be read returns 422 before any charge. Reading the catalog with everyinfra_list_capabilities is free.

How do I connect it to Claude or Cursor?

Enter https://api.everyinfra.com/mcp in the client's remote MCP settings with the header Authorization: Bearer and your API key; in mainland China use https://api-cn.everyinfra.com/mcp. Setup for ChatGPT, Claude Code, Codex and others is on the remote MCP overview. Then just ask for recent Official Account articles on electric cars, and the agent will pick article_search on its own.

What should I watch out for?

Use the article's own link: the short /s/ link or the long one with __biz, mid, idx and sn. Temporary links carrying signature and timestamp may not be readable; those return 422 before any charge, so nothing is billed. account doesn't take personal WeChat IDs, and a full account name has to match exactly.

Let your agent read Official Account articles and their read counts

Sign up, create an API key in the console, and add it to the configuration above to start calling these tools from your chat.

Start for freeView pricing

Google Analytics needs consent. Privacy