npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

yuque-mcp-server

v1.2.0

Published

Yuque MCP Server - 语雀MCP服务器,提供与语雀API集成的工具

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