
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

此 MCP 服务器暴露了工具,供 AI 模型通过语雀开放 API 与语雀知识库平台交互,以获取用户信息、读取和写入文档、搜索内容,并获取知识库和团队统计数据。
用于与语雀 API 集成的 MCP 服务器 is cataloged as an MCP server attributed to henryhaoson. 此 MCP 服务器暴露了工具,供 AI 模型通过语雀开放 API 与语雀知识库平台交互,以获取用户信息、读取和写入文档、搜索内容,并获取知识库和团队统计数据。 It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for 用于与语雀 API 集成的 MCP 服务器 are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
SSE 端点接受查询参数,这些参数会覆盖环境配置并对每个连接生效,因此每个 SSE 连接都可以使用不同的令牌或基础 URL,从而让同一个服务器实例为不同用户或环境提供服务。
创建或更新文档时,服务器支持 Markdown、HTML 和 Lake 格式。
README.md · 34b696d2bd84 · 采集于 2026-11-13 09:03:23 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
一个用于与语雀 API 集成的 Model-Context-Protocol (MCP) 服务器。此实现受 Figma-Context-MCP 的启发,并使用 语雀开放 API。
该服务器提供了与语雀知识库平台交互的 MCP 工具,允许 AI 模型:
要使用 Smithery 将 Yuque MCP Server 自动安装到 Claude 桌面端:
npx -y @smithery/cli install @HenryHaoson/Yuque-MCP-Server --client claude
克隆此仓库:
git clone https://github.com/Henryhaoson/Yueque-MCP-Server.git
cd Yueque-MCP-Server
安装依赖:
npm install
基于 .env.example 创建 .env 文件:
cp .env.example .env
(可选) 在 .env 文件中添加你的语雀 API 令牌:
YUQUE_API_TOKEN=your_yuque_api_token_here
你也可以选择在连接到服务器时通过查询参数提供令牌,而不是在 .env 文件中设置。
# HTTP 服务器模式
npm run dev
# CLI stdio 模式
npm run dev:cli
首先,构建项目:
npm run build
然后在 HTTP 或 CLI 模式下运行:
# HTTP 服务器模式
npm run start
# CLI stdio 模式
npm run start:cli
本项目提供了 Docker 支持,使您可以轻松地容器化和部署服务器。
构建并启动容器:
docker-compose up -d
查看日志:
docker-compose logs -f
停止服务:
docker-compose down
您可以通过环境变量或在 .env 文件中设置配置项:
# .env 文件示例
PORT=3000
YUQUE_API_TOKEN=your_token_here
YUQUE_API_BASE_URL=https://www.yuque.com/api/v2
构建 Docker 镜像:
docker build -t yuque-mcp-server .
运行容器:
docker run -d -p 3000:3000 --name yuque-mcp-server yuque-mcp-server
使用环境变量:
docker run -d -p 3000:3000 \
-e YUQUE_API_TOKEN=your_token_here \
-e YUQUE_API_BASE_URL=https://www.yuque.com/api/v2 \
--name yuque-mcp-server yuque-mcp-server
语雀 MCP 服务器提供以下工具:
get_current_user - 获取当前认证用户的信息,包括用户ID、用户名、头像等语雀账号基本信息get_user_docs - 获取当前用户的所有知识库文档列表,包括私人和协作文档get_user_repos - 获取指定用户的知识库列表,知识库是语雀中组织文档的集合get_repo_docs - 获取特定知识库中的所有文档列表,包括文档标题、更新时间等信息get_doc - 获取语雀中特定文档的详细内容,包括正文、修改历史和权限信息create_doc - 在指定知识库中创建新的语雀文档,支持多种格式内容(Markdown、HTML、Lake)update_doc - 更新语雀中已存在的文档,可以修改标题、内容或权限设置delete_doc - 从语雀知识库中删除指定文档,此操作不可撤销search - 在语雀平台中搜索文档或知识库内容,支持范围和作者筛选get_group_statistics - 获取团队的汇总统计数据,包括成员人数、文档数量、阅读量和互动数据等get_group_member_statistics - 获取团队成员的统计数据,包括各成员的编辑次数、阅读量、点赞量等get_group_book_statistics - 获取团队知识库的统计数据,包括各知识库的文档数、字数、阅读量等get_group_doc_statistics - 获取团队文档的统计数据,包括各文档的字数、阅读量、评论量等此 MCP 服务器可以与支持 Model-Context-Protocol 的 AI 模型一起使用,允许它们通过定义的工具与语雀交互。例如:
当连接到 SSE 端点时,你可以通过查询参数(query parameters)覆盖环境配置,这些参数的优先级高于环境变量:
accessToken: 覆盖在 .env 文件中设置的语雀 API 令牌baseUrl: 覆盖在 .env 文件中设置的语雀 API 基础 URL示例:
http://localhost:3000/sse?accessToken=your_token_here&baseUrl=https://custom.yuque.api/v2
这允许你在不修改 .env 文件的情况下动态配置服务,并且查询参数的优先级高于环境变量。这对于多用户环境或测试不同 API 端点特别有用。
每个 SSE 连接都可以使用不同的配置,这使得同一个服务器实例可以同时为不同的用户或环境提供服务。
src/
├── config.ts # 服务器配置
├── index.ts # 主入口点
├── cli.ts # CLI 入口点
├── server.ts # MCP 服务器实现
└── services/
└── yuque.ts # 语雀 API 服务
要添加新工具,请修改 src/server.ts 中的 registerTools 方法。
最近的更新增加了以下功能:
团队统计数据:添加了获取团队、成员、知识库和文档统计数据的功能,便于分析和监控团队知识库的使用情况。
文档管理增强:
数据类型完善:更新了接口定义,使其与语雀 OpenAPI 规范保持一致。
MIT License
Copyright (c) 2025 Henryhaoson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for 用于与语雀 API 集成的 MCP 服务器 from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/yuque-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.