Md2WeChat

v1.0.0Communicationstable

Markdown to WeChat CLI | 一键排版发布到微信公众号:支持 40+ 排版样式和专业主题 、AI 配图 、批量发布

agent-cliai-agentai-writingclaude-codeclaude-skills
Share:
2,292
Stars
0
Downloads
0
Weekly
0/5

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

Publish Markdown to WeChat with styling
Batch publishing and AI-powered image generation
geekjourneyx

Maintainer

LicenseNOASSERTION
Languagego
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx md2wechat-skill

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 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'
1

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 --version
2

Initialize the configuration

Run the config init command to generate the configuration file. Enter your WeChat Official Account AppID and AppSecret when prompted.

md2wechat config init
3

Install the MCP skill server

Install the md2wechat MCP skill server to expose the CLI capabilities to AI agents like Claude Code.

npx md2wechat-skill
4

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

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

Convert 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 --draft
7

Generate 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 --draft

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

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": { "md2wechat-skill": { "command": "npx", "args": ["-y", "md2wechat-skill"] } } }

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

Read the full setup guide →

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.

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