Wenyan MCP logo

Wenyan MCP

by caol64

Formats Markdown for WeChat articles, uploads local images, manages themes, and saves drafts through MCP.

Install Wenyan MCP

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://api.example.com

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The caol64/wenyan-mcp MCP server connects AI clients to Wenyan’s Markdown formatting and WeChat Official Account publishing workflow. It exposes MCP tools for rendering Markdown, managing themes, uploading article assets, and saving content to the WeChat draft box. Local stdio mode calls the WeChat API directly, while server mode forwards requests to a hosted Wenyan Server. Reach for it when an agent needs to turn Markdown into formatted WeChat content without manual editor copy-paste.

Use cases

  • Format Markdown articles for WeChat
  • Publish drafts to a WeChat Official Account
  • Manage custom CSS themes
  • Upload local article images
  • Prepare image messages with up to 20 images

Key features

  • Markdown-to-WeChat rich-text rendering
  • Built-in and custom formatting themes
  • Local and remote image uploads
  • WeChat draft-box publishing
  • Image-message publishing
  • Local stdio and remote server modes

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

19/19 checks healthy over the last 78d

Supply-chain signal

2 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 1Medium 0Low 0

Scanned 8/22/2026 via OSV.dev · https://api.example.com (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1.3kStargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Wenyan MCP works

What caol64/wenyan-mcp MCP server does

The caol64/wenyan-mcp MCP server gives an MCP-compatible AI client access to Wenyan’s content formatting and publishing workflow. Its primary destination is the WeChat Official Account draft box. It can convert Markdown into WeChat rich text, apply a selected layout theme, upload referenced images, and submit the resulting article as a draft.

The project also describes support for image-message publishing, called “小绿书” in the documentation. A Markdown document can declare type: image or provide an image_list in frontmatter. The documented limit for that list is 20 images, with the first image used as the cover.

How it works

An AI client communicates with the caol64/wenyan-mcp MCP server through the standard MCP tool interface. Typical interactions include asking the client to list available themes, register a CSS-based theme, remove a theme, render an article, or publish a Markdown file using a named theme.

In local stdio mode, the MCP process sends image-upload and draft-publication requests directly to the WeChat Official Account API. In server mode, it acts as a client of a separately deployed Wenyan Server, which performs the WeChat API operations. Server mode is documented for environments without a stable local IP, team use, CI/CD workflows, AI-agent publishing, and publishing to multiple accounts. Multiple-account publishing requires server mode and credentials configured on the server.

Setup and configuration

The package is published as @wenyan-md/mcp and can be installed globally with npm. Claude Desktop can start the resulting wenyan-mcp executable and pass the required WeChat credentials through its environment configuration. WECHAT_APP_ID and WECHAT_APP_SECRET must be present when using direct local API access. The machine running the process also needs to be included in the WeChat Official Account IP allowlist.

Articles need YAML frontmatter at the beginning of the Markdown file. title is required. Optional fields include cover, author, source_url, comment settings, type, and image_list. A cover may be a local path or URL; if it is omitted, the first image in the body is used when available. Body images can use absolute local paths, remote URLs, or paths relative to the article.

Docker is another documented deployment option. The host directory containing Markdown files and local images must be mounted at /mnt/host-downloads, and HOST_FILE_PATH must match the host-side directory path. The image is caol64/wenyan-mcp.

Tools and capabilities

The caol64/wenyan-mcp MCP server documents these agent-callable capabilities:

  • Render Markdown into the target publishing format.
  • List, register, and delete formatting themes.
  • Apply built-in or custom themes.
  • Upload local and remote article images for WeChat handling.
  • Save formatted articles to the WeChat draft box.
  • Publish image messages using extracted or explicitly listed images.

Custom themes are registered from a CSS URL and assigned a name for later use.

Limitations and notes

Publishing depends on valid WeChat credentials and the required IP allowlist configuration. Local image handling in Docker depends on correct volume mapping and a matching HOST_FILE_PATH. The material identifies WeChat as the direct publishing target; although Wenyan itself supports other platforms, this MCP README specifically documents the WeChat publishing workflow. The remote mode also requires a separately deployed Wenyan Server and its associated configuration.

The project is licensed under Apache License 2.0.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Wenyan MCP

Install the published npm package with `npm install -g @wenyan-md/mcp`, then configure an MCP client to start the `wenyan-mcp` executable.

Yes. The README provides Claude Desktop configuration using the `wenyan-mcp` command.

Local API access requires `WECHAT_APP_ID` and `WECHAT_APP_SECRET`. The running machine must also be added to the WeChat Official Account IP allowlist.

Yes. It supports absolute local paths, relative article paths, and remote image URLs, and uploads article images before publishing.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWenyan MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/caol64-wenyan-mcp?style=directory)](https://allmcps.com/mcp/caol64-wenyan-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/caol64-wenyan-mcp"><img src="https://allmcps.com/api/badge/caol64-wenyan-mcp?style=directory" alt="Wenyan MCP on AllMCPs" /></a>