Yuque MCP Server
Lets your AI agent search, read and write your Yuque knowledge base: books, docs, notes and boards.
263 stars on GitHubby YuqueLicense MITUpdated 4 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add yuque -- npx -y yuque-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
YUQUE_PERSONAL_TOKEN | Yuque personal API token (get from https://www.yuque.com/settings/tokens). Use one of: YUQUE_PERSONAL_TOKEN, YUQUE_GROUP_TOKEN, or YUQUE_TOKEN. | No |
YUQUE_GROUP_TOKEN | Yuque group/team API token (alternative to YUQUE_PERSONAL_TOKEN for team workspaces). | No |
YUQUE_TOKEN | Yuque API token (legacy, use YUQUE_PERSONAL_TOKEN or YUQUE_GROUP_TOKEN instead). | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
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.
What it is
The Yuque MCP Server connects AI assistants to the Yuque (Chinese knowledge base) API. It has 19 tools to find docs, read them in Markdown, create or update docs and notes, manage books and the table of contents, and edit boards. The tools can change real content, so keep the token secret.
What it can do
yuque_search: search docs or reposyuque_list_booksandyuque_get_bookyuque_get_doc,yuque_create_doc,yuque_update_docyuque_get_tocandyuque_update_tocyuque_list_notesandyuque_create_noteyuque_get_resourceandyuque_create_resource: boards
When to use
- βΊWhen you want a one-page summary of everything on a topic in your Yuque
- βΊWhen you want meeting notes turned into a doc in a chosen book
- βΊWhen you want a flowchart added to a design doc
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
douban-book-notesHelps your agent write a sourced Chinese reading note from a Douban book link, combining the book's details, outside research and your reflections.siyuanLets your agent search, read, create, edit and delete notes in your self-hosted SiYuan knowledge base using its API.crossframe-notebookHelps your agent organize notes on Chinese books and theories. It creates summaries, maps conflicts, and facilitates information absorption and reading.Frequently asked questions
Is it free and open source?
Yes. It is MIT licensed and published on npm. Yuque itself has its own account terms.
Can it change my content?
Yes. The create and update tools modify real content and can do whatever your token can do.
Which clients can I install it into?
claude-desktop, vscode, cursor, windsurf, cline, trae, qoder and opencode with npx yuque-mcp install, and Claude Code with claude mcp add.
What is not covered?
Comments, attachment upload, permission and member management, section-level edits and structured resources other than boards.
Can I use a team token?
Yes. Pass the space host with YUQUE_HOST or --host, such as https://your-space.yuque.com.
Any editing limits?
yuque_update_doc cannot combine a Markdown body with title, slug or public changes in one call, so update metadata separately.
If it does not work
- βΊ401 Unauthorized means the token is invalid or expired, so create a new one in Yuque settings.
- βΊ429 means too many requests; wait a moment and retry.
- βΊIf npx is not found, install Node.js 18 or newer; update with npx -y yuque-mcp@latest if a tool is missing.
5 new skills a week. 1 minute to read.