list_themes
List the themes available to publish_article.
Publish a Markdown article to a WeChat Official Account with its formatting already applied by a theme you chose.
LABSCO SUMMARY
What it takes off you is the reformatting: WeChat's editor does not take Markdown, so an article normally gets restyled by hand on the way in. Here the theme is picked at publish time, and a house style you have written yourself can be registered once and reused.
A publishing bridge for WeChat Official Accounts (微信公众号). It takes Markdown, applies one of its themes, and posts the formatted article under the account you name.
npx on your PATH, and a WeChat Official Account to publish into — publish_article takes the app id it posts under. A custom theme has to be registered before it can be selected.
One command plus credentials — npm install -g @wenyan-md/mcp, then supply credentials
USE CASES
See which themes are available, publish under the one that matches the account's look, and skip the manual restyling inside WeChat's editor.
The article does not have to be pasted in — a file path or a URL works as the source, so the same draft can stay in the repository or the CMS it came from.
Register the theme once by name and path and it joins the list every later publish can choose from; remove it by name when it is retired.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
list_themesList the themes available to publish_article.
publish_articleFormat a Markdown article using a selected theme and publish it to '微信公众号'.
register_themeRegister a custom theme, by name and path, for publish_article to use.
remove_themeRemove a registered custom theme by name.
BEFORE YOU INSTALL
4 tools when we connected. No switch changes the four tools, but they fail if the environment variables are missing or the machine's IP is not on the WeChat Official Account IP whitelist. Publishing to another account is an app_id parameter of publish_article.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npm install -g @wenyan-md/mcp{
"mcpServers": {
"wenyan-mcp": {
"command": "wenyan-mcp",
"env": {
"WECHAT_APP_ID": "<YOUR_WECHAT_APP_ID>",
"WECHAT_APP_SECRET": "<YOUR_WECHAT_APP_SECRET>"
}
}
}
}