Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
YUQUE_COOKIEYes语雀 Cookie(单个 _yuque_session 的值或完整的 Cookie 字符串)。可以是仅 _yuque_session 的值,也可以是完整的 Cookie 字符串(如:lang=zh-cn; _yuque_session=xxx; yuque_ctoken=xxx; current_theme=default)
YUQUE_BASE_URLNo语雀基础 URL。企业私有部署时需要设置,公有云用户可以不设置。https://www.yuque.com
YUQUE_NAMESPACENo默认知识库命名空间。格式为 username/repo,支持中文(如:username/repo 或 用户名/知识库名)。设置后可以直接通过 slug 获取文档,无需每次指定命名空间。

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get-yuque-doc

从语雀 URL 或命名空间+slug 获取文档的详细信息。

支持的输入格式:

  1. 语雀 URL: https://www.yuque.com/username/repo/doc-slug

  2. 命名空间+Slug: 在 namespace 参数中指定 username/repo,在 slug 参数中指定文档 slug

返回的信息包括:

  • 文档基本信息(标题、ID、格式、字数等)

  • 作者信息

  • 知识库信息

  • 文档完整内容(Markdown 或 HTML)

  • 统计数据(浏览量、点赞数、评论数)

get-yuque-toc

获取语雀知识库的完整目录结构(TOC)。

可以查看知识库中所有文档的层级结构、标题和 slug。

search-yuque-docs

在指定的知识库中搜索文档。

会在文档标题和描述中进行关键词匹配。

list-yuque-docs

列出指定知识库中的所有文档。

返回文档列表,包括标题、slug、更新时间等基本信息。

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/saoqixiaomm/yuque-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server