Wenyan
Bridges AI writing and content platforms by enabling AI agents to format Markdown and publish posts directly to WeChat Official Accounts with automatic image handling. It supports conversational theme management and streamlined drafting to eliminate
What is Wenyan?
Wenyan is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to bridges ai writing and content platforms by enabling ai agents to format markdown and publish posts directly to wechat official accounts with automatic image handling. it supports conversational theme...
Bridges AI writing and content platforms by enabling AI agents to format Markdown and publish posts directly to WeChat Official Accounts with automatic image handling. It supports conversational theme management and streamlined drafting to eliminate
This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Bridges AI writing and content platforms by enabling AI agen
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx wenyan-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Wenyan
Wenyan MCP Server bridges AI writing workflows and WeChat content publishing by giving AI agents the ability to format Markdown articles with styled CSS themes and publish them directly to WeChat Official Account draft boxes. It handles automatic image uploading (local paths, HTTPS URLs, and relative paths), cover photo assignment, theme selection, and conversational theme management — eliminating the manual effort of the WeChat web editor. Teams and solo creators who publish AI-generated content to WeChat will find this server removes the biggest friction point in the workflow.
Prerequisites
- Node.js 18+ installed
- A WeChat Official Account with API access enabled in the developer settings
- WeChat App ID (WECHAT_APP_ID) and App Secret (WECHAT_APP_SECRET) from mp.weixin.qq.com
- Your server's public IP address added to the WeChat Official Account IP whitelist
- An MCP-compatible client such as Claude Desktop or Cursor
Install the wenyan-mcp package
Install the @wenyan-md/mcp package globally via npm to make the wenyan-mcp command available as an MCP server executable.
npm install -g @wenyan-md/mcpRetrieve WeChat API credentials
Log in to the WeChat Official Account platform at mp.weixin.qq.com, navigate to Settings > Developer Settings, and copy your App ID and App Secret. These are required environment variables for the server.
Whitelist your IP address in WeChat
In the WeChat admin panel under Settings > Developer Settings > IP Whitelist, add the public IP address of the machine where wenyan-mcp will run. Without this, all API calls will be rejected.
Add the server to your MCP client configuration
Edit your claude_desktop_config.json to add the wenyan-mcp server entry with the WeChat credentials as environment variables.
{
"mcpServers": {
"wenyan-mcp": {
"command": "wenyan-mcp",
"env": {
"WECHAT_APP_ID": "your_wechat_app_id",
"WECHAT_APP_SECRET": "your_wechat_app_secret"
}
}
}
}Write a Markdown article with frontmatter
Prepare your article as a Markdown file with YAML frontmatter. The title field is required; cover, author, source_url, need_open_comment, and only_fans_can_comment are optional. For image-only posts, set type to 'image' and list paths in image_list (up to 20 images).
---
title: "Weekly Tech Digest"
author: "Your Name"
cover: "https://example.com/cover.jpg"
need_open_comment: true
---
Article body in Markdown...Use AI to format and publish
In your AI client, ask the assistant to list themes, pick one, and publish the article. The server will render the Markdown, upload images to WeChat's media store, and create a draft ready for review in the WeChat admin panel.
Wenyan Examples
Client configuration
Claude Desktop config entry for wenyan-mcp-server using the globally installed command with WeChat 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 once the wenyan-mcp server is running and your AI client is connected.
- "List all available Wenyan themes and describe what each one looks like"
- "Format the article in article.md using the 'tech-minimal' theme and save it as a WeChat draft"
- "Publish this Markdown content to my WeChat Official Account draft box with the default theme"
- "Register a custom CSS theme from my file at ./mytheme.css and name it 'brand-style'"Troubleshooting Wenyan
WeChat API rejects requests with an IP error
Add your machine's public IP to the WeChat IP whitelist at mp.weixin.qq.com under Settings > Developer Settings > IP Whitelist. If your IP changes frequently, consider running the server on a machine with a static IP.
Article images are missing or not rendering in the WeChat draft
Use absolute local paths (e.g., /Users/you/Desktop/photo.jpg) or full HTTPS URLs for images in your Markdown. Relative paths may not resolve at runtime. The server automatically uploads images to WeChat's media API and rewrites the URLs.
App Secret authentication fails
WeChat App Secrets expire and must be periodically regenerated. Log in to mp.weixin.qq.com, go to Settings > Developer Settings, and click 'Reset' to generate a new App Secret. Update the WECHAT_APP_SECRET environment variable in your MCP config and restart the server.
Frequently Asked Questions about Wenyan
What is Wenyan?
Wenyan is a Model Context Protocol (MCP) server that bridges ai writing and content platforms by enabling ai agents to format markdown and publish posts directly to wechat official accounts with automatic image handling. it supports conversational theme management and streamlined drafting to eliminate It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Wenyan?
Follow the installation instructions on the Wenyan GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Wenyan?
Wenyan works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Wenyan free to use?
Yes, Wenyan is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.
Wenyan Alternatives — Similar Communication Servers
Looking for alternatives to Wenyan? Here are other popular communication servers you can use with Claude, Cursor, and VS Code.
Slack
★ 86.1kEnables interaction with Slack workspaces through comprehensive channel management, messaging, user management, file uploads, and Block Kit formatting. Features secure credential storage via macOS Keychain and supports all major Slack operations incl
LibreChat
★ 37.3kEnhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenA
Note Gen
★ 11.9kA cross-platform Markdown AI note-taking software.
DeepChat
★ 5.8k🐬DeepChat - A smart assistant that connects powerful AI to your personal world
WhatsApp MCP
★ 5.7kConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without
Apple
★ 3.1kEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
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.
Set Up Wenyan in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Wenyan?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.