Wenyan

v1.0.0Communicationstable

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

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

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

Format Markdown articles and publish to WeChat Official Accounts.
Automate image handling in WeChat post formatting.
Streamline AI-assisted content creation and publishing.
caol64

Maintainer

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

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx wenyan-mcp-server

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

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
1

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/mcp
2

Retrieve 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.

3

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.

4

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"
      }
    }
  }
}
5

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...
6

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.

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-mcp-server": { "command": "npx", "args": ["-y", "wenyan-mcp-server"] } } }

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

Read the full setup guide →

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.

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