Collaboration

GitBook MCP Server

Use Studio chat to drive this server — credentials stay in your workspace.

GitBook is a platform for creating, maintaining, and sharing documentation. Teams collaborate on content with version control, change requests, and publishing workflows.

19 tools
Agent guide included
API Key
Start Chatting

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for GitBook — workflow patterns, data models, and gotchas for your AI agent.

GitBook

GitBook is a documentation platform where teams create, review, and publish structured content. It combines a WYSIWYG editor with Git-like version control (change requests, revisions, merges).

Data Model & Hierarchy

  • User — A user account. Has id, displayName, email, photoURL. A user can belong to multiple organizations.
  • Organization — Top-level container that owns all resources. Has id, title, plan, URLs. All spaces, collections, teams, and members live under an org.
  • Space — A documentation project (like a repo). Spaces hold pages, files, change requests, and revisions. Each space has visibility (public/private), optional Git sync, and its own permission set. Spaces can belong to a collection or be standalone within an org.
  • Collection — A folder that groups related spaces within an organization. Collections can be nested. Useful for organizing many documentation projects by product or team.
  • Page — A content unit within a space. Pages are hierarchical (parent/child via groups). Each page has id, title, path (URL slug), kind (document/group/link), and an optional document body. Pages exist in the current revision or within a change request.
  • Change Request — A branch-like construct for proposing edits. Has a status lifecycle: draft → open → merged/closed. Supports reviews, comments, and per-page diffs. Similar concept to a pull request.
  • Revision — An immutable snapshot of space content at a point in time. Every merge creates a new revision.
  • Team — A named group of org members used for permission assignment on spaces and collections.
  • Member — A user's membership in an organization, including their role (admin, member, guest, reader, etc.) and activity timestamps.
  • Comment — Threaded discussion on a space or change request, optionally attached to a specific page. Supports replies and has open/resolved status.
  • File — Media/asset attached to a space (images, PDFs). Has contentType, downloadURL, and size.

Entity Relationships

Organization ─┬─ Spaces (many) ├─ Collections ── Spaces (grouped) ├─ Members (users + roles) └─ Teams ── Members (grouped for permissions)

Space ─┬─ Content (revision tree of pages) ├─ Pages (hierarchical documents) ├─ Change Requests (branch-like edits) ├─ Revisions (immutable snapshots) ├─ Comments (inline discussion, threaded with replies) ├─ Files (attached media/assets) └─ Permissions (user + team access levels)

Key Workflows

  1. Discover structure: Get orgs → list spaces per org → list collections → explore content tree per space.
  2. Read content: Get content tree for page hierarchy, then fetch individual pages for document body. List files for attached assets.
  3. Search: Search across all org spaces or within a single space by keyword.
  4. Review changes: List open change requests → inspect individual CR details → read comments and diffs.
  5. Audit access: List org members with roles → list teams and team members → get space permissions.
  6. Propose edits: Create a change request → update its status to open → merge when ready.
  7. Collaborate: Post comments on spaces or change requests → reply to existing comment threads.
  8. Inspect history: Get revisions to see historical content snapshots and diffs between versions.

Gotchas

  • Space-first scoping: Content, change requests, revisions, comments, files, permissions, and search within a space all need space_id.
  • Org-first for discovery: Spaces, collections, members, teams, and org-wide search need organization_id.
  • Page paths are URL slugs: e.g. 'getting-started/quickstart'. Use page_path for human-readable lookups, page_id for precise access.
  • Content tree vs flat list: GET content returns hierarchical tree; use list_pages=true for a flat enumeration.
  • Change request status: Defaults to 'open'; pass status='merged' or 'closed' to see historical CRs.
  • Change request lifecycle: draft → open → merged (via merge endpoint) or archived (via status update). Cannot merge a draft — must open it first.
  • Comments use markdown: When creating comments, the body accepts markdown format which is auto-converted to GitBook's document structure.
  • Revision IDs: Found in space details (revision field) and change request objects (revision, revisionInitial). Use these to inspect specific snapshots.
  • Pagination: Uses cursor-based pagination — responses include a 'next' cursor when more results exist.

Tools in this Server (19)

Gitbook Create Change Request

Create a new change request in a GitBook space. Change requests are branch-like constructs for proposing documentation edits. They start as drafts and...

Gitbook Create Comment

Create a comment on a GitBook space or change request. With just space_id + body: creates a space-level comment. With change_request_id: creates a com...

Gitbook Create Space

Create a new GitBook space (documentation project) in an organization. Requires a title and organization_id. Visibility defaults to private. The new s...

Gitbook Get Change Requests

Get change requests (similar to pull requests) in a GitBook space. Lists all change requests filtered by status, or retrieves a single one by change_r...

Gitbook Get Collections

Get GitBook collections (folders that group related spaces). Pass organization_id to list all collections in an org. Pass collection_id to get a singl...

Gitbook Get Comments

Get comments on a GitBook space or change request. With just space_id: lists space-level comments. With space_id + change_request_id: lists comments o...

Gitbook Get Content

Get documentation content from a GitBook space. Called with just space_id: returns the current revision's hierarchical content tree (pages, groups, li...

Gitbook Get Files

Get files (images, PDFs, and other assets) attached to a GitBook space. Lists all files in the space's current revision, or retrieves a single file by...

Gitbook Get Org Members

Get members of a GitBook organization. Lists all members with their roles and join dates, or retrieves a single member by user_id. Use 'search' to fil...

Gitbook Get Orgs

Get GitBook organizations. Without arguments, lists every organization the authenticated user is a member of. Pass organization_id to retrieve details...

Gitbook Get Revisions

Get a specific revision (immutable content snapshot) of a GitBook space. Every merge creates a new revision. Use this to inspect historical content st...

Gitbook Get Space Permissions

Get aggregated permissions for a GitBook space. Returns all users and teams that have access to the space, along with their permission levels. Useful ...

Gitbook Get Spaces

Get GitBook spaces (documentation projects). Pass space_id to get a single space's details. Pass organization_id (without space_id) to list all spaces...

Gitbook Get Team Members

Get members of a specific GitBook team. Returns all users in the team along with their membership details. Teams are org-level groups used for bulk pe...

Gitbook Get Teams

Get teams in a GitBook organization. Lists all teams or retrieves a single team by team_id. Teams group members for shared space permissions and acces...

Gitbook Get User

Get a GitBook user profile. When called without arguments, returns the authenticated user's own profile (name, email, photo URL). Pass user_id to look...

Gitbook Merge Change Request

Merge a GitBook change request into the space's primary content. This applies all proposed edits from the change request to the main revision. The cha...

Gitbook Search Content

Search GitBook documentation content by keyword. Searches across all spaces in an organization (pass organization_id) or within a single space (pass s...

Gitbook Update Change Request

Update an existing GitBook change request. Can modify the subject (title) and/or status (draft, open, archived). Set status to 'open' to submit for re...

Frequently Asked Questions

What is the GitBook MCP server?

GitBook is a platform for creating, maintaining, and sharing documentation. Teams collaborate on content with version control, change requests, and publishing workflows. It provides 19 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect GitBook to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/gitbook. Authentication is handled automatically.

How many tools does GitBook provide?

GitBook provides 19 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does GitBook require?

GitBook uses API Key. GitBook requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect GitBook to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/gitbook

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Ready to chat with GitBook?

Same flow: Studio opens on this server after sign-in. Keep chatting to call tools from the conversation.

GitBook MCP Server & Skill — 19 Tools