mcpField
企
企业微信 & 飞书 OpenAPI 文档聚合 MCP 插件

企业微信 & 飞书 OpenAPI 文档聚合 MCP 插件

Local
github.com/wxkingstarDeveloper Tools19Updated 35w ago

About 企业微信 & 飞书 OpenAPI 文档聚合 MCP 插件

This plugin gives MCP clients search access to WeCom and Feishu open platform API documentation, so AI coding assistants can look up interface details while writing code. The README states the project is no longer maintained and has moved to SpecFusion.

Key features

  1. 01Searches WeCom and Feishu developer documentation
  2. 02Lets coding assistants look up API details directly
  3. 03Accepts a local documentation root via DOC_ROOT
  4. 04Provides install steps for Claude Code, Codex and Cursor

Use cases

  1. 01Checking WeCom or Feishu API references while writing integration code
  2. 02Finding message or approval API details inside an IDE

MCP support

This project is an MCP server that provides documentation search tools to MCP clients. The README notes it is no longer maintained and recommends SpecFusion instead.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"doc-hub": {
"command": "npx",
"args": [
"-y",
"doc-hub-mcp"
]
}
}
}
Run commandnpx -y doc-hub-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmdoc-hub-mcp

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

doc-hub-mcp

This project has moved / 项目已迁移

本项目已停止维护,全新版本已迁移至:SpecFusion

This project is no longer maintained. Please use the new repository: SpecFusion

为什么迁移?

doc-hub-mcp 采用 MCP Server + Markdown 文件打包的方案,存在以下问题:

  • 架构笨重 — 作为 MCP Server 运行,需要独立进程,配置繁琐
  • 包体积过大 — 每次安装需下载 100+ MB 文档数据,首次启动慢
  • 平台覆盖有限 — 仅支持企业微信和飞书两个平台
  • 检索能力弱 — 基于简单的文件名和内容匹配,缺乏中文分词能力
  • 更新不便 — 文档更新需要重新发布 npm 包,用户需重新下载全量数据

SpecFusion 的改进

新项目 SpecFusion 从方案到架构做了全面升级,最大的变化是从 MCP Server 方案转为 Claude Code Skill 方案:

doc-hub-mcp (旧)SpecFusion (新)
方案MCP Server(独立进程)Claude Code Skill(零进程,即装即用)
平台覆盖2 个(企微、飞书)15+ 个(企微、飞书、钉钉、淘宝、小红书、抖音、微信小程序、拼多多、支付宝等)
文档规模~3,000 篇26,800+ 篇,17,900+ 个 API 端点
检索方案文件名 + 内容简单匹配jieba 中文分词 + SQLite FTS5 全文索引
部署方式npm 包(文档打包分发)云端服务零配置 / Docker 自部署
更新机制重新发布 npm 包服务端实时更新,客户端无感

Skill 相比 MCP Server 的优势在于:无需启动额外进程、无需管理连接状态、安装只需一条命令、提及平台名即可自动触发检索。


以下为旧版说明,仅供参考。


企业微信 & 飞书开放平台文档检索 MCP 服务。

让 AI 编程助手直接检索企微/飞书的开发者文档,在写代码时随时查阅接口说明,无需切换浏览器。

安装

Claude Code
claude mcp add doc-hub-mcp -- npx -y doc-hub-mcp@latest
Codex
codex mcp add doc-hub-mcp -- npx -y doc-hub-mcp@latest
Cursor

打开 Settings → Features → MCP → Add New MCP Server,输入:

  • Type: stdio
  • Command: npx -y doc-hub-mcp@latest

或直接点击安装:Install in Cursor

提示:首次安装需下载约 100 MB 文档数据,请耐心等待。后续启动使用缓存,速度会快很多。

使用

安装完成后,直接向 AI 提问即可,它会自动调用文档检索:

  • "企业微信如何获取外部联系人列表?"
  • "飞书如何发送消息卡片?"
  • "企微审批流程怎么对接?"

配置(可选)

环境变量
变量名说明默认值
DOC_ROOT自定义文档根目录包内 wecom/、feishu/
DOC_NAMESPACE资源命名空间local-docs
MCP_SERVER_NAME服务显示名称doc-hub

带环境变量安装示例(Claude Code):

claude mcp add doc-hub-mcp -e DOC_ROOT=/path/to/docs -- npx -y doc-hub-mcp@latest
手动配置文件

如果需要手动编辑配置文件:

Claude Code (~/.claude.json):

{
  "mcpServers": {
    "doc-hub-mcp": {
      "command": "npx",
      "args": ["-y", "doc-hub-mcp@latest"]
    }
  }
}

Codex (~/.codex/config.toml):

[mcp_servers.doc-hub-mcp]
command = "npx"
args = ["-y", "doc-hub-mcp@latest"]

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "doc-hub-mcp": {
      "command": "npx",
      "args": ["-y", "doc-hub-mcp@latest"]
    }
  }
}

支持的文档

  • 企业微信 — 服务端 API、客户端 API、应用开发、智慧硬件等
  • 飞书开放平台 — 开发指南、服务端 API、消息卡片、小程序等

文档更新时间:2026-01-19

故障排查

问题解决方案
首次加载缓慢正常现象,需下载 100+ MB 文档数据,等待 2-5 分钟
工具不显示检查配置文件 JSON/TOML 格式是否正确,重启 IDE
文档目录不存在通过 DOC_ROOT 环境变量指定正确路径

本地开发

npm install
npm run mcp:server --silent

# MCP Inspector 调试
npx @modelcontextprotocol/inspector -s "npm run mcp:server --silent"
数据抓取
npm run scrape:wecom                   # 企业微信全量抓取
npm run scrape:feishu                  # 飞书全量抓取
npm run scrape:wecom -- --limit 20     # 仅抓取 20 篇验证

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.