PluginBench
MCP Server
Maintained
MIT

io.github.yuque/yuque-mcp MCP Server

io.github.yuque/yuque-mcp

Connect your Yuque knowledge base to AI assistants for reading and writing through MCP.

What is the io.github.yuque/yuque-mcp MCP server?

The Yuque MCP Server exposes your Yuque (语雀) knowledge base to AI assistants like Claude and Cursor via the Model Context Protocol. It provides 19 tools for searching, reading, and writing docs, books, notes, and boards in your Yuque workspace.

This server bridges Yuque, a popular Chinese knowledge management platform, with AI assistants. You can ask your AI to search your knowledge base, summarize content, create or update documents, and manage books and notes—all through natural language. It supports both personal tokens and team tokens bound to specific spaces.

How to install io.github.yuque/yuque-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • YUQUE_PERSONAL_TOKEN
    secret

    Yuque personal API token (get from https://www.yuque.com/settings/tokens). Use one of: YUQUE_PERSONAL_TOKEN, YUQUE_GROUP_TOKEN, or YUQUE_TOKEN.

  • YUQUE_GROUP_TOKEN
    secret

    Yuque group/team API token (alternative to YUQUE_PERSONAL_TOKEN for team workspaces).

  • YUQUE_TOKEN
    secret

    Yuque API token (legacy, use YUQUE_PERSONAL_TOKEN or YUQUE_GROUP_TOKEN instead).

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "yuque-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yuque-mcp"
      ],
      "env": {
        "YUQUE_PERSONAL_TOKEN": "<YOUR_YUQUE_PERSONAL_TOKEN>",
        "YUQUE_GROUP_TOKEN": "<YOUR_YUQUE_GROUP_TOKEN>",
        "YUQUE_TOKEN": "<YOUR_YUQUE_TOKEN>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • yuque_get_user — Get the authenticated user for the current token
  • yuque_search — Search docs or repos, with paging
  • yuque_list_books — List books (知识库) of a user
  • yuque_get_book — Get a book by ID or namespace
  • yuque_create_book — Create a book
  • yuque_update_book — Update name, slug, description, or visibility
  • yuque_list_docs — List docs in a book, with paging
  • yuque_get_doc — Get full content — markdown, lake, or html
  • yuque_create_doc — Create a doc in a book
  • yuque_update_doc — Update a doc's body or metadata
  • yuque_get_toc — Get a book's table of contents
  • yuque_update_toc — Append or move a single TOC node
  • yuque_list_notes — List notes (小记), with paging and status filter
  • yuque_get_note — Get a note with full content
  • yuque_create_note — Create a note
  • yuque_update_note — Update a note
  • yuque_get_resource — Read a board (mindmap / flowchart / diagram) from a doc
  • yuque_create_resource — Create a board in a doc
  • yuque_update_resource — Update a board in a doc

Use cases

  • Search your Yuque knowledge base and summarize findings for quick reference
  • Convert meeting notes into formatted documents in your Yuque books
  • Create and update technical documentation programmatically through natural language
  • Add diagrams, flowcharts, and mindmaps to existing documents
  • Manage multiple books and organize content structure with AI assistance

io.github.yuque/yuque-mcp MCP server FAQ

What is the Yuque MCP Server?

It's an MCP server that connects your Yuque knowledge base to AI assistants like Claude and Cursor, allowing them to read and write documents, books, notes, and boards through 19 API tools.

Is it free to use?

Yes, the server itself is free and open-source (MIT license). You only need a Yuque account and an API token, which you can create at Yuque's Developer Settings.

How do I install it in Cursor or Claude?

Run `npx yuque-mcp install --token=YOUR_TOKEN --client=cursor` (or `claude-desktop`). The command automatically finds your config file and adds the server. Restart your client afterward.

What authentication is required?

You need a Yuque API token (personal or team). Create one at https://www.yuque.com/settings/tokens. For team tokens bound to a specific space, also provide the space host URL.

Can I use this with a private Yuque deployment?

Yes. Pass the `--host` flag with your private deployment URL, e.g., `--host=https://your-space.yuque.com`.

What can't this server do yet?

It does not support comments, file uploads, permission management, or structured resources beyond boards (mindmaps, flowcharts, diagrams).

README (reference)

Source of truth, from the repository.

<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:

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:

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.

{
  "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.

# 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

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

Related MCP servers

Access your WHOOP recovery, sleep, strain and workouts data directly in Claude, ChatGPT, or other AI apps.

14
TypeScript
MIT
View repository →

MCP server for Drone CI/CD: 45 tools for builds, repos, secrets, users and templates

1
Go
View repository →

Connect AI agents to ITASCA numerical modeling software—PFC, FLAC, 3DEC, MPoint, MassFlow—for docs, simulations, and code execution.

156
Python
MIT
View repository →
YAYADE MCP Server logo

YADE MCP Server

Maintained

MCP server for YADE discrete element method engine — run simulations, browse API docs, and execute code through natural conversation.

13
Python
MIT
View repository →

Measured web UI findings for AI agents — contrast ratios, touch targets, and accessibility checks as text, not guesses from screenshots.

128
JavaScript
MIT
View repository →

Run AI-generated code safely. gVisor-isolated Python/JS sandboxes for any MCP client. Pay per run.

0
JavaScript
View repository →