GitBook

GitBook

Drive GitBook (docs platform) from any AI agent: spaces, pages, content, search, collections. 9 tools, Bearer auth.

7 天免费 · 无需信用卡 · EU 托管

问 GitBook 任何事

通过 AnythingMCP 对 GitBook 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。

在 Cloud 上安装 GitBook
GitBook · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

2 分钟设置

  1. 1在 cloud.anythingmcp.com 开始免费试用。
  2. 2在连接器商店点击 GitBook。提示时粘贴凭据。
  3. 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
立即安装 GitBook

GitBook 指南

面向主流 AI 客户端的逐步设置。

配置 GitBook

直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。

This connector uses the GitBook API v1 (developer.gitbook.com).

Setup:

  1. Sign in to https://app.gitbook.com → bottom-left avatar → Settings → Developer → Personal access tokens → Create new token.
  2. Copy the token. Set GITBOOK_API_TOKEN.

Authentication: Authorization: Bearer ${GITBOOK_API_TOKEN}.

Hierarchy: Organization → Collection → Space → Page (a tree of pages, sub-pages, content).

Space IDs: each space has a UUID-like ID. Discover via gitbook_list_spaces.

Pages: content lives in pages. Each page has id, slug, title, type (document, group, link), revision_id (every change creates a new revision).

Content format: GitBook stores content as a JSON document tree (their own AST). Reading is straightforward; writing requires constructing the AST — out of scope for most agent use. For simple writes, use 'GitBook content imports' (markdown imports) — exposed as gitbook_import_markdown_to_page.

Search: full-text across spaces.

Pagination: ?page=N&limit=M (max 100).

Out of scope here: content editing via the AST, change requests, revisions diff, custom domains, integrations management.

你的 AI 距离 GitBook 仅两次点击。

安装连接器、粘贴凭据、向 AI 提问。7 天免费,无需信用卡。