Skip to main content
Glama
weinh

wechat-mcp-publisher

by weinh

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WECHAT_APP_IDYes微信公众号的 App ID,可在 mp.weixin.qq.com 设置与开发 → 基本配置中获取。
WECHAT_APP_SECRETYes微信公众号的 App Secret,可在 mp.weixin.qq.com 设置与开发 → 基本配置中获取。

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_news_draftA

创建图文草稿(news),成功返回 {"media_id": ..., "title": ..., "cover_url": ...}。

参数:
  title: 文章标题(必填)
  content: 正文。支持两种形态——HTML 字符串,或本地 .html 文件路径
           (若该路径存在则自动读取文件,否则按 HTML 内容处理)
  cover: 封面图片(必填):本地文件路径或 http(s) URL,自动上传为封面素材
  author: 作者名(可选)
  digest: 摘要(可选,留空时微信自动截取正文)
  content_source_url: 原文链接(可选)

正文 HTML 中的 <img> 会自动上传到微信并替换 src 为微信托管的 URL;
已指向微信域名(mmbiz.qpic.cn / mp.weixin.qq.com)的图片保持不变。
create_newspic_draftA

创建图片消息草稿(newspic),成功返回 {"media_id": ..., "title": ..., "image_count": ...}。

参数:
  title: 消息标题(必填)
  images: 1~20 张图片,按传入顺序展示;每项为本地文件路径或 http(s) URL
  content: 图片下方的纯文字说明(可选,注意不是 HTML)

与图文消息不同:图片消息的 content 是纯文本,图片本体在 images 中,
全部经永久素材接口上传后按序组装。
list_draftsA

分页查询草稿箱列表,返回 {"total": 总数, "offset": 当前偏移, "items": [{media_id, title, update_time}]}。

参数:
  offset: 起始位置(默认 0)
  count: 每页数量(默认 20,最大 20)
get_draftA

查询草稿详情(含 news_item 全部字段:标题、正文 HTML、封面等)。

参数:
  media_id: 草稿 ID(由 create_news_draft / create_newspic_draft 返回,或从 list_drafts 获取)
delete_draftA

删除指定草稿,成功返回 {"media_id": ..., "deleted": true}。

注意:删除草稿不会连带删除其占用的永久素材图片(微信行为)。
参数:
  media_id: 草稿 ID

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/weinh/wechat_mcp_publisher'

If you have feedback or need assistance with the MCP directory API, please join our Discord server