企业微信文档 MCP Server - 读取企微在线文档内容(文字+图片+链接)
Project description
mcp-server-wecom-doc
企业微信文档 MCP Server - 通过 MCP 协议读取企微在线文档内容。
功能
- ✅ 读取企微在线文档的文字内容(支持 w3_/e2_ 等普通文档类型)
- ✅ 下载并识别文档中的图片(架构图、流程图、截图等)
- ✅ 提取表格中的超链接
- ✅ 多 Sheet Tab 支持(在线表格)
- ✅ 行级关联模式(逐行关联文字、图片、链接)
- ✅ 自动从已登录浏览器导出 Cookie
- ✅ 优先使用本地 Chrome/Edge,无需额外安装 Chromium
快速开始
MCP 配置
{
"mcpServers": {
"wecom-doc": {
"command": "uvx",
"args": ["mcp-server-wecom-doc"]
}
}
}
使用流程
- 导出 Cookie:运行
export_cookies工具,会自动打开本地 Chrome 浏览器窗口,登录企微文档后自动保存 Cookie - 读取文档:运行
read_doc工具,传入企微文档 URL 即可获取内容 - 读取含图片的文档:
read_doc设置with_images: true
浏览器要求
- macOS:自动检测
/Applications/Google Chrome.app或/Applications/Microsoft Edge.app - Linux:自动检测
google-chrome、google-chrome-stable或microsoft-edge - 如果本地没有 Chrome/Edge,需手动安装:
playwright install chromium
环境变量
| 变量 | 说明 | 默认值 |
|---|---|---|
WECOM_DOC_COOKIE_FILE |
Cookie 文件路径 | ~/.wecom-doc-cookies.json |
支持的文档类型
| URL 类型 | 类型 | 支持 |
|---|---|---|
w3_ / e2_ |
普通在线文档 | ✅ 完整支持 |
e3_ |
在线表格(sheet) | ✅ 支持读取 |
e4_ |
智能表格 | ⚠️ 部分支持 |
| 收集表 / 思维导图 | 其他类型 | ❌ 暂不支持 |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_wecom_doc-1.0.0.tar.gz.
File metadata
- Download URL: mcp_server_wecom_doc-1.0.0.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b267cc4448d7612fc138bfbb838c37b6498f2f170f343194b76cc1d9cb14d7e
|
|
| MD5 |
5dc510678d5ff2090b692b7abee525b3
|
|
| BLAKE2b-256 |
96656d7f5f6064527cf1edf297fbe79d5b37630a990f3494b796d2ccb8bb8b89
|
File details
Details for the file mcp_server_wecom_doc-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mcp_server_wecom_doc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7dbfd3a4b3533347a08e9bddda712e1fee80c58b9c329055f1e94a48d03a569
|
|
| MD5 |
caa0c04c533bc1daf98180180a93b248
|
|
| BLAKE2b-256 |
ac2272bb3e62d44e0f17af8065a1ade187caf527fe0623a25146e8f7f1a8d163
|