Gitbook MCP Server

GitBook Model Context Protocol server - read and search GitBook documentation with AI assistants

Local serverstdioTypeScript

What is the Gitbook MCP Server?

GitBook Model Context Protocol server - read and search GitBook documentation with AI assistants

What it actually does

A Model Context Protocol (MCP) server that provides access to GitBook's API for AI assistants and LLM applications.

The GitBook MCP server enables programmatic access to GitBook Organizations, Spaces, Collections, and Content through a standardized MCP interface. It provides 12 tools for content operations and 6 AI-powered prompts for documentation workflows.

Configuration

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
organizationIdoptional): Organization ID to filter collections
spaceIdoptional): The ID of the space containing the file
queryrequired): Search query string
pageIdrequired): The ID of the page to retrieve
formatoptional): Output format ("document" or "markdown", defaults to "document")
metadataoptional): Include revision metadata (boolean, defaults to false)
computedoptional): Include computed revision data (boolean, defaults to false)
pagePathrequired): The path of the page to retrieve
fileIdrequired): The ID of the file to retrieve
collectionIdrequired): The ID of the collection

How to install the Gitbook MCP Server

{
  "mcpServers": {
    "gitbook-mcp": {
      "command": "npx",
      "args": [
        "gitbook-mcp",
        "--organization-id=your_organization_id"
      ],
      "env": {
        "GITBOOK_API_TOKEN": "YOUR_GITBOOK_API_TOKEN"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GITBOOK_API_TOKENDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Gitbook MCP to Prerequisites.”
  • “Use Gitbook MCP to Tools.”
  • “Use Gitbook MCP to Prompts.”

Frequently asked questions

GitBook Model Context Protocol server - read and search GitBook documentation with AI assistants Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.