Skip the install. Get this working in under 2 minutes.
Start a free trial on cloud.anythingmcp.com, add the GitBook in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.
Summary
Drive GitBook (docs platform) from any AI agent: spaces, pages, content, search, collections. 9 tools, Bearer auth.
Try asking
Example prompts for GitBook
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → GitBook, paste your credentials, mint an MCP API key — done. No Docker, no
git clone, no local server.
GitBook + Gemini
Drive GitBook (docs platform) from any AI agent: spaces, pages, content, search, collections. 9 tools, Bearer auth.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
GITBOOK_API_TOKEN
Step 1 — Get credentials
gitbook.com).
Setup:
- Sign in to https://app.gitbook.com → bottom-left avatar → Settings → Developer → Personal access tokens → Create new token.
- 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).
…(continued in the in-app connector instructions)
Step 2 — Install the adapter
git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d
Step 3 — Add the connector in Gemini
Gemini CLI reads MCP servers from ~/.gemini/settings.json (or %APPDATA%\gemini\settings.json on Windows). Add:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp",
"headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
}
}
}
- Get your MCP API key from AnythingMCP → Profile → MCP API Keys → New Key.
- Save the file and restart
gemini. - Run
/mcpinside the Gemini CLI —GitBookshould be listed as available. - Vertex AI Studio: pass
https://cloud.anythingmcp.com/mcpto thetoolsarray of your request with the same Bearer header.
Available tools
| Tool | What it does |
|---|---|
gitbook_get_me | Return the user the token belongs to: id, displayName, email, photoURL |
gitbook_list_organizations | List organizations the user is a member of |
gitbook_list_spaces | List spaces in an organization |
gitbook_get_space | Fetch a single space with full metadata |
gitbook_get_space_content | Get the table of contents / page tree for a space (latest revision) |
gitbook_get_page | Fetch a page's content (the JSON AST) |
gitbook_search_content | Full-text search across spaces |
gitbook_list_collections | List collections in an organization |
gitbook_import_markdown_to_page | Import Markdown content into a page (replaces the page's content) |
FAQ
Does Gemini 1.5 Pro or 2.x support MCP? Yes — Gemini CLI ≥ 0.4 and Vertex AI tools API both accept MCP httpUrl connectors with Bearer headers.
Next steps
Was this guide helpful?