# md2wechat-skill [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/geekjourneyx/md2wechat-skill  
**GitHub Stars:** 3837  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/md2wechat-skill

## Description
面向 AI Agent 的微信公众号创作与发布 CLI：Markdown 排版、AI 配图、预览与草稿创建；支持由浏览器 Agent 保存知乎、CSDN、头条未发布草稿。

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/geekjourneyx/md2wechat-skill), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g @geekjourneyx/md2wechat@3.9.0
```

2. Run:

```sh
md2wechat config init --json
```

3. Check the setup:

```sh
md2wechat config validate --json
```

## Documentation

## What md2wechat-skill does

md2wechat-skill turns Markdown articles into content prepared for WeChat Official Accounts. Its workflow covers article inspection, themed rendering, local HTML output, image generation, and draft creation. Agents can also use it to prepare content for Zhihu, CSDN, Toutiao, and Tencent Cloud Developer Community, with the host agent applying the platform-specific steps in an already logged-in browser.

The tool separates checks from side effects. `inspect` reports metadata, validation results, readiness targets, and blockers. `preview` writes the successful API-rendered HTML to a local file. `convert` performs the conversion and can upload images or create a WeChat draft only when those actions are explicitly requested.

## How it works

The command-line workflow starts with an article file. Discovery commands such as `capabilities`, `doctor`, `themes list`, `layout list`, `providers`, and `skills` let an agent determine what the installed CLI can do before choosing an operation. JSON output is intended for machine handling; adding `| jq` is suitable for interactive inspection.

For WeChat output, the paid API mode returns final HTML and supports professional themes plus advanced `:::module` layout syntax. Free AI mode instead produces a prompt for a host agent or external language model and does not directly return final HTML. A local layout validation command checks syntax, while API preview or conversion is needed to verify remote rendering.

Image workflows can create covers and infographics through configured providers, or return an image plan for a host agent with image-generation tools. A MiniMax subject reference can be supplied for supported image generation requests. The cross-platform draft flow uses `sync prepare` to create prepared content; the result waits for the host agent to carry out the browser workflow.

## Setup and configuration

Install the CLI package with npm, then initialize and validate its configuration:

```bash
npm install -g @geekjourneyx/md2wechat@latest
md2wechat config init --json
md2wechat config validate --json
```

Preview and conversion in API mode require an md2wechat API key. WeChat draft creation additionally requires the relevant WeChat credentials and may use a named account. When `--wechat-account` is used, the same account name must be supplied to both `inspect` and `convert`.

Image generation requires configuration for the selected provider. Plan mode does not require an image API key because it only prepares instructions for the host agent.

## Tools and capabilities

- Inspect article metadata, checks, readiness targets, and blockers.
- Convert Markdown into WeChat HTML and write previews locally.
- Create WeChat drafts with optional covers and uploaded images.
- List and validate themes, layouts, prompts, providers, skills, and capabilities.
- Generate cover images and infographics through supported providers.
- Suggest titles, humanize content, and prepare product-oriented writing workflows.
- Prepare browser-assisted drafts for multiple publishing platforms.

## Limitations and notes

Professional API rendering is a paid service and is required for final HTML output from that mode. Free AI mode hands work to another model instead of producing final HTML. A prepared multi-platform sync directory is not itself a created draft; the host agent must execute the browser steps.

Local layout validation confirms syntax only and cannot establish that a remote renderer has the required deployment. Image-provider availability depends on the configured provider and model. MiniMax subject references require a publicly accessible HTTP(S) image URL and apply only to the supported `image-01` request path.

_Full upstream README: https://allmcps.com/mcp/md2wechat-skill/readme_

