[Home](/index.md) › [MCP servers](/mcp.md) › GitBook MCP

# GitBook MCP

MCP server

- 0 callable tools
- 4 capabilities

[Installation guide](https://gitbook.com/docs/docs-as-code/gitbook-mcp.md)

## Overview

GitBook publishes this remote MCP server so AI tools can act on content in a GitBook organization through the GitBook API. It works with GitBook sites, spaces and pages.

### Capabilities

- Create and configure docs sites
- Open change requests and draft content
- Edit existing pages
- Restructure pages across a site

## Works with

The products your agent can work with through this server.

- [GitBook](/tools/gitbook.md): AI-native documentation platform

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add GitBook MCP to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http gitbook https://mcp.gitbook.com/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add GitBook MCP to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=gitbook&config=eyJ1cmwiOiJodHRwczovL21jcC5naXRib29rLmNvbS9tY3AifQ%3D%3D)

```json
{
  "mcpServers": {
    "gitbook": {
      "url": "https://mcp.gitbook.com/mcp"
    }
  }
}
```

### Add GitBook MCP to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "gitbook": {
      "type": "http",
      "url": "https://mcp.gitbook.com/mcp"
    }
  }
}
```

### Add GitBook MCP to Codex

Run this in your terminal:

```sh
codex mcp add gitbook --url https://mcp.gitbook.com/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.gitbook]
url = "https://mcp.gitbook.com/mcp"
```

If the server uses OAuth, sign in with `codex mcp login gitbook`.

### Add GitBook MCP to Claude

Add it as a custom connector with this URL:

```
https://mcp.gitbook.com/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add GitBook MCP to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://mcp.gitbook.com/mcp
```

[Read the installation guide](https://gitbook.com/docs/docs-as-code/gitbook-mcp.md)

## Sources

Documentation and source code reviewed on 10 November 2026.

- [gitbook.com/docs/docs-as-code/gitbook-mcp.md](https://gitbook.com/docs/docs-as-code/gitbook-mcp.md)
