Yuque

Memory and knowledge

MCP server for Yuque, expose your knowledge base to AI assistants.

Your AI app calls the Yuque MCP server, which does the memory and knowledge work and sends the result back to the chat.

About Yuque

Yuque is a community MCP server from yuque, filed in our directory under memory and knowledge. MCP server for Yuque, expose your knowledge base to AI assistants.

Yuque runs on your own machine: your AI app starts it with the command npx -y yuque-mcp@0.1.4 and talks to it over standard input and output.

Yuque is listed in the official MCP registry as io.github.yuque/yuque-mcp, version 0.1.4.

At a glance

Publisher
yuque (community)
Runs
Locally on your machine
Install from
Node.js package on npm: yuque-mcp
Written in
TypeScript
License
MIT
GitHub stars
273
Official MCP registry
io.github.yuque/yuque-mcp

How to set up Yuque

  1. Install Node.js on the machine that runs your AI app, because Yuque starts with npx and downloads its package on first run.
  2. Check the Yuque README for keys or settings; the registry lists none that Yuque requires.
  3. Add Yuque to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Yuque tools to confirm the connection.
  5. Run one read-only task with Yuque first, and keep your app asking before each tool call until the results look right.

Yuque compared with similar servers

  • Mneme by slow-stack has fewer GitHub stars than Yuque (267 against 273); both are community servers, and both run locally.
  • LORE by Jatin-Roopchandani has more GitHub stars than Yuque (278 against 273); both are community servers, and LORE runs as a remote server and Yuque runs on your own machine.
  • ClickHouse Loom by ClickHouse has fewer GitHub stars than Yuque (264 against 273); ClickHouse Loom is official while Yuque is a community server, and both run locally.

Before you connect Yuque

  • Give Yuque its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Yuque tool call until you trust what it does with them.
  • Treat text that Yuque fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Yuque on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Yuque

How marketing and sales teams put Yuque to work, by company size. Pick the size closest to yours and start Yuque on one use case.

Small business

  • A small business can give Yuque its offers, FAQs and tone of voice once, so every draft starts from the same facts.
  • Founders can use Yuque to keep notes from calls and decisions, then ask what was agreed with a customer weeks later.
  • Yuque runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Yuque to positioning docs and past campaigns, so agents write on message without a long prompt each time.
  • Sales and marketing can share one knowledge base through Yuque, so answers about pricing and features match across teams.
  • Start Yuque on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Yuque with permissions that follow the source documents, so an agent only recalls what the person asking may see.
  • Large orgs can make Yuque the approved memory layer for agents, with retention rules and a way to delete what shouldn't be kept.
  • Yuque is a community server, so have security review the code and pin a version before Yuque touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Yuque README

From yuque/yuque-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Yuque MCP Server

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

Quick Start · Tools · Troubleshooting · Docs (github.com/yuque/yuque-mcp-server/blob/main/docs/README.md) · 中文文档

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.

Claude Code

Register the server directly:

claude mcp add yuque -- npx -y yuque-mcp --token=YOUR_TOKEN
Other MCP clients (generic config)

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" }
    }
  }
}

3. Restart your client and start asking.

Configuration

Setting Env var / CLI flag Description
Token (required) YUQUE_TOKEN / --token Personal or team Yuque API token
Host (optional) YUQUE_HOST / --host Site 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
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 (21)

Each tool maps to exactly one Yuque API route.

Category Tool Description
User yuque_get_user Get the authenticated user for the current token
Search yuque_search Search docs or repos, with paging
Books 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
Docs 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_list_doc_versions List published versions of a doc
yuque_get_doc_version Read a version's markdown body and diff
TOC yuque_get_toc Get a book's table of contents
yuque_update_toc Append or move a single TOC node
Notes 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
Boards 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

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

Error Solution
YUQUE_TOKEN ... is required Set YUQUE_TOKEN=YOUR_TOKEN or pass --token=YOUR_TOKEN
401 Unauthorized Token invalid or expired, regenerate it
429 Rate Limited Too many requests, wait a moment and retry
410 Gone Target permanently deleted or endpoint deprecated, check the doc/book exists
Tool not found Update to the latest version: npx -y yuque-mcp@latest
npx command not found Install 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

Questions about Yuque

What is the Yuque MCP server?

MCP server for Yuque, expose your knowledge base to AI assistants. Yuque is maintained by yuque on GitHub at yuque/yuque-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Yuque MCP server?

Add Yuque to your AI app's MCP config with the command npx -y yuque-mcp@0.1.4. In Claude Code, run claude mcp add --transport stdio yuque -- npx -y yuque-mcp@0.1.4. To run Yuque this way you need Node.js installed.

Does Yuque need an API key?

The registry lists no required keys for Yuque. Check the Yuque README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Yuque an official MCP server?

No. Yuque is a community server maintained by yuque. Community servers can be excellent; read the code and the open issues before you give Yuque access to company data.

What license is Yuque under?

Yuque is released under the MIT license, according to its GitHub repository. The license covers the code of Yuque; the service it connects to has its own terms.