Wenyan MCP

文颜 MCP Server

An MCP server that formats Markdown with ready themes and saves the article to a WeChat official account draft

  • 1,356 ★ on the repository
  • Last commit
  • Apache-2.0
MCP serverOfficial

Broad access

Why this level

  • Publishes material to an external WeChat account and uploads images there
  • Handles the WECHAT_APP_SECRET application secret
All reasons and checks

caol64/wenyan-mcp

Install

Manual install

npm install -g @wenyan-md/mcp

Global install of the server; it then connects as the wenyan-mcp command.

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • Publishes material to an external WeChat account and uploads images there
  • Handles the WECHAT_APP_SECRET application secret

This is third-party code. Review the repository files before installing.

What it does

The server connects AI clients such as Claude Desktop to Wenyan's formatting engine over MCP. The agent hands over Markdown, and the server turns it into WeChat layout, applies one of the built-in themes and uploads the result to the official account draft box. Along the way it uploads the article images and cover itself: local files, links and relative paths. Its MCP tools cover Markdown rendering, theme management (list, register your own theme from CSS, delete) and saving a draft. It also supports image posts, where the image list is set in frontmatter.

Who it is for. For writers and social media managers who run a WeChat official account and want to prepare posts straight from an AI client.

Good fit when

  • You need to format finished Markdown and save it to a WeChat account draft
  • You need to apply or switch a layout theme right in the chat with the agent
  • You need to register a custom theme from CSS or assemble an image post

Not a fit when

  • You publish to another platform rather than WeChat
  • You have no WeChat official account and app credential pair

Example request

Format this Markdown with the phycat theme and save it to my WeChat account drafts

MCP

Transport
stdio
Authentication
API key

Environment variables

WECHAT_APP_ID required
App ID of the WeChat official account
WECHAT_APP_SECRET required, secret
WeChat app secret for the upload API

Limitations

You need a WeChat official account and the WECHAT_APP_ID and WECHAT_APP_SECRET variables, otherwise uploads fail. The IP of the machine running the server must be on the account's whitelist; a remote server mode exists to work around this. The server places material in the draft box, and you confirm the final publish manually in the WeChat backend. The project documentation is in Chinese.

How to disable. Remove the wenyan-mcp block from your client's mcpServers config and, if you wish, uninstall the @wenyan-md/mcp npm package.

FAQ

What is needed to upload to WeChat?

A WeChat official account, the WECHAT_APP_ID and WECHAT_APP_SECRET keys, and the machine IP on the account whitelist or the remote server mode.

Does the server publish the post right away?

No, it saves material to drafts. You confirm the final publish in the WeChat backend.

Discussion

No questions or reviews yet.

A CLI for agents that turns Markdown into WeChat HTML, prepares covers and images, and saves drafts into an official account

CLIBroad access3.8KRepository stars

Claude skill that typesets an article for WeChat with cards and SVG infographics, uploads images and saves a draft

SkillExtended access121Repository stars

Self-hosted MCP server for xiaohongshu: publish notes and videos, search, read feeds, comment, like and favorite from an agent

MCP serverBroad access17.1KRepository stars

A self-hosted server reads WeChat official account articles and hands them to an AI agent over MCP: search, subscribe, full text

MCP serverBroad access1.2KRepository stars

A skill that lays out WeChat articles: Markdown goes into a local preview page and copies out as ready rich text.

SkillMinimal access56Repository stars
Official

The emailmd MCP server: an agent builds an email from markdown, lints deliverability and returns a preview link.

MCP serverMinimal access1.4KRepository stars

README in short

The README presents the MCP edition of the Wenyan Markdown formatting and publishing tool. The server connects AI clients to the Wenyan engine so you can render Markdown into WeChat layout, manage themes and save drafts from the chat. It installs via npm install -g @wenyan-md/mcp and plugs into the Claude Desktop config with the WECHAT_APP_ID and WECHAT_APP_SECRET keys. The document describes the frontmatter formats for an article and an image post, the whitelisted IP requirement, and image handling from local, network and relative paths. Apache-2.0 licensed.

README badge

Report a problem