GitBook MCP | GitBook Documentation New: The GitBook MCP server is here.Connect your AI agent ⌘Ctrlk Ask ProductPricingBook a demoLog inSign upMore Documentation Developers Resources 🇺🇸 English GitBook Assistant Good night I'm here to help you with the docs. How do I migrate my docs to GitBook?Give me an overview of GitBook's AI features.What has GitBook shipped in the last month? ⌘Ctrli AI Based on your context Send 🇺🇸 English GitBook documentation Get Started Quickstart LLM-ready docs Migrate to GitBook Site workspaceNew Create content Content structure Format content Blocks Reusable content Variables and expressions Document an API Style guide Version control Searching internal content Guides GitBook Agent Overview Writing with GitBook Agent Review change requests with GitBook Agent Automatic docs improvements Translations Channels Guides Docs as code GitHub & GitLab Sync GitBook MCPNew GitBook CLI Agent skills Guides Collaborate Change requests Merge rules Comments Live edits Notifications Member management Inviting your team Guides Manage your site Site settings Site structure Site customization Install and manage integrations Guides Publish Site audience Adaptive content Set a custom domain Site redirects SEO PDF export Embed in your product Publish a docs site Guides AI for your readers GitBook Assistant Connections AI Search MCP servers for published docs Analytics Site analytics AI insights Guides Account and billing Plans Personal settings Organization settings SSO & SAML Billing FAQ Reference Keyboard shortcuts Glossary Core concepts Help Troubleshooting Report a bug Contact support Contribute to the docs Powered by GitBook On this page For the complete documentation index, see llms.txt. This page is also available as Markdown. Ask On this page Documentation Docs as code GitBook MCP Connect AI coding assistants to GitBook so they can create sites, open change requests, and edit content through GitBook’s API GitBook exposes an MCP server that lets AI tools act on content in your organization. Tools like Claude Code, Codex, Cursor, and other MCP clients can use it to create and configure sites, open change requests, draft content, edit pages, and restructure docs. Install our official plugins: Install Claude plugin Install ChatGPT plugin Install Cursor plugin Need a read-only MCP server for a published docs site? GitBook creates one for you automatically — see MCP servers for published docs to find out more. GitBook’s MCP Endpoint Point your MCP client at: AskCopy https://mcp.gitbook.com/mcp Opening this URL in a browser returns an error. Use it in an MCP client that can make HTTP requests. Connect your client Add GitBook MCP in your client of choice: Claude ChatGPT Cursor VS Code Other Install the official GitBook plugin for Claude: Install Claude plugin Or add the server from your terminal: AskCopy claude mcp add --transport http gitbook https://mcp.gitbook.com/mcp Then start Claude Code with claude and run /mcp to finish the browser sign-in. If you prefer a personal access token, pass it as an authorization header: AskCopy claude mcp add --transport http gitbook https://mcp.gitbook.com/mcp \ --header "Authorization: Bearer <YOUR_TOKEN>" Install the official GitBook plugin for ChatGPT: Install ChatGPT plugin Or add the server from your terminal: AskCopy codex mcp add gitbook --url https://mcp.gitbook.com/mcp Then sign in through the browser. To use a personal access token instead, add this to ~/.codex/config.toml: AskCopy [mcp_servers.gitbook] url = "https://mcp.gitbook.com/mcp" bearer_token_env_var = "GITBOOK_MCP_TOKEN" enabled = true Install the official GitBook plugin for Cursor: Install Cursor plugin Or add the server to ~/.cursor/mcp.json, or to your project at .cursor/mcp.json: AskCopy { "mcpServers": { "gitbook": { "url": "https://mcp.gitbook.com/mcp" } } } Then sign in when Cursor prompts you. Add the server to .vscode/mcp.json in your workspace: