WeChat Markdown Editor MCP Server logo

WeChat Markdown Editor MCP Server

Community
geekjourneyx

📝 md2wechat MCP Server | 让 Claude Code & AI Agent 一键排版发布到微信公众号

Publishergeekjourneyx
Repositorymd2wechat-mcp-server
LanguageGo
Forks
10
Stars
49
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    WeChat Markdown Editor MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    49 stars and 10 forks from the linked repository.

微信 Markdown 编辑器 MCP 服务器

这是一个基于 MCP (Model Context Protocol) 的 Go 服务器,用于将 Markdown 文本转换为微信公众号格式的 HTML。

功能特性

  • 🚀 快速转换: 将 Markdown 文本转换为微信公众号兼容的 HTML 格式
  • 🎨 多种主题: 支持 4 种主题风格(默认、字节范、中国风、苹果范)
  • 📊 详细统计: 提供字数统计和预估阅读时间
  • 🔒 安全认证: 支持 API Key 认证
  • 💬 智能集成: 可与大语言模型(如 Claude、GPT)无缝集成

支持的 Markdown 语法

基础语法

  • 标题 (H1-H6)
  • 段落和换行
  • 加粗文本 和 斜体文本
  • 内联代码
  • 链接
  • ![图片](https://example.com/image.jpg)
  • 无序列表和有序列表
  • 引用块

  • 分割线 (---)

扩展语法

  • 代码块(支持语法高亮)
  • 表格
  • 脚注 [^1]
  • GFM 提示框(NOTE、TIP、IMPORTANT、WARNING、CAUTION)

环境要求

  • Go 1.21 或更高版本
  • 微信 Markdown 编辑器 API Key

安装和配置

1. 克隆或下载代码

bash
git clone https://github.com/geekjourneyx/md2wechat-mcp-server
cd md2wechat-mcp-server

2. 安装依赖

bash
go mod tidy

3. 设置 API Key

获取微信 Markdown 编辑器的 API Key 后,设置环境变量:

bash
# Linux/macOS
export MD2WECHAT_API_KEY="wme_your_api_key_here"

# Windows
set MD2WECHAT_API_KEY=wme_your_api_key_here

4. 构建和运行

bash
# 构建
go build -o md2wechat-mcp-server

# 运行
./md2wechat-mcp-server

MCP 工具说明

convert_markdown

将 Markdown 文本转换为微信公众号格式的 HTML。

参数:

参数名类型必填描述
markdownstring✅要转换的 Markdown 文本内容
themestring❌主题样式,默认为 "default"

支持的主题:

  • default - 默认微信经典风格
  • bytedance - 字节范(科技现代风格)
  • chinese - 中国风(古典雅致风格)
  • apple - 苹果范(视觉渐变风格)

返回结果:

json
{
  "success": true,
  "html": "<section>...</section>",
  "theme": "default",
  "wordCount": 156,
  "estimatedReadTime": 1,
  "message": "Markdown 转换成功"
}

在大语言模型中使用

Claude Desktop 配置

在 claude_desktop_config.json 中添加:

json
{
  "mcpServers": {
    "md2wechat": {
      "command": "/path/to/md2wechat-mcp-server",
      "env": {
        "MD2WECHAT_API_KEY": "wme_your_api_key_here"
      }
    }
  }
}

使用示例

与 Claude 对话时,可以这样请求:

请帮我将以下 Markdown 文本转换为微信公众号格式:

# 我的文章标题

这是一个**重要**的段落。

## 子标题

- 列表项 1
- 列表项 2

使用中国风主题。

Claude 会调用 convert_markdown 工具,并返回转换后的 HTML 代码。

错误处理

服务器会处理以下常见错误:

  • API Key 未设置或无效
  • Markdown 内容为空
  • 无效的主题参数
  • 网络连接问题
  • API 服务异常

API 限制

  • 单次请求 Markdown 内容不超过 100KB
  • API Key 配额:100 请求/分钟
  • 网络请求超时:30 秒

开发和贡献

项目结构

md2wechat-mcp-server/
├── main.go          # 主程序文件
├── go.mod           # Go 模块依赖
├── README.md        # 说明文档
└── api_doc.md       # 原始 API 文档

开发建议

  1. 遵循 Go 代码规范
  2. 添加适当的错误处理
  3. 编写详细的注释
  4. 测试 API 集成

许可证

本项目基于 MIT 许可证开源。

支持和反馈

如有问题或建议,请提交 Issue 或联系开发团队。


注意: 使用前请确保已正确配置 API Key,并遵守微信 Markdown 编辑器的使用条款。

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "geekjourneyx-md2wechat-mcp-server": {
      "command": "",
      "args": []
    }
  }
}

Use WeChat Markdown Editor MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once WeChat Markdown Editor MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add WeChat Markdown Editor MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the WeChat Markdown Editor MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "geekjourneyx-md2wechat-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "md2wechat-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the WeChat Markdown Editor MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the WeChat Markdown Editor MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use WeChat Markdown Editor MCP Server to help me with this task?
WeChat Markdown Editor MCP Server
Sure. I read it.
Here is what I found using WeChat Markdown Editor MCP Server.

Frequently asked questions

What is the WeChat Markdown Editor MCP Server MCP server used for?

WeChat Markdown Editor MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use WeChat Markdown Editor MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use WeChat Markdown Editor MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use WeChat Markdown Editor MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With WeChat Markdown Editor MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect WeChat Markdown Editor MCP Server MCP to TypingMind?

WeChat Markdown Editor MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does WeChat Markdown Editor MCP Server MCP provide in TypingMind?

WeChat Markdown Editor MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use WeChat Markdown Editor MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If WeChat Markdown Editor MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇