Click on "Install 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 Serversearch for documentation about the frontend development workflow"
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 Server
语雀(Yuque)文档 Model Context Protocol (MCP) 服务器,提供文档搜索和内容获取功能。
功能
search: 搜索语雀文档
get_doc: 获取文档详细内容
安装
配置
创建 .env 文件或设置环境变量:
获取 Auth Token
登录 语雀
进入 设置 > Token > 新建 Token
复制生成的 Token
构建
MCP 配置
在 Claude Desktop 配置文件中添加:
macOS
~/Library/Application Support/Claude/claude_desktop_config.json
Windows
%APPDATA%\Claude\claude_desktop_config.json
配置内容:
工具说明
search
搜索语雀文档。
参数:
参数 | 类型 | 必填 | 说明 |
q | string | 是 | 搜索关键词 |
type | string | 是 | 搜索类型: |
page | number | 否 | 页码,默认 1 |
scope | string | 否 | 搜索范围 |
creator | string | 否 | 按作者 login 筛选 |
示例:
get_doc
获取指定文档的详细内容。
参数:
参数 | 类型 | 必填 | 说明 |
book_id | number | 是 | 知识库 ID |
doc_id | number | 是 | 文档 ID |
示例:
项目结构
开发
使用示例
搜索文档
获取文档内容
故障排查
环境变量未设置
如果看到 Missing required environment variable: YUQUE_AUTH_TOKEN,请确保:
已创建
.env文件或在 Claude Desktop 配置中设置了
env字段
API 认证失败
检查:
Token 是否正确
Token 是否有足够权限
网络连接是否正常
许可证
MIT