Yuque MCP Server

Yuque MCP Server

Enables 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.

Category
Visit Server

README

Yuque MCP Server

🎉 语雀MCP服务器

A Model Context Protocol (MCP) server that provides seamless integration with Yuque (语雀), a popular Chinese documentation platform. Enables AI assistants to manage Yuque content through a standardized MCP interface.

✨ Features

📚 Knowledge Base Management

  • List and create knowledge repositories
  • Manage repository settings and visibility

📄 Document Operations

  • Create, read, update, delete documents
  • Support for Markdown, Lake, and HTML formats
  • Advanced document search functionality

🔍 Search & Discovery

  • Global and repository-specific search
  • Intelligent query handling

📦 Installation

Global Installation (Recommended)

npm install -g yuque-mcp-server

Local Installation

npm install yuque-mcp-server

From Source

git clone https://github.com/tanis2010/yuque-mcp-server.git
cd yuque-mcp-server
npm install
npm run build
npm link

🔧 Configuration

1. Get Your Yuque API Token

  1. 登录语雀 (Log in to Yuque)
  2. 进入:账户设置 → 开发者设置 → API Token (Go to: Account Settings → Developer Settings → API Token)
  3. 创建新的Token并复制 (Create new Token and copy it)

2. Set Environment Variable

export YUQUE_TOKEN="your_yuque_api_token_here"

🤖 Claude Code Integration

This MCP server is specifically designed to work with Claude Code. Here's the simplest way to set it up:

🚀 Quick Setup (Recommended)

Use the Claude Code CLI to automatically configure the MCP server:

# Install the package globally first
npm install -g yuque-mcp-server

# Add to Claude Code with automatic configuration
claude mcp add -s local yuque yuque-mcp-server --env YUQUE_TOKEN=your_yuque_api_token_here

That's it! The claude mcp add command will:

  • Automatically configure the MCP server in your Claude Code settings
  • Handle the environment variable securely
  • Set up the proper command structure

Manual Configuration (Alternative)

If you prefer manual configuration, you can edit ~/.claude/settings.json directly:

{
  "mcpServers": {
    "yuque": {
      "command": "yuque-mcp-server",
      "env": {
        "YUQUE_TOKEN": "your_yuque_api_token_here"
      }
    }
  }
}

Local Development Setup

For development from source:

{
  "mcpServers": {
    "yuque": {
      "command": "node",
      "args": ["path/to/yuque-mcp-server/dist/server.js"],
      "env": {
        "YUQUE_TOKEN": "your_yuque_api_token_here"
      }
    }
  }
}

Verify Installation

After setup, restart Claude Code and you should see these Yuque tools available:

  • yuque_get_user - Get current user information
  • yuque_get_repos - List knowledge repositories
  • yuque_get_docs - List documents in a repository
  • yuque_get_doc - Get document details
  • yuque_create_doc - Create new document
  • yuque_update_doc - Update existing document
  • yuque_delete_doc - Delete document
  • yuque_search_docs - Search documents

API工具

该MCP服务器提供以下工具:

yuque_get_user

获取当前用户信息

yuque_get_repos

获取知识库列表

  • userId (可选): 用户ID

yuque_get_docs

获取文档列表

  • repoId (必需): 知识库ID
  • limit (可选): 返回数量限制
  • offset (可选): 偏移量

yuque_get_doc

获取文档详情

  • docId (必需): 文档ID

yuque_create_doc

创建新文档

  • repoId (必需): 知识库ID
  • title (必需): 文档标题
  • content (必需): 文档内容
  • format (可选): 文档格式 (markdown/lake/html)

yuque_update_doc

更新文档

  • docId (必需): 文档ID
  • title (可选): 文档标题
  • content (可选): 文档内容
  • format (可选): 文档格式

yuque_delete_doc

删除文档

  • docId (必需): 文档ID

yuque_search_docs

搜索文档

  • query (必需): 搜索关键词
  • repoId (可选): 知识库ID

开发

# 开发模式
npm run dev

# 构建
npm run build

许可证

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured