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

@wwwwwujl/yuque-mcp

v1.1.0

Published

Production-grade Yuque MCP server with safe read/write tools.

Readme

yuque-mcp(中文说明)

English README: README.md

项目目标

构建一个生产可用的语雀 MCP 服务,让 Codex 可以:

  • 浏览用户、分组、知识库、文档
  • 读取文档内容(支持 raw)
  • 执行文档/知识库/分组的安全写操作
  • 管理分组成员(查询/新增或更新/移除)
  • 更新知识库目录(TOC)
  • 通过组合工具提升常见操作效率

已实现能力

  • 读工具:用户、分组、知识库、文档、目录、分页检索
  • 写工具:分组 CRUD、知识库 CRUD、文档 CRUD、TOC 更新
  • 分组成员工具:yuque_list_group_usersyuque_add_group_useryuque_remove_group_user
  • 组合工具:
    • yuque_get_my_repositories
    • yuque_get_repository_overview
    • yuque_search_and_read
    • yuque_create_document_with_toc
  • 文件工具:
    • yuque_create_doc_from_file
    • yuque_update_doc_from_file

本地运行

npm install
npm run check
npm test
npm run build

开发模式:

npm run dev

生产启动:

npm run start

环境变量

  • YUQUE_TOKEN(必填)
  • YUQUE_ENDPOINT(可选,默认 https://www.yuque.com/api/v2/
  • YUQUE_TIMEOUT_MS(可选,默认 10000
  • YUQUE_MAX_RETRIES(可选,默认 2,仅读请求重试)
  • YUQUE_ALLOW_WRITE(可选,默认 false
  • YUQUE_WRITE_NAMESPACE_ALLOWLIST(可选,repo/doc/toc 写入白名单)
  • YUQUE_WRITE_GROUP_ALLOWLIST(可选,分组写入白名单)
  • YUQUE_ALLOW_DELETE(可选,默认 false
  • YUQUE_DELETE_NAMESPACE_ALLOWLIST(可选,删除白名单)
  • YUQUE_FILE_ROOT(可选,默认当前工作目录)
  • YUQUE_FILE_MAX_BYTES(可选,默认 1048576
  • YUQUE_FILE_ALLOWED_EXTENSIONS(可选,默认 .md,.markdown,.txt

写入安全策略

  • 所有写工具默认关闭:YUQUE_ALLOW_WRITE=false
  • 需要开启写入:YUQUE_ALLOW_WRITE=true
  • 建议配置白名单:
    • YUQUE_WRITE_NAMESPACE_ALLOWLIST=your/test-namespace
    • YUQUE_WRITE_GROUP_ALLOWLIST=your-test-group-login

删除安全策略

  • 删除默认关闭:YUQUE_ALLOW_DELETE=false
  • 删除需要同时满足:
    • YUQUE_ALLOW_WRITE=true
    • confirm: true
    • confirm_text 精确匹配
  • 确认文本格式:
    • 文档:DELETE DOC <namespace>/<docRef>
    • 知识库:DELETE REPO <namespace>
    • 分组:DELETE GROUP <login>

冒烟测试

只读:

YUQUE_SMOKE_NAMESPACE=your/test-namespace npm run smoke

写入(含自动清理):

YUQUE_SMOKE_NAMESPACE=your/test-namespace \
YUQUE_SMOKE_ENABLE_WRITE=true \
YUQUE_ALLOW_WRITE=true \
YUQUE_ALLOW_DELETE=true \
YUQUE_DELETE_NAMESPACE_ALLOWLIST=your/test-namespace \
npm run smoke

发布相关

  • 官方 Registry 元数据:server.json
  • 自动发布工作流:.github/workflows/publish-mcp.yml
  • 中文发布说明:docs/09-release-notes-zh.md
  • 官方发布操作指南:docs/10-registry-publish.md

开源协作与维护

  • 贡献指南:CONTRIBUTING.md
  • 安全策略:SECURITY.md
  • 每周维护清单:docs/11-weekly-maintenance.md
  • 投诉与下架流程:docs/12-complaint-and-takedown.md
  • 免责声明:DISCLAIMER.md