ワンクリックで
yuque-mcp-server
MCP server for Yuque (语雀) knowledge base - search, create, and manage documents through AI assistants
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
MCP server for Yuque (语雀) knowledge base - search, create, and manage documents through AI assistants
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Policy-centered context budget layer that turns sprawling codebases into compact, high-signal context for AI coding agents using symbol graphs and precision tools
Control and automate Slay the Spire 2 gameplay through REST API or MCP server for AI agents
MCP server for browser automation using natural language through kogiQA, enabling AI agents to interact with web pages without selectors
Professional browser automation for Claude Code, Codex, and MCP clients powered by DrissionPage MCP Server
MCP server connecting AI assistants to Shopify Admin GraphQL API for products, orders, customers, inventory, and metafields management
Amazon product research, competitor analysis, category selection, keyword research, and review analysis using Sorftime MCP for cross-border e-commerce
| name | yuque-mcp-server |
| description | MCP server for Yuque (语雀) knowledge base - search, create, and manage documents through AI assistants |
| triggers | ["how do I connect to Yuque with MCP","search my Yuque knowledge base","create a document in Yuque","manage Yuque books and docs","set up Yuque MCP server","integrate Yuque with AI assistant","work with Yuque API through MCP","troubleshoot Yuque MCP connection"] |
Skill by ara.so — MCP Skills collection.
The Yuque MCP Server is a Model Context Protocol server that exposes the Yuque (语雀) knowledge base API to AI assistants. It allows you to search documents, create and update content, manage knowledge bases (books), and access resources through 19 different tools. Yuque is a collaborative documentation platform popular in China.
Key capabilities:
Use the built-in CLI to auto-configure your MCP client:
# Interactive setup wizard
npx yuque-mcp setup
# Direct install with token
npx yuque-mcp install --token=$YUQUE_TOKEN --client=cursor
# With custom host for team/private deployment
npx yuque-mcp install --token=$YUQUE_TOKEN --client=cursor --host=https://your-space.yuque.com
Supported clients: claude-desktop, vscode, cursor, windsurf, cline, trae, qoder, opencode
export YUQUE_TOKEN=your_token_here
claude mcp add yuque-mcp -- npx -y yuque-mcp
Add to config file (claude_desktop_config.json or mcp.json):
{
"mcpServers": {
"yuque": {
"command": "npx",
"args": ["-y", "yuque-mcp"],
"env": {
"YUQUE_TOKEN": "your_token_here"
}
}
}
}
Create .vscode/mcp.json in your workspace:
{
"servers": {
"yuque": {
"command": "npx",
"args": ["-y", "yuque-mcp"],
"env": {
"YUQUE_TOKEN": "your_token_here"
}
}
}
}
YUQUE_TOKEN environment variable| Variable | Description |
|---|---|
YUQUE_TOKEN | Your Yuque API token (required) |
YUQUE_HOST | Custom host for team tokens or private deployments |
Priority order:
YUQUE_TOKEN > YUQUE_PERSONAL_TOKEN > --tokenYUQUE_HOST > --host > YUQUE_BASE_URL > --base-url# Environment variables
export YUQUE_TOKEN=your_token_here
export YUQUE_HOST=https://your-space.yuque.com
# CLI arguments
npx yuque-mcp --token=$YUQUE_TOKEN --host=https://your-space.yuque.com
yuque_get_user - Get current user information
yuque_search - Search across all documents
q (query string), type (optional: "doc", "book", "user")yuque_list_books - List all knowledge bases
user (optional: username or ID), type (optional: "Book", "Design")yuque_get_book - Get book details
namespace (book identifier)yuque_create_book - Create new knowledge base
name, slug, description (optional), public (optional)yuque_update_book - Update book properties
namespace, name, slug, description, publicyuque_list_docs - List documents in a book
namespace (book identifier)yuque_get_doc - Get document content
namespace (book), slug (doc identifier)yuque_create_doc - Create new document
namespace, title, slug (optional), body (markdown/html), format (optional: "markdown", "lake", "html")yuque_update_doc - Update document
namespace, id, title, slug, body, formatyuque_get_resource - Get resource (attachment) details
namespace, idyuque_create_resource - Upload resource
namespace, file (base64 or URL)yuque_update_resource - Update resource metadata
namespace, id, title, descriptionyuque_get_toc - Get book TOC structure
namespaceyuque_update_toc - Update TOC structure
namespace, toc (JSON structure)yuque_list_notes - List personal notes
yuque_get_note - Get note content
idyuque_create_note - Create personal note
title, body, formatyuque_update_note - Update note
id, title, body, formatAsk your AI assistant:
Search my Yuque docs for "API documentation"
The assistant will use yuque_search with your query.
Create a new document in my "engineering-notes" book titled "Deploy Process" with markdown content explaining our deployment workflow
The assistant will:
yuque_list_booksyuque_create_docUpdate the "API Guide" document in my "docs" book to add a new section about authentication
The assistant will:
yuque_get_docyuque_update_docShow me all my Yuque books and their document counts
The assistant will use yuque_list_books and yuque_list_docs to gather information.
git clone https://github.com/yuque/yuque-mcp-server.git
cd yuque-mcp-server
npm install
# Run tests
npm test
# Build TypeScript
npm run build
# Development mode with hot reload
npm run dev
# Set token
export YUQUE_TOKEN=your_token_here
# Run with inspector
npx @modelcontextprotocol/inspector npx yuque-mcp
Error: YUQUE_TOKEN ... is required
# Solution: Set environment variable
export YUQUE_TOKEN=your_token_here
# Or pass as argument
npx yuque-mcp --token=$YUQUE_TOKEN
Error: 401 Unauthorized
Error: 429 Rate Limited
Error: 410 Gone
Problem: Server not responding
# Check if server is running
ps aux | grep yuque-mcp
# Restart your MCP client
# For Claude Desktop: Quit and reopen
# For Cursor: Reload window (Cmd/Ctrl+R)
# Test connection manually
npx yuque-mcp
Problem: Tool not found
# Update to latest version
npx -y yuque-mcp@latest
# Clear npx cache if needed
rm -rf ~/.npm/_npx
Problem: Server not loading in client
Check config file location:
~/Library/Application Support/Claude/claude_desktop_config.json~/.cursor/mcp.json~/.windsurf/mcp.jsonVerify JSON syntax:
# Use jq to validate
cat ~/.cursor/mcp.json | jq .
Error: npx command not found
# Install Node.js (v18 or later)
# macOS
brew install node
# Ubuntu/Debian
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
# Windows: Download from https://nodejs.org/
If you're building a custom MCP client or extending the server:
import { MCPClient } from '@modelcontextprotocol/sdk/client/index.js';
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
const transport = new StdioClientTransport({
command: 'npx',
args: ['-y', 'yuque-mcp'],
env: {
YUQUE_TOKEN: process.env.YUQUE_TOKEN
}
});
const client = new MCPClient({
name: 'my-yuque-client',
version: '1.0.0'
});
await client.connect(transport);
// Call a tool
const result = await client.callTool({
name: 'yuque_search',
arguments: {
q: 'API documentation'
}
});
console.log(result);
interface YuqueConfig {
token: string;
host?: string;
}
class YuqueHelper {
private config: YuqueConfig;
constructor(config: YuqueConfig) {
this.config = config;
}
async searchDocs(query: string, type?: string) {
// Use MCP client to call yuque_search
return await client.callTool({
name: 'yuque_search',
arguments: { q: query, type }
});
}
async createDoc(namespace: string, title: string, body: string, format = 'markdown') {
return await client.callTool({
name: 'yuque_create_doc',
arguments: { namespace, title, body, format }
});
}
}