wecom-doc-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
企业微信文档读取工具。使用前需要先通过 set_wecom_cookie 设置 Cookie,或在 ~/.claude/wecom-doc-mcp/.env 中配置 WECOM_COOKIE。Cookie 获取方式:在浏览器中登录 doc.weixin.qq.com,打开开发者工具 → Network → 复制任意请求的 Cookie 请求头值。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| fetch_wecom_docA | 抓取企业微信文档内容并转为 Markdown。文档(doc)、脑图(mind)、表格(sheet)有专用解析,智能表格(smartsheet)按表格同源结构解析;文档、表格、智能表格和脑图中的图片会输出为 Markdown 图片链接;表格按工作表返回 Markdown 表格,默认最多输出 100 行数据,行数较多时用 rowStart/rowEnd 指定数据行区间(1 基,不含表头,表头行之后计起);幻灯片、流程图等类型暂无专用解析,会返回页面文本并标注来源。 |
| set_wecom_cookieA | 保存企业微信 Cookie 到本地配置文件,后续请求自动使用。Cookie 获取:浏览器登录 doc.weixin.qq.com → F12 → Network → 复制 Cookie 头。 |
| check_wecom_authA | 检查当前保存的 Cookie 是否仍然有效 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: fetching document content, saving a cookie, and checking auth validity. There is little risk of misselection because the verbs and targets are explicit.
All tools follow a consistent verb_wecom_noun pattern in snake_case: fetch_wecom_doc, set_wecom_cookie, check_wecom_auth. The convention is predictable and readable.
Three tools are well-scoped for a focused WeCom document fetching server. Each tool earns its place: content retrieval plus auth setup and validation.
The core workflow is covered: authenticate, validate auth, and fetch document content. Minor gaps exist, such as clearing/removing a saved cookie or discovering/list documents, but these are workable around.