Md2WeChat
Markdown to WeChat CLI | 一键排版发布到微信公众号:支持 40+ 排版样式和专业主题 、AI 配图 、批量发布
What is Md2WeChat?
Md2WeChat is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to markdown to wechat cli | 一键排版发布到微信公众号:支持 40+ 排版样式和专业主题 、ai 配图 、批量发布
Markdown to WeChat CLI | 一键排版发布到微信公众号:支持 40+ 排版样式和专业主题 、AI 配图 、批量发布
This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Markdown to WeChat CLI | 一键排版发布到微信公众号:支持 40+ 排版样式和专业主题 、AI 配
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx md2wechat-skillConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Md2WeChat
md2wechat is a CLI tool and MCP skill server that converts Markdown articles into beautifully formatted WeChat Official Account posts, with support for 40+ typographic styles, 43 advanced layout modules, AI-generated cover images and infographics, and one-command publishing to WeChat drafts. It exposes its capabilities as a Claude Code agent skill, allowing AI assistants to orchestrate the full workflow from writing to publishing — including article generation, style selection, AI image creation, and batch publishing — through natural language commands.
Prerequisites
- A WeChat Official Account (公众号) with AppID and AppSecret for API access
- macOS (Homebrew), Node.js, or Go runtime for installation
- Claude Code or another MCP-compatible agent client
- An AI image generation API key if using AI cover and infographic features
- md2wechat CLI configured with 'md2wechat config init'
Install the md2wechat CLI
Install md2wechat using your preferred method. Homebrew is recommended on macOS; npm works cross-platform.
# macOS with Homebrew (recommended):
brew install geekjourneyx/tap/md2wechat
# Cross-platform with npm:
npm install -g @geekjourneyx/md2wechat
# Verify installation:
md2wechat --versionInitialize the configuration
Run the config init command to generate the configuration file. Enter your WeChat Official Account AppID and AppSecret when prompted.
md2wechat config initInstall the MCP skill server
Install the md2wechat MCP skill server to expose the CLI capabilities to AI agents like Claude Code.
npx md2wechat-skillAdd to your MCP client configuration
Configure your MCP client (e.g. Claude Desktop) to run the md2wechat skill server.
{
"mcpServers": {
"md2wechat": {
"command": "npx",
"args": ["md2wechat-skill"]
}
}
}Preview an article before publishing
Use the preview command to generate a local HTML preview of your formatted article without side effects. This lets you verify styling before pushing to WeChat.
md2wechat preview article.mdConvert and push to WeChat drafts
Convert your Markdown file to WeChat-formatted HTML and push it directly to your WeChat Official Account drafts for review and scheduling.
md2wechat convert article.md --draftGenerate AI cover image and publish
Use the generate_cover command to create an AI-powered cover image, then publish the full article with cover to WeChat drafts in one workflow.
md2wechat generate_cover article.md
md2wechat convert article.md --draftMd2WeChat Examples
Client configuration
Claude Desktop configuration for the md2wechat MCP skill server.
{
"mcpServers": {
"md2wechat": {
"command": "npx",
"args": ["md2wechat-skill"]
}
}
}Prompts to try
Example natural language prompts for the md2wechat AI agent skill.
- "Convert article.md to WeChat format using the elegant-gold theme, generate a cover image, and push to drafts."
- "Write an article about the future of AI in education, format it for WeChat, and generate an infographic."
- "Use inspect to check what's blocking this article from publishing, then fix the issues."
- "List all available themes and layouts, then preview my article with the minimalist theme."
- "Batch publish all .md files in the /articles folder to WeChat drafts."Troubleshooting Md2WeChat
WeChat API authentication fails when pushing to drafts
Run 'md2wechat config init' again to re-enter your AppID and AppSecret. Ensure your WeChat Official Account has the 'Draft' API permission enabled in the WeChat Official Account management console.
Formatting looks incorrect in the WeChat preview
Run 'md2wechat doctor --json' to diagnose layout issues. Use 'md2wechat layout list --json' to see all 43 available layout modules and ensure you are using supported :::module syntax in your Markdown.
AI cover image generation fails
Verify that your AI image generation API key is configured. Run 'md2wechat capabilities --json' to check which features are available in your installed version and whether the image generation service is reachable.
Frequently Asked Questions about Md2WeChat
What is Md2WeChat?
Md2WeChat is a Model Context Protocol (MCP) server that markdown to wechat cli | 一键排版发布到微信公众号:支持 40+ 排版样式和专业主题 、ai 配图 、批量发布 It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Md2WeChat?
Follow the installation instructions on the Md2WeChat GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Md2WeChat?
Md2WeChat works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Md2WeChat free to use?
Yes, Md2WeChat is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
Md2WeChat Alternatives — Similar Communication Servers
Looking for alternatives to Md2WeChat? 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 Md2WeChat 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 Md2WeChat?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.