Skip to main content

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"]
    }
  }
}

使用流程

  1. 导出 Cookie:运行 export_cookies 工具,会自动打开本地 Chrome 浏览器窗口,登录企微文档后自动保存 Cookie
  2. 读取文档:运行 read_doc 工具,传入企微文档 URL 即可获取内容
  3. 读取含图片的文档: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

Metadata

Release files for mcp-server-wecom-doc 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-wecom-doc 1.0.0
File Size Uploaded Provenance Actions
mcp_server_wecom_doc-1.0.0.tar.gz 33.1 kB Without provenance Details for mcp_server_wecom_doc-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-wecom-doc 1.0.0
File Interpreter ABI Platform Actions
mcp_server_wecom_doc-1.0.0-py3-none-any.whl Python 3 none any Details for mcp_server_wecom_doc-1.0.0-py3-none-any.whl

Total release size: 70.4 kB

Release files / mcp_server_wecom_doc-1.0.0.tar.gz

Download URL mcp_server_wecom_doc-1.0.0.tar.gz
Size 33.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6b267cc4448d7612fc138bfbb838c37b6498f2f170f343194b76cc1d9cb14d7e
BLAKE2b-256 checksum
How to use checksums
96656d7f5f6064527cf1edf297fbe79d5b37630a990f3494b796d2ccb8bb8b89
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / mcp_server_wecom_doc-1.0.0-py3-none-any.whl

Download URL mcp_server_wecom_doc-1.0.0-py3-none-any.whl
Size 37.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7dbfd3a4b3533347a08e9bddda712e1fee80c58b9c329055f1e94a48d03a569
BLAKE2b-256 checksum
How to use checksums
ac2272bb3e62d44e0f17af8065a1ade187caf527fe0623a25146e8f7f1a8d163
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for mcp-server-wecom-doc 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page