caol64/wenyan-mcp

文颜 MCP Server 可以让 AI 自动将 Markdown 文章排版后发布至微信公众号。

What it solves

Wenyan MCP Server allows AI assistants (like Claude Desktop) to directly format and publish Markdown content to WeChat Official Accounts. It eliminates the need for manual copy-pasting between AI chat windows and third-party formatting tools, creating a seamless loop from content ideation to draft storage.

How it works

It implements the Model Context Protocol (MCP), providing a set of tools that an AI client can call to render Markdown into WeChat-compatible rich text, manage layout themes, and upload articles (including local and remote images) to the WeChat draft box. It can operate in two modes:

  • Local Mode (Stdio): Directly calls the WeChat API from the local machine.
  • Server Mode: Acts as a client that sends requests to a remote Wenyan Server to bypass IP whitelist restrictions and support team collaboration.

Who it’s for

Content creators and AI-assisted writers who publish to WeChat Official Accounts and want to automate their layout and publishing workflow using AI agents.

Highlights

  • Direct Publishing: Converts Markdown to rich text and uploads directly to the WeChat draft box.
  • Conversational Layout: Change themes and styles via natural language commands to the AI.
  • Image Handling: Automatically uploads local, relative, or network images to the WeChat asset library.
  • Theme Management: Includes built-in themes and supports registering custom CSS-based themes.
  • Multi-Account Support: Ability to publish to multiple accounts when using Server Mode.
  • Image-based Posts: Supports publishing "Little Green Book" style image-based messages.

Related

  • Project
  • Project
  • Project
  • Project