Wenyan MCP

Wenyan MCP

Installable
caol64
GitHubnpm

About

Wenyan MCP Server enables AI to automatically format and publish Markdown articles to WeChat Official Accounts (微信公众号). It bridges the gap between AI writing and platform publishing, eliminating the need for manual copy-pasting through third-party editors.

Core Features

  • Bypass formatting tools: AI-generated Markdown converts directly to WeChat rich-text and uploads automatically
  • Conversational styling: Tell the AI "switch to orange theme" and styling updates instantly
  • Complete workflow in one window: From brainstorming topics to writing, formatting, and saving drafts—all within a single chat interface
  • Multi-platform support: Publish to WeChat Official Accounts, Zhihu, Toutiao, and more
  • Built-in themes: Multiple beautiful formatting themes with custom theme support
  • Image handling: Automatically uploads local and remote images to WeChat media library
  • Cover images: Supports local paths, URLs, and relative paths
  • Image posts (小绿书): Publish image-only messages with up to 20 images
  • Server mode: Deploy remotely to bypass IP whitelist restrictions and enable team collaboration
  • Multi-account publishing: Manage multiple WeChat Official Accounts (requires server mode)

Tools

  • Render Markdown: Convert and format articles with selected themes
  • Theme management: List, register custom themes, and delete themes
  • Publish drafts: Upload formatted articles directly to WeChat draft box

Article Format

Markdown files require frontmatter metadata:

---
title: Your Article Title
cover: /path/to/cover.jpg
author: Author Name
source_url: https://original-url.com
type: image  # Optional: for image posts
image_list:  # Optional: for image posts (max 20)
  - ./image1.jpg
  - ./image2.jpg
need_open_comment: true  # Optional
only_fans_can_comment: false  # Optional
---

Server Mode

For teams or users without fixed IPs, deploy the Wenyan Server remotely. The MCP client connects to the server, which handles WeChat API calls. This enables:

  • IP whitelist bypass
  • Team collaboration
  • CI/CD integration
  • AI Agent automation
  • Multi-account management

Docker Deployment

Requires volume mounting for file access:

  • Mount host directory to /mnt/host-downloads
  • Set HOST_FILE_PATH environment variable to match host path
  • Place Markdown files and images in mounted directory

This server runs through your single 1Server connection. No extra config required.

0Installs
--Stars

Categories

AutomationProductivityCommunication