Wenyan Content

v1.0.0Communicationstable

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

mcp-serverwechatwenyan
Share:
1,228
Stars
0
Downloads
0
Weekly
0/5

What is Wenyan Content?

Wenyan Content is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 文颜 mcp server 可以让 ai 自动将 markdown 文章排版后发布至微信公众号。

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

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

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

Use Cases

Auto-format and publish Markdown articles to WeChat.
Enable AI to manage WeChat Official Account posts.
caol64

Maintainer

LicenseApache-2.0
Languagejavascript
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx wenyan

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Wenyan Content

Wenyan MCP Server (文颜) enables AI assistants to automatically format Markdown articles with styled themes and publish them directly to WeChat Official Accounts. It handles the full publishing workflow: rendering Markdown with CSS themes, uploading local and remote images, managing article cover photos, and pushing drafts to the WeChat draft box — all through MCP tool calls. This eliminates the manual copy-paste workflow required by the WeChat web editor and makes it practical to publish AI-written content to WeChat at scale.

Prerequisites

  • Node.js 18+ installed
  • A WeChat Official Account (订阅号 or 服务号) with API access enabled
  • Your WeChat Official Account App ID (WECHAT_APP_ID) and App Secret (WECHAT_APP_SECRET) from the WeChat developer console
  • Your server IP address added to the WeChat Official Account IP whitelist
  • An MCP-compatible client such as Claude Desktop or Cursor
1

Install the wenyan-mcp package globally

Install the package globally using npm so the wenyan-mcp command is available on your PATH for use as the MCP server process.

npm install -g @wenyan-md/mcp
2

Obtain WeChat API credentials

Log in to the WeChat Official Account admin panel at mp.weixin.qq.com. Navigate to Settings > Developer Settings to find your App ID and App Secret. Copy both values — you will need them as environment variables.

3

Add your server IP to the WeChat whitelist

In the WeChat admin panel, go to Settings > Developer Settings > IP Whitelist and add the public IP address of the machine that will run wenyan-mcp. WeChat rejects API calls from non-whitelisted IPs.

4

Configure the MCP server in your client

Add wenyan-mcp to your claude_desktop_config.json with your WeChat credentials as environment variables. The server reads WECHAT_APP_ID and WECHAT_APP_SECRET at startup.

{
  "mcpServers": {
    "wenyan-mcp": {
      "command": "wenyan-mcp",
      "env": {
        "WECHAT_APP_ID": "your_wechat_app_id",
        "WECHAT_APP_SECRET": "your_wechat_app_secret"
      }
    }
  }
}
5

Prepare a Markdown article with frontmatter

Wenyan expects Markdown files with YAML frontmatter. At minimum, include a title field. Optional fields include cover (image path or URL), author, source_url, need_open_comment, and only_fans_can_comment.

---
title: "My Article Title"
author: "Jane Doe"
cover: "./assets/cover.jpg"
need_open_comment: true
---

Your article content in Markdown...
6

Publish the article via AI prompt

Ask your AI assistant to format and publish the article. The wenyan-mcp tools will render the Markdown with the selected theme, upload any images, and push the result to your WeChat draft box.

Wenyan Content Examples

Client configuration

Full claude_desktop_config.json entry for wenyan-mcp with the required WeChat API credentials.

{
  "mcpServers": {
    "wenyan-mcp": {
      "command": "wenyan-mcp",
      "env": {
        "WECHAT_APP_ID": "wx1234567890abcdef",
        "WECHAT_APP_SECRET": "your_app_secret_here"
      }
    }
  }
}

Prompts to try

Use these prompts in your AI client after the wenyan-mcp server is configured and connected.

- "List the available themes for formatting my article"
- "Format this Markdown article using the 'elegant' theme and publish it to my WeChat draft box"
- "Upload the image at ./assets/hero.png as the cover for my article"
- "Show me all the themes available and let me pick one before publishing"

Troubleshooting Wenyan Content

API returns 'invalid ip' or access denied errors

Your machine's public IP address is not in the WeChat IP whitelist. Log in to mp.weixin.qq.com, go to Settings > Developer Settings > IP Whitelist, and add the current public IP of the machine running wenyan-mcp.

Images fail to upload or appear broken in WeChat

WeChat requires images to be uploaded via the Media API before being embedded. Ensure local image paths in your Markdown are absolute paths (e.g., /Users/you/images/photo.jpg) or valid HTTPS URLs. Relative paths like ../images/photo.jpg may not resolve correctly.

wenyan-mcp command not found after npm install

The global npm bin directory may not be in your PATH. Run 'npm bin -g' to find the directory and add it to your PATH. Alternatively, use 'npx wenyan-mcp' as the command in your MCP config instead of 'wenyan-mcp'.

Frequently Asked Questions about Wenyan Content

What is Wenyan Content?

Wenyan Content is a Model Context Protocol (MCP) server that 文颜 mcp server 可以让 ai 自动将 markdown 文章排版后发布至微信公众号。 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Wenyan Content?

Follow the installation instructions on the Wenyan Content GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Wenyan Content?

Wenyan Content works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Wenyan Content free to use?

Yes, Wenyan Content is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "wenyan": { "command": "npx", "args": ["-y", "wenyan"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Wenyan Content?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides