
geekjourneyx/md2wechat-mcp-server
Developer toolsThis page was translated automatically. Technical details may differ from the original. View the original
📝 md2wechat MCP Server | Let Claude Code & AI Agent publish and format content to the WeChat public account with one click
Overview
This is a Go server based on MCP (Model Context Protocol) used to convert Markdown text into HTML in WeChat official account format. - 🚀 : Converts Markdown text to HTML format compatible with WeChat official accounts - 🎨 : Supports 4 theme styles (default, ByteStyle, Chinese style, Apple style) - 📊 : Provides word count and estimated reading time - 🔒 : Supports API Key authentication - 💬 : Can seamlessly integrate with large language models (such as Claude, GPT). - Title (H1-H6) - Paragraphs and Line Breaks - and Italic Text - Inline Code - Links - Unordered and Ordered Lists - > Reference Blocks - Dividers (---) - Code block (supports syntax highlighting) - Table - Footnote [^1] - GFM Tip Box (NOTE, TIP, IMPORTANT, WARNING, CAUTION) - Go 1.21 or later - WeChat Markdown Editor API Key - default - Default WeChat classic style - bytedance - Bytedance (modern tech style) - Chinese - Chinese style (classical elegant style) - Apple - Apple style (visual gradient style) Claude calls the convert_markdown tool and returns the converted HTML code. - API Key not set or invalid - Markdown content is empty - Invalid subject parameters - Network connection issue - API service exception
Overview (machine translated)
This is a Go server based on MCP (Model Context Protocol) used to convert Markdown text into HTML in WeChat official account format.
Functional Features
- 🚀 Fast Conversion: Convert Markdown text to HTML format compatible with WeChat official accounts
- 🎨 Multiple Themes: Supports 4 theme styles (default, ByteDance, Chinese style, Apple style)
- 📊 Detailed Statistics: Provides word count statistics and estimated reading time
- 🔒 Security Authentication: Supports API Key authentication
- 💬 Intelligent Integration: Seamlessly integrates with large language models such as Claude and GPT
Supported Markdown syntax
Basic Grammar
- Title (H1-H6)
- Paragraphs and line breaks
- Bold text and italic text
内联代码- Link
- Unordered lists and ordered lists
-
Reference block
- Divider (—)
Extended Syntax
- Code blocks (supports syntax highlighting)
- Table
- Footnotes [^1]
- GFM Prompt Box (NOTE, TIP, IMPORTANT, WARNING, CAUTION)
Environmental Requirements
- Go 1.21 or later
- WeChat Markdown Editor API Key
Installation and Configuration
1. Clone or download the code
2. Installation dependency
3. Set the API Key
After obtaining the API Key for the WeChat Markdown Editor, set the environment variables:
4. Build and run
MCP Tool Description
convert_markdown
Convert Markdown text into WeChat official account format HTML.
Specifications:
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| markdown | string | ✅ | The Markdown text content to be converted |
| theme | string | ❌ | Theme style, default is “default” |
Supported Themes:
default- Default WeChat classic stylebytedance- ByteDance Fan (modern tech style)chinese- Chinese style (classical and elegant style)apple- Apple Style (Visual Gradient Style)
Results returned:
Used in Large Language Models
Claude Desktop configuration
Add to claude_desktop_config.json:
Usage examples
When talking to Claude, you can ask:
Claude calls the convert_markdown tool and returns the converted HTML code.
Error Handling
The server handles the following common errors:
- API Key is not set or invalid
This page was translated automatically. Technical details may differ from the original.
Install
This server does not publish a one-line install command.
Open the repository installation guide New to MCP? Start with the mcpskill.org guide →Configuration
{
"mcpServers": {
"md2wechat": {
"command": "/path/to/md2wechat-mcp-server",
"env": {
"MD2WECHAT_API_KEY": "wme_your_api_key_here"
}
}
}
}