Get the FREE Ultimate OpenClaw Setup Guide →

Yuque

Yuque mcp server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio henryhaoson-yuque-mcp-server node dist/index.js \
  --env PORT="3000" \
  --env YUQUE_API_TOKEN="your_yuque_api_token_here" \
  --env YUQUE_API_BASE_URL="https://www.yuque.com/api/v2"

How to use

This MCP server provides a set of tools to interact with the Yuque knowledge base platform via the Model-Context-Protocol (MCP). It exposes utilities for user and document management, as well as team statistics analysis. Models connected to this server can fetch the current user, list and retrieve documents, create or modify documents in a specified repository, search content across Yuque, and obtain statistics about groups, members, repositories, and documents. The tools are designed to be called by the MCP client in a standardized way, enabling AI agents to perform tasks like drafting a new document, updating existing content, or analyzing knowledge bases without direct Yuque API handling in the agent code.

How to install

Prerequisites:

  • Node.js 18+ (recommended)
  • Access token for Yuque API
  1. Install Node dependencies locally
npm install
  1. Create a configuration file or environment variables
  • Copy the example environment file and populate tokens and base URL:
cp .env.example .env

Edit .env to include:

YUQUE_API_TOKEN=your_yuque_api_token_here
YUQUE_API_BASE_URL=https://www.yuque.com/api/v2
  1. Run in development mode
npm run dev

or run the MCP server directly (if built):

node dist/index.js
  1. (Optional) Build for production
npm run build
  1. Alternatively, deploy with Docker (if preferred):
docker build -t yuque-mcp-server .
docker run -d -p 3000:3000 --name yuque-mcp-server yuque-mcp-server

Additional notes

Notes:

  • The server supports environment-variable configuration (PORT, YUQUE_API_TOKEN, YUQUE_API_BASE_URL). When using SSE endpoints, you can override these values via query parameters per-connection (e.g., ?accessToken=...&baseUrl=...).
  • Ensure your Yuque API token has appropriate permissions for the operations you intend to perform (read/write, etc.).
  • If you deploy behind a reverse proxy or in Docker, open port 3000 (or your chosen port) and ensure the base URL matches your deployment.
  • The MCP tools cover user/docs management, doc creation/update/deletion, search, and group statistics (get_group_statistics, get_group_member_statistics, get_group_book_statistics, get_group_doc_statistics).
  • When adding new tools or modifying existing ones, edit the server's tool registration (src/server.ts) to reflect changes.

Related MCP Servers

Sponsor this space

Reach thousands of developers