# Yuque MCP Server

> Read and write Yuque knowledge bases through MCP.

- **URL**: https://followmcp.com/en/servers/yuque-mcp-server
- **Category**: Collaboration
- **Origin**: Official
- **Stars**: 273
- **FMRS Score**: 52/100 (Grade D)
- **Source**: https://github.com/yuque/yuque-mcp-server
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+
- **Auth**: API key / credential required

## Overview
Yuque MCP Server exposes the Yuque API to AI assistants over stdio. It can search docs and repos and manage books, docs, TOCs, notes, and boards in docs.

## Best for
- Individuals or teams who want AI assistants to access Yuque knowledge base content.
- Users who need to manage docs, notes, books, or boards through the Yuque API.

## Not for
- Users who need comment management, attachment uploads and file management, or permission and member management.
- Users who need section-level doc edits or structured resources other than boards.

## Required permissions
- A Yuque API token is required; its permissions determine what the server can do.
- Create and update tools modify real knowledge base content.
- A matching YUQUE_HOST is needed when using a team token bound to a specific space.

## Risks
- The server can perform actions allowed by the token, and write tools change real content; keep the token secret.
- A doc body update cannot also change title, slug, or public metadata in the same call; update metadata separately.

## Client config (JSON)
```json
{"mcpServers":{"yuque":{"command":"npx","args":["-y","yuque-mcp"],"env":{"YUQUE_TOKEN":"YOUR_TOKEN"}}}}
```

## Tools (21)
- `yuque_get_user`: Get the authenticated user for the current token.
- `yuque_search`: Search docs or repos with paging.
- `yuque_list_books`: List a user's books.
- `yuque_get_book`: Get a book by ID or namespace.
- `yuque_create_book`: Create a book.
- `yuque_update_book`: Update a book's name, slug, description, or visibility.
- `yuque_list_docs`: List docs in a book with paging.
- `yuque_get_doc`: Get full doc content in markdown, lake, or html format.
- `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.
- `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 an optional status filter.
- `yuque_get_note`: Get a note with its full content.
- `yuque_create_note`: Create a note.
- `yuque_update_note`: Update a note.
- `yuque_get_resource`: Read a board (mindmap, flowchart, or diagram) from a doc.
- `yuque_create_resource`: Create a board in a doc.
- `yuque_update_resource`: Update a board in a doc.
