An MCP server for interacting with the YuQue knowledge base, enabling AI assistants to perform operations on documents and information.
基于 go-zero MCP 组件开发的语雀 Model Context Protocol 服务器,为 AI 助手提供语雀知识库操作能力。
export YUQUE_TOKEN="your_yuque_token_here"
go mod tidy
go run cmd/server/main.go -f config.yaml
服务器将在 http://localhost:8080
启动。
获取当前语雀用户信息。
获取指定文档内容。
book_id
: 知识库ID或路径doc_id
: 文档ID或slug创建新文档。
book_id
: 知识库ID或路径title
: 文档标题body
: 文档内容(可选)format
: 文档格式,默认markdownpublic
: 公开设置,默认0(私密)更新文档内容。
book_id
: 知识库ID或路径doc_id
: 文档ID或slugtitle
: 新标题(可选)body
: 新内容(可选)format
: 文档格式(可选)public
: 公开设置(可选)搜索文档。
query
: 搜索关键词配置文件 config.yaml
:
name: yuque-mcp-server
host: localhost
port: 8080
mcp:
name: yuque-mcp-server
messageTimeout: 30s
cors:
- http://localhost:3000
yuque:
baseUrl: "https://www.yuque.com/api/v2"
# token 通过环境变量 YUQUE_TOKEN 设置
在 Cursor IDE 中使用此 MCP 服务器,需要在设置中添加以下配置:
{
"mcpServers": {
"yuque": {
"command": "go",
"args": ["run", "cmd/server/main.go", "-f", "config.yaml"],
"cwd": "/path/to/YuQueMCP",
"env": {
"YUQUE_TOKEN": "your_yuque_token_here"
}
}
}
}
配置步骤:
cwd
路径修改为项目实际路径YUQUE_TOKEN
替换为你的语雀 API Token├── cmd/server/ # 服务器启动入口
├── internal/
│ ├── config/ # 配置相关
│ ├── server/ # MCP服务器逻辑
│ │ └── tools/ # 工具实现
│ └── yuque/ # 语雀API客户端
├── config.yaml # 配置文件
└── go.mod # Go模块文件
A simple tool to pause execution for a specified number of seconds.
MCP server for seamless document format conversion using Pandoc, supporting Markdown, HTML, and plain text, with other formats like PDF, csv and docx in development.
Manage your Todoist tasks and projects using the Todoist Python API.
An MCP server that provides system information, such as CPU and memory usage.
Access the YouTrack REST API to manage projects and track issues in real-time.
An MCP server that uses Google's Gemini 1.5 Pro to generate concise summaries of various content types.
Programmatic control over Windows system operations including mouse, keyboard, window management, and screen capture using nut.js.
Create notes in Flomo through AI chat interactions in Cursor or Claude desktop.
Converts Markdown to styled PDFs using VS Code's markdown styling and Python's ReportLab.
Integrates with Linear project management systems.