Skip to content

Menu

GitBook MCP Server logo

GitBook MCP Server

Published · Updated

At a glance

Hosted by the vendor
https://mcp.gitbook.com/mcp
Watch out for
Only Streamable HTTP is supported, so clients that need stdio or SSE cannot connect.

GitBook runs its own hosted MCP server at https://mcp.gitbook.com/mcp. It talks to the GitBook API on your behalf, so an agent in Claude Code, Codex, Cursor or VS Code can create and configure sites, open change requests, draft content, edit pages and restructure docs. It is meant for the team that writes the documentation, not the people reading it.

The server only speaks Streamable HTTP. GitBook says stdio and SSE are not supported, and opening the URL in a browser just returns an error. Sign-in is OAuth by default: the client discovers the auth server, registers itself and opens a browser window. A personal access token sent as a bearer header works too.

Don't confuse it with the read-only MCP endpoint GitBook gives each published site at {docs-site-url}/~gitbook/mcp. That one lets readers' assistants search and read your public docs, and GitBook's own docs contrast the two: published docs MCP is for readers, GitBook MCP is for your team's agents.

How it connects

Your AI app

An assistant or agent that supports MCP

GitBook MCP Server

Runs as

  • Remote (HTTP)

Gives the agent

  • Site setup
  • Change requests
  • Drafting and editing
  • Restructuring
  • Token or OAuth access

GitBook

Signs in with

  • Token
Your AI app talks to GitBook MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Site setup
Create and configure GitBook sites from the agent, using the same API your account already has access to.
Change requests
Open change requests so edits land in a reviewable branch instead of going straight to the live content.
Drafting and editing
Draft new content and edit existing pages, for example turning notes or code comments into a doc page.
Restructuring
Reorganize docs, such as moving or regrouping pages. GitBook's page describes these abilities in general terms and does not publish a list of individual tool names.
Token or OAuth access
Use the default browser OAuth flow, or a personal access token from app.gitbook.com/account/developer sent as an Authorization: Bearer header.

Setting it up

In Claude Code, run claude mcp add --transport http gitbook https://mcp.gitbook.com/mcp, then start claude and use /mcp to finish signing in through the browser. To use a personal access token instead, add --header "Authorization: Bearer <YOUR_TOKEN>" to the same command. Codex users run codex mcp add gitbook --url https://mcp.gitbook.com/mcp, or add an [mcp_servers.gitbook] block to ~/.codex/config.toml with the url, bearer_token_env_var = "GITBOOK_MCP_TOKEN" and enabled = true. In Cursor, put {"mcpServers": {"gitbook": {"url": "https://mcp.gitbook.com/mcp"}}} in ~/.cursor/mcp.json or a project .cursor/mcp.json and sign in when prompted. In VS Code, add a server named gitbook with "type": "http" and the same URL under mcpServers in the workspace-root .mcp.json, then start it from the MCP view. GitBook also lists official plugins for Claude (in the Claude connectors directory), ChatGPT and the Cursor marketplace.

Run in a terminal
claude mcp add --transport http gitbook https://mcp.gitbook.com/mcp

If the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Draft a new how-to page from a merged pull request and open it as a change request for a writer to review.
  • Reorganize a sprawling docs section into clearer groups without clicking through the editor page by page.
  • Spin up and configure a new docs site for an internal project from the terminal.
  • Fix a renamed CLI flag across several pages in one pass, then review the change request.

Limitations and things to watch

  • Only Streamable HTTP is supported, so clients that need stdio or SSE cannot connect.
  • Calls share the GitBook API rate limit of 5,000 requests per hour per token, reads and writes count the same, and one tool call can make several API requests.
  • Member invites are capped at 2 per minute, and going over a limit returns a rate limit exceeded error with a wait time.
  • Plan features still apply: if your GitBook plan does not include a feature, the call is refused with an upgrade link.
  • The server can write and restructure content with your account's permissions, so lean on change requests and review before merging.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…