Yuque AI MCP logo

Yuque AI MCP

by yehuoshun

Connects AI agents to Yuque for document, knowledge-base, search, TOC, and team-management operations over MCP.

Install Yuque AI MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "yehuoshun-yuque-ai-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "yuque-ai-mcp",
        "yuque-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 65 tools correctly ().

Overview

yehuoshun/yuque-ai-mcp MCP server exposes Yuque’s OpenAPI and web API operations through fine-grained MCP tools for documents, knowledge bases, search, statistics, notes, groups, and more. It supports stdio for local MCP clients and HTTP SSE for networked access, using a shared tool registry. OpenAPI tools authenticate with a Yuque API token, while web API tools additionally require a browser session cookie and CSRF token. Reach for it when an agent needs to read, create, organize, export, import, or manage Yuque content.

Use cases

  • Search Yuque documentation and retrieve matching content for an agent
  • Create, update, export, and import knowledge-base documents
  • Reorganize knowledge-base TOCs and copy content between repositories
  • Manage Yuque teams, members, notes, statistics, and recycle-bin items

Key features

  • Fine-grained tools across Yuque documents, repositories, search, TOCs, groups, and statistics
  • Stdio and HTTP SSE transports
  • RAG search with automatic document retrieval
  • Document version history and line-level diffing
  • Cookie-authenticated web API operations
  • Structured error handling with rate-limit retry

Tools65

What Yuque AI MCP lets your agent do. Expand a tool for its parameters.

Verified live~11.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 44d

What it can do

From the 65 tools this server returned when we ran it.

Can delete or modify data · 10Handles credentials · 20Makes network requests · 5Read-only tools · 55
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age156 days
Maintainers1

Observed 2026-11-23 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · yuque-ai-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed65Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Yuque AI MCP works

What yehuoshun/yuque-ai-mcp does

yеhuoshun/yuque-ai-mcp connects MCP-compatible AI clients to Yuque (语雀). Its tool groups cover document CRUD, knowledge-base management, table of contents, search, user and group administration, usage statistics, notes, recycle-bin operations, file uploads, boards, and book-stack organization.

Document workflows include fetching individual or batched documents, creating and editing content, reading version history, comparing versions, copying documents between knowledge bases, exporting Markdown, downloading embedded resources, and importing content from a URL or local file. Knowledge-base tools can list, create, update, delete, copy, and export repositories, while TOC tools support both individual and batch structural changes.

How it works

The server offers two transports. The standard entry point runs over stdio, and the HTTP entry point exposes an HTTP SSE service on port 3099 by default in the documented development command. Both transports use the same registered tools.

Authentication is split by API surface. Forty-five tools use Yuque’s OpenAPI with an X-Auth-Token-style API token. Web API operations use a browser session cookie and x-csrf-token; these include web document access, web search, recycle-bin actions, uploads, and book-stack management. Search includes general search, RAG-oriented retrieval that also obtains document content, and a cookie-authenticated web search with document data, result counts, and highlighted snippets.

Setup and configuration

From the repository’s server directory, install dependencies and build the project:

Terminal
npm install
npm run build

Create the configuration file from the included template, then set the Yuque token. The configuration supports the API base URL, an optional browser cookie, an optional CSRF token value, and a configurable TOC cache lifetime. The default TOC cache duration is 60 minutes; changing it trades fewer API calls for fresher directory data.

Run npm start for stdio mode. Use npm run dev:http to start the HTTP SSE development service with tsx hot reload.

Tools and capabilities

  • Read, create, update, delete, copy, import, and export Yuque documents.
  • Retrieve document versions, inspect version details, and calculate line-level differences.
  • List and manage knowledge bases, including cross-book copying and Markdown export that follows TOC structure.
  • Read and batch-update knowledge-base directories with operations such as node creation, movement, removal, and document insertion.
  • Search Yuque through general, RAG-enhanced, and cookie-authenticated web methods.
  • Manage team members and roles, retrieve user and group data, and query group, member, repository, and document statistics.
  • Work with notes, recycle-bin items, attachments, diagram boards, book stacks, and editor-center data.

Limitations and notes

Cookie-based capabilities require credentials beyond the API token and depend on Yuque web API access. Batch document and repository retrieval is limited to 20 items per request. Destructive book-stack deletion requires an explicit confirm='DELETE' value.

Errors use structured responses containing an HTTP status, message, and response summary. The server handles token or permission failures, rate limits with automatic retry, and the book_full condition by creating another repository and appending it to the relevant book list.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Yuque AI MCP

yehuoshun/yuque-ai-mcp is an MCP server that connects AI clients to Yuque through OpenAPI and web API tools. It supports document and repository CRUD, TOC management, general and RAG search, version comparison, imports, exports, group administration, statistics, notes, uploads, and other Yuque operations over stdio or HTTP SSE.

Install it from the repository’s `server` directory with `npm install`, then run `npm run build`. Copy `config/config.example.json` to `config/config.json`, add the Yuque API token, and start it with `npm start` for stdio or `npm run dev:http` for HTTP SSE.

OpenAPI tools require a Yuque API token, while web API tools require a browser session cookie and CSRF token. The token is configured in `config.json`; cookie-based features include web document operations, web search, recycle-bin actions, uploads, and book-stack management.

Yes, yehuoshun/yuque-ai-mcp supports HTTP SSE as well as stdio. The documented development command starts the HTTP service on port 3099, while `npm start` launches the stdio entry point.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewYuque AI MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/yehuoshun-yuque-ai-mcp?style=directory)](https://allmcps.com/mcp/yehuoshun-yuque-ai-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/yehuoshun-yuque-ai-mcp"><img src="https://allmcps.com/api/badge/yehuoshun-yuque-ai-mcp?style=directory" alt="Yuque AI MCP on AllMCPs" /></a>