
Yuque Mcp
io.github.yuquePublished by GitHub account yuquev0.1.4Updated Oct 24, 2026
MCP server for Yuque — expose your knowledge base to AI assistants.
Overview
Lets an AI assistant read and write a Yuque knowledge base: search, list, create and update books, docs, notes and boards.
- What you can do
- A local stdio MCP server that maps 19 tools onto Yuque API routes. It can fetch the authenticated user, search docs or repos, list and manage books (knowledge bases), read, create and update docs in markdown, lake or html, read and edit a book's table of contents, manage notes, and read or create boards such as mindmaps and flowcharts inside docs. Comments, attachments, permissions and member management are not covered.
- When to use it
- Useful when your notes, documentation or team knowledge live in Yuque and you want an assistant to search them, summarize them, or draft and file new docs and meeting notes without switching apps.
- Requirements
- Node.js v18 or later, since it runs locally via npx. A Yuque API token is required, supplied as YUQUE_TOKEN (or the legacy YUQUE_PERSONAL_TOKEN or YUQUE_GROUP_TOKEN) or the --token flag. For space-bound team tokens or private deployments, set YUQUE_HOST or --host. Network access to Yuque is needed.
Installation
In SourceWeft
- Open Yuque Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Yuque MCP Server
Let AI assistants read and write your Yuque (语雀) knowledge base
through the Model Context Protocol.
[CI] [npm version] [npm downloads] [License]
Quick Start · Tools · Troubleshooting · Docs · 中文文档
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:
Supported clients: claude-desktop · vscode · cursor · windsurf · cline · trae · qoder · opencode. Prefer an interactive flow? Run npx yuque-mcp setup.
Claude Code
Register the server directly:
Other MCP clients (generic config)
Any client that supports stdio transport works — see docs/clients.md for per-client config paths.
3. Restart your client and start asking.
Configuration
Site roots are normalized to /api/v2; when unset, the host defaults to https://www.yuque.com/api/v2.
Migrating from an older config?
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.
Tools (19)
Each tool maps to exactly one Yuque API route.
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
Development
Architecture, tech stack, and the full tool contract live in docs/. Contributions are welcome — see CONTRIBUTING.md.
Links
- Yuque API docs
- Model Context Protocol
- Yuque AI Ecosystem — skills and plugins built on top of this server
License
Source: README.md at commit 757a408
Tools
0Version history
1- v0.1.4LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts