yuque-desktop-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YUQUE_COOKIE | No | Directly pass the Yuque Cookie. Highest priority and works cross-platform as a fallback. | |
| YUQUE_BASE_URL | No | Base URL for Yuque. Change this for private deployments. | https://www.yuque.com |
| YUQUE_TIMEOUT_MS | No | Timeout for a single request in milliseconds. | 20000 |
| YUQUE_ALLOW_WRITE | No | Set to '1' to enable document creation and updates. Write access is disabled by default. Can also be enabled by appending '--allow-write' to args. | closed |
| YUQUE_COOKIE_FILE | No | Read the Yuque Cookie from a file. | |
| YUQUE_MAX_DOC_CHARS | No | Maximum number of characters returned for a single document. | 200000 |
| YUQUE_USER_DATA_DIR | No | Yuque desktop profile directory containing 'Local State'. Auto-detected by default. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
通过语雀桌面端已登录的会话访问语雀(无需 API Token / 会员)。先用 yuque_list_books 找到 book_id,再用 yuque_list_docs / yuque_get_doc 阅读内容。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| yuque_whoamiA | 查看当前登录的语雀账号、会员状态、知识库数量,并验证登录态是否有效。 |
| yuque_list_booksA | 列出当前账号可见的全部知识库(含 id、名称、文档数、slug)。返回的 id 就是其他工具需要的 book_id。 |
| yuque_list_docsB | 列出某个知识库(book_id)里的文档,返回文档 id、标题、slug、链接和更新时间。 |
| yuque_get_docB | 读取一篇语雀文档的 Markdown 正文与元信息。doc 可以是文档 slug 或文档 id;也可以直接传语雀文档链接。 |
| yuque_get_tocA | 读取知识库的目录树(标题层级、文档 id、slug),便于按结构浏览。 |
| yuque_searchB | 全文搜索文档或知识库(复用语雀站内搜索索引)。 |
| yuque_list_recentB | 列出当前账号最近更新(或最近阅读)的文档。 |
| yuque_create_docA | 在指定知识库中新建一篇 Markdown 文档。默认禁用,需 YUQUE_ALLOW_WRITE=1。 |
| yuque_update_docA | 更新已有文档的标题或 Markdown 正文。默认禁用,需 YUQUE_ALLOW_WRITE=1。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: identity check, book enumeration, doc enumeration, single-doc read, TOC structure, full-text search, recency listing, and two write operations. The only mild overlap is between yuque_get_doc (reads one doc) and yuque_get_toc (reads a book's structure), plus yuque_list_recent vs yuque_search, but the descriptions make the boundaries clear.
All nine tools follow a strictly consistent yuque_verb_noun pattern in snake_case (whoami is the sole noun-only name but reads naturally as an identity verb). Verb choices (list/get/search/create/update) are predictable and reused coherently across resources.
Nine tools is well-scoped for a Yuque read-first client: enough to cover discovery, navigation, retrieval, and editing without redundancy. Every tool earns its place and no trivial or filler tool exists.
Read coverage is strong (books, docs, TOC, search, recent, whoami) and write coverage includes create and update. However there is no delete_doc, no document move/rename, and no book or group management, leaving the lifecycle incomplete for anything beyond authoring and editing.