io.github.yuque/yuque-mcp

平台与服务

by yuque

用于 Yuque 的 MCP 服务器,可将你的知识库开放给 AI assistants 读取、检索与调用。

让语雀知识库直接接入 AI 助手,解决私有文档难被读取和检索的问题,MCP 方式集成顺手又省折腾。

什么是 io.github.yuque/yuque-mcp

用于 Yuque 的 MCP 服务器,可将你的知识库开放给 AI assistants 读取、检索与调用。

README

<div align="center">

<a href="https://www.yuque.com/"><img src="https://avatars.githubusercontent.com/u/34602419?s=200&v=4" width="96" alt="Yuque logo"></a>

<h1>Yuque MCP Server</h1>

Let AI assistants read and write your Yuque (语雀) knowledge base<br>through the Model Context Protocol.

CI npm version npm downloads License

Quick Start · Tools · Troubleshooting · Docs · 中文文档

</div>

Once connected, ask your assistant things like:

"Search my Yuque for everything about canary releases and give me a one-page summary."

"Turn today's meeting notes into a doc in my Tech Research book."

"Add a flowchart of this deployment pipeline to the design doc."

Quick Start

1. Get a token — create one at Yuque Developer Settings. If you use a team token bound to a Yuque space, also note the space host (e.g. https://your-space.yuque.com) — you will pass it as --host.

2. Install — one command locates the right config file for your OS and merges a yuque entry into it, without touching other servers:

bash
npx yuque-mcp install --token=YOUR_TOKEN --client=cursor

Supported clients: claude-desktop · vscode · cursor · windsurf · cline · trae · qoder · opencode. Prefer an interactive flow? Run npx yuque-mcp setup.

<details> <summary><b>Claude Code</b></summary>

Register the server directly:

bash
claude mcp add yuque -- npx -y yuque-mcp --token=YOUR_TOKEN
</details> <details> <summary><b>Other MCP clients (generic config)</b></summary>

Any client that supports stdio transport works — see docs/clients.md for per-client config paths.

json
{
  "mcpServers": {
    "yuque": {
      "command": "npx",
      "args": ["-y", "yuque-mcp"],
      "env": { "YUQUE_TOKEN": "YOUR_TOKEN" }
    }
  }
}
</details>

3. Restart your client and start asking.

Configuration

SettingEnv var / CLI flagDescription
Token (required)YUQUE_TOKEN / --tokenPersonal or team Yuque API token
Host (optional)YUQUE_HOST / --hostSite or space host, e.g. https://your-space.yuque.com — required for space-bound team tokens and private deployments

Site roots are normalized to /api/v2; when unset, the host defaults to https://www.yuque.com/api/v2.

bash
# Team token / private deployment
npx yuque-mcp install --token=YOUR_TOKEN --client=cursor --host=https://your-space.yuque.com
<details> <summary>Migrating from an older config?</summary>

YUQUE_PERSONAL_TOKEN, YUQUE_BASE_URL, and --base-url still work as legacy fallbacks. Precedence: YUQUE_TOKEN > YUQUE_PERSONAL_TOKEN > --token, and YUQUE_HOST > --host > YUQUE_BASE_URL > --base-url. New configs should use YUQUE_TOKEN and YUQUE_HOST.

</details>

Tools (19)

Each tool maps to exactly one Yuque API route.

CategoryToolDescription
Useryuque_get_userGet the authenticated user for the current token
Searchyuque_searchSearch docs or repos, with paging
Booksyuque_list_booksList books (知识库) of a user
yuque_get_bookGet a book by ID or namespace
yuque_create_bookCreate a book
yuque_update_bookUpdate name, slug, description, or visibility
Docsyuque_list_docsList docs in a book, with paging
yuque_get_docGet full content — markdown, lake, or html
yuque_create_docCreate a doc in a book
yuque_update_docUpdate a doc's body or metadata
TOCyuque_get_tocGet a book's table of contents
yuque_update_tocAppend or move a single TOC node
Notesyuque_list_notesList notes (小记), with paging and status filter
yuque_get_noteGet a note with full content
yuque_create_noteCreate a note
yuque_update_noteUpdate a note
Boardsyuque_get_resourceRead a board (mindmap / flowchart / diagram) from a doc
yuque_create_resourceCreate a board in a doc
yuque_update_resourceUpdate a board in a doc

In particular, yuque_update_doc cannot combine a markdown body with title / slug / public changes in a single call — update metadata separately. The full contract, including format routing between the YMD markdown API and the legacy document API, is documented in docs/capability-scope.md.

Not covered (yet): comments, attachment upload and file management, permission and member management, section-level doc edits, and structured resources other than boards.

Write access

The create/update tools modify real content in your knowledge base, and the server can do whatever your token can do. Keep the token secret, and prefer a space-scoped team token (with YUQUE_HOST) when you only work within one space. To report a vulnerability, see SECURITY.md.

Troubleshooting

ErrorSolution
YUQUE_TOKEN ... is requiredSet YUQUE_TOKEN=YOUR_TOKEN or pass --token=YOUR_TOKEN
401 UnauthorizedToken invalid or expired — regenerate it
429 Rate LimitedToo many requests — wait a moment and retry
410 GoneTarget permanently deleted or endpoint deprecated — check the doc/book exists
Tool not foundUpdate to the latest version: npx -y yuque-mcp@latest
npx command not foundInstall Node.js v18 or later

Development

bash
git clone https://github.com/yuque/yuque-mcp-server.git
cd yuque-mcp-server
npm install
npm test              # run tests
npm run build         # compile TypeScript
npm run dev           # dev mode with hot reload

Architecture, tech stack, and the full tool contract live in docs/. Contributions are welcome — see CONTRIBUTING.md.

Links

License

MIT

常见问题

io.github.yuque/yuque-mcp 是什么?

用于 Yuque 的 MCP 服务器,可将你的知识库开放给 AI assistants 读取、检索与调用。

相关 Skills

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描164.6k

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描164.6k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描23.3k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.0k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
79.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
71.5k

评论