yuque-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yuque-mcp search my team's docs for 'Q4 roadmap'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
yuque-mcp
中文说明: README.zh-CN.md
This folder is prepared for building a custom MCP server for Yuque.
Goal
Build a Yuque MCP server so Codex can:
discover Yuque repos and docs
read doc content in markdown/raw mode
create/update/delete docs when needed
create docs from local files and update docs from local files
create/update/delete repos (knowledge bases)
create/update/delete groups
manage group members (
list/add/remove)run combined operations (
get_my_repositories,get_repository_overview,search_and_read,create_document_with_toc)update repository TOC nodes
use Yuque content as a research knowledge base
Related MCP server: Yuque MCP Server
Included Docs
docs/00-project-brief.mddocs/01-scope-v1.mddocs/02-architecture.mddocs/03-tool-contract.mddocs/04-api-mapping.mddocs/05-security.mddocs/06-implementation-plan.mddocs/07-test-plan.mddocs/08-codex-integration.mddocs/09-release-notes-zh.mddocs/10-registry-publish.mddocs/11-weekly-maintenance.mddocs/12-complaint-and-takedown.mdCHANGELOG.mdCONTRIBUTING.mdSECURITY.mdDISCLAIMER.mdtasks/TODO.md
Session Kickoff
In your new Codex session, start with:
Read
docs/01-scope-v1.mdanddocs/03-tool-contract.md.Scaffold Node + TypeScript MCP server.
Implement read-only tools.
Add write tools for group/repo/doc CRUD + TOC update.
Run tests and add Codex MCP config.
Quick Start (Local)
npm install
npm run buildRequired env:
YUQUE_TOKENYUQUE_ENDPOINT(optional, defaulthttps://www.yuque.com/api/v2/)YUQUE_TIMEOUT_MS(optional, default10000)YUQUE_MAX_RETRIES(optional, default2, read-only retries only)YUQUE_ALLOW_WRITE(optional, defaultfalse)YUQUE_WRITE_NAMESPACE_ALLOWLIST(optional, comma-separated namespace allowlist for repo/doc/toc writes)YUQUE_WRITE_GROUP_ALLOWLIST(optional, comma-separated group login allowlist for group writes)YUQUE_ALLOW_DELETE(optional, defaultfalse)YUQUE_DELETE_NAMESPACE_ALLOWLIST(optional, comma-separated delete allowlist targets; namespace for repo/doc, login for group)YUQUE_FILE_ROOT(optional, default current working directory, used by file-based doc tools)YUQUE_FILE_MAX_BYTES(optional, default1048576)YUQUE_FILE_ALLOWED_EXTENSIONS(optional, default.md,.markdown,.txt)
Write safety:
All write tools are blocked by default.
Set
YUQUE_ALLOW_WRITE=trueto enable writes.Optional write allowlists:
YUQUE_WRITE_NAMESPACE_ALLOWLIST=team/sandbox,team/testYUQUE_WRITE_GROUP_ALLOWLIST=sandbox-team
Delete safety:
yuque_delete_doc,yuque_delete_repo, andyuque_delete_groupare blocked by default.To enable delete for test repos only, set:
YUQUE_ALLOW_WRITE=trueYUQUE_ALLOW_DELETE=trueYUQUE_DELETE_NAMESPACE_ALLOWLIST=your/test-namespace,your-test-group-login
Delete tools also require
confirm: trueand exactconfirm_text:doc:
DELETE DOC <namespace>/<docRef>repo:
DELETE REPO <namespace>group:
DELETE GROUP <login>
Latest highlights:
yuque_get_doc/yuque_update_doc/yuque_delete_docsupport eitherslugordoc_id.yuque_list_docssupports pagination (offset,limit).yuque_search_docsnow scans paginated docs across the full repository.Doc format supports
markdown,html,lake; visibility supports0 | 1 | 2.TOC update supports extra fields (
editNode,url,open_window,visible).Group member tools:
yuque_list_group_users,yuque_add_group_user,yuque_remove_group_user.File-based tools are constrained by root directory, extension allowlist, and max size.
Run in dev:
npm run devRun compiled server:
npm run startRun local MCP smoke test (test namespace only):
YUQUE_SMOKE_NAMESPACE=your/test-namespace npm run smokeRun write smoke suite with cleanup (create/update/toc/delete on test namespace):
YUQUE_SMOKE_NAMESPACE=your/test-namespace \
YUQUE_SMOKE_ENABLE_WRITE=true \
YUQUE_ALLOW_WRITE=true \
YUQUE_ALLOW_DELETE=true \
YUQUE_DELETE_NAMESPACE_ALLOWLIST=your/test-namespace \
npm run smokeSuggested Stack
Node.js 20+
TypeScript
@modelcontextprotocol/sdkNative
fetchor lightweight HTTP clientzodfor input validation
Open Source Governance
Contribution guide:
CONTRIBUTING.mdSecurity policy:
SECURITY.mdWeekly maintenance checklist:
docs/11-weekly-maintenance.mdComplaint and takedown policy:
docs/12-complaint-and-takedown.mdDisclaimer:
DISCLAIMER.md
Available Tools
28 toolsyuque_add_group_userC
Add or update a user membership in a Yuque group.
Inputs: user (required), group (required), role.
yuque_create_docC
Create a new Yuque doc.
Inputs: body (required), title (required), namespace (required), slug, +2 more.
yuque_create_doc_from_fileC
Create document from local file content and attach to TOC.
Inputs: file_path (required), namespace (required), slug, title, +3 more.
yuque_create_document_with_tocC
Create a document and attach it to TOC in one call.
Inputs: body (required), title (required), namespace (required), slug, +3 more.
yuque_create_groupC
Create a new Yuque group.
Inputs: name (required), login (required), description.
yuque_create_repoB
Create a new Yuque repository under user or group.
Inputs: name (required), slug (required), type, user, +3 more.
yuque_delete_docA
Delete a Yuque doc by namespace and slug/doc_id (requires confirmation).
Inputs: confirm (required), namespace (required), confirm_text (required), slug, +1 more.
yuque_delete_groupC
Delete a Yuque group (requires confirmation).
Inputs: login (required), confirm (required), confirm_text (required).
yuque_delete_repoB
Delete a Yuque repository (requires confirmation).
Inputs: confirm (required), namespace (required), confirm_text (required).
yuque_get_current_userA
Get current Yuque user profile.
Inputs: no named parameters.
yuque_get_docA
Get a single doc by namespace and either slug or doc_id.
Inputs: namespace (required), raw, slug, doc_id.
yuque_get_groupC
Get a group by login or id.
Inputs: login (required).
yuque_get_my_repositoriesB
Get current user and repositories in one call.
Inputs: type, offset, include_membered.
yuque_get_repoC
Get a repo by namespace.
Inputs: namespace (required), type.
yuque_get_repository_overviewA
Get repository details and TOC in one call.
Inputs: namespace (required).
yuque_get_repo_tocC
Get repo TOC entries.
Inputs: namespace (required).
yuque_list_docsA
List docs under a repo namespace with pagination.
Inputs: namespace (required), limit, offset.
yuque_list_groupsA
List groups for current user or a provided login.
Inputs: login.
yuque_list_group_usersB
List users in a Yuque group.
Inputs: login (required).
yuque_list_reposC
List repos under a user or group.
Inputs: type, user, group, offset, +1 more.
yuque_remove_group_userB
Remove a user from a Yuque group.
Inputs: user (required), group (required).
yuque_search_and_readA
Search docs and optionally read the first hit in one call.
Inputs: query (required), namespace (required), limit, read_first.
yuque_search_docsB
Client-side search over listed docs by title, slug, and description.
Inputs: query (required), namespace (required), limit.
yuque_update_docC
Update an existing Yuque doc by slug or doc_id.
Inputs: namespace (required), body, slug, title, +4 more.
yuque_update_doc_from_fileC
Update document body from local file content.
Inputs: file_path (required), namespace (required), slug, title, +4 more.
yuque_update_groupC
Update an existing Yuque group.
Inputs: login (required), name, new_login, description.
yuque_update_repoC
Update an existing Yuque repository.
Inputs: namespace (required), name, slug, public, +1 more.
yuque_update_tocC
Update Yuque repository TOC nodes.
Inputs: action (required), namespace (required), url, title, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Several convenience wrappers overlap with core tools: yuque_get_repository_overview duplicates yuque_get_repo_toc, yuque_create_document_with_toc overlaps yuque_create_doc, and yuque_search_and_read overlaps yuque_search_docs. These pairs create ambiguity about which tool to select for a given task.
All tools follow a clear yuque_ verb_noun convention in snake_case. Minor deviations like add/remove vs create/delete for group users and composite suffixes (with_toc, from_file) are still readable and predictable.
With 28 tools, the server exceeds the typical comfortable range and includes several redundant composite wrappers that inflate the count. The core domain could be covered with fewer tools, though the breadth of resources (users, groups, repos, docs) partially justifies the number.
The tool set covers full lifecycle for groups, repos, and docs: create, read, update, delete, list, and search operations are all present, plus membership management. No obvious critical gaps hinder typical workflows, and file-based document updates add useful functionality.
Maintenance
Related MCP Connectors
Search and manage your team's knowledge from MCP clients.
Knowledge base MCP for AI agents on iknow.dev. Search, read, and maintain via OAuth.
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Authenticated MCP access to the AIKI open knowledge commons.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables interaction with Yuque (语雀) knowledge base platform through their API. Supports document management, search, and repository operations including creating, reading, updating, and deleting documents in multiple formats.93MIT
- AlicenseBqualityDmaintenanceEnables access to Yuque (语雀) documentation through cookie-based authentication, supporting document retrieval, search, TOC navigation, and content management from knowledge bases via URL or namespace.44MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Yuque (语雀) platform through MCP protocol, supporting knowledge base management, document operations, search, and team collaboration features.11MIT

Yuque MCP Serverofficial
AlicenseBqualityBmaintenanceMCP server for Yuque (语雀) that exposes your knowledge base to AI assistants through the Model Context Protocol.211,715 npm269MIT