convert_markdownLABSCO SUMMARY
It removes the step where a good draft gets mangled by the publishing box.
WeChat's editor does not accept ordinary HTML cleanly, and the usual workaround is a separate web tool and a copy-paste — folding that into a tool call means the assistant that wrote the draft can hand you something publishable. The theme choice is the practical decision: pick one per publication and keep it, since the look is what readers recognise.
What it is
A Go MCP server that converts Markdown into the HTML format WeChat official accounts accept, so a draft written in a normal editor can be pasted straight into the publishing box.
What you get
convert_markdown— takes the Markdown text and an optional theme, returns HTML ready for a WeChat article- Four themes: the WeChat default, plus a modern tech look, a classical Chinese style, and a gradient style
- Full basic Markdown — headings, bold and italic, inline code, links, images, ordered and unordered lists, blockquotes and rules
- Extended syntax too: fenced code blocks with highlighting, tables, footnotes, and GFM callouts such as NOTE, TIP and WARNING
- A word count and estimated reading time returned with the HTML
Requirements
Go 1.21 or higher to build the binary, and an API key for the WeChat Markdown editor service set as MD2WECHAT_API_KEY. Conversion happens through that service, so the article text is sent to it.
Setup effort
Build from source — git clone https://github.com/geekjourneyx/md2wechat-mcp-server
USE CASES
Publishing a draft you wrote in Markdown
Convert it once and paste the HTML into the WeChat editor, formatting intact.
Deciding how the article should look
Convert the same text under two themes and compare before you commit a publication to one.
Checking length before you publish
Read the word count and reading time that come back with the HTML.
Publishing a technical post with code in it
Keep the fenced code blocks and tables, which survive the conversion with highlighting.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation.
Requires
- Go 1.21 or later
- MD2WECHAT_API_KEY in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
git clone https://github.com/geekjourneyx/md2wechat-mcp-server
cd md2wechat-mcp-server
go mod tidy
go build -o md2wechat-mcp-serverMCP Clients
Claude Desktop
{
"mcpServers": {
"md2wechat": {
"command": "<YOUR_PATH_TO_MD2WECHAT_MCP_SERVER>",
"env": {
"MD2WECHAT_API_KEY": "<YOUR_MD2WECHAT_API_KEY>"
}
}
}
}