Basic information
About Gitbook MCP Server
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.
Gitbook MCP is a MCP server in the Memory & Knowledge category listed in the AddMCP.net directory, published by rickysullivan. It exposes 12 tools, including list_organizations, list_spaces, get_space, get_space_content and more. Supported transport: stdio. License: MIT. Source code is hosted on github.com. Related topics: ai, claude, copilot, documentation, gitbook.
Setup
{
"mcpServers": {
"gitbook-mcp": {
"command": "npx",
"args": [
"gitbook-mcp",
"--organization-id=your_organization_id"
],
"env": {
"GITBOOK_API_TOKEN": "gb_api_your_token_here"
}
}
}
}
{
"mcpServers": {
"gitbook-mcp": {
"command": "npx",
"args": [
"gitbook-mcp",
"--organization-id=your_organization_id"
],
"env": {
"GITBOOK_API_TOKEN": "gb_api_your_token_here"
}
}
}
}
{
"servers": {
"gitbook-mcp": {
"command": "npx",
"args": [
"gitbook-mcp",
"--organization-id=your_organization_id"
],
"env": {
"GITBOOK_API_TOKEN": "gb_api_your_token_here"
}
}
}
}
Gitbook MCP config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"gitbook-mcp": {
"command": "npx",
"args": [
"gitbook-mcp",
"--organization-id=your_organization_id"
],
"env": {
"GITBOOK_API_TOKEN": "gb_api_your_token_here"
}
}
}
}
Gitbook MCP tools
-
list_organizations
— List all GitBook organizations accessible with the current API token
(no parameters) -
list_spaces
— List all spaces in a GitBook organization, optionally filtered by organization ID
organizationId:string -
get_space
— Get detailed information about a specific GitBook space
spaceId:string* -
get_space_content
— Get the complete content structure and page hierarchy of a GitBook space
spaceId:string -
get_page_content
— Retrieve the content of a specific page from a GitBook space, with options for format and metadata
computed:boolean, format:string, metadata:boolean, pageId:string*, spaceId:string -
get_page_by_path
— Retrieve a page from a GitBook space using its path instead of page ID
pagePath:string*, spaceId:string -
search_content
— Search for content within a GitBook space using a text query
query:string*, spaceId:string -
get_space_files
— List all files (images, documents, etc.) uploaded to a GitBook space
spaceId:string -
get_file
— Get detailed information about a specific file uploaded to a GitBook space
fileId:string*, spaceId:string -
list_collections
— List all collections in a GitBook organization, optionally filtered by organization ID
organizationId:string -
get_collection
— Get detailed information about a specific GitBook collection
collectionId:string* -
get_collection_spaces
— List all spaces that belong to a specific GitBook collection
collectionId:string*
Overview
What is Gitbook MCP?
A Model Context Protocol server that provides access to GitBook's API for AI assistants and LLM applications. It enables programmatic access to GitBook Organizations, Spaces, Collections, and Content through 12 tools and 6 AI-powered prompts for documentation workflows.
How to use Gitbook MCP?
Install via npx gitbook-mcp. Configure with a GitBook API token and optional organization/space ID. Set up the server in your MCP client (VS Code, Claude Desktop, JetBrains) by adding the JSON configuration shown in the README. Use CLI arguments or environment variables for credentials.
Key features of Gitbook MCP
- 12 read-only, idempotent tools for content operations
- 6 AI-powered prompts for documentation workflows
- Search and retrieve GitBook content programmatically
- Supports integration with multiple IDEs and AI assistants
- Organization discovery, space management, and file retrieval
Use cases of Gitbook MCP
- Automating documentation retrieval and analysis in AI assistants
- Identifying content gaps and performing quality audits
- Generating structured summaries and optimizing content for SEO
- Integrating GitBook content into custom LLM-based workflows
Frequently asked questions
1 What credentials are required to use Gitbook MCP?
A GitBook API token (obtainable from https://app.gitbook.com/account/developer) is required. An organization ID is optional but recommended.
2 How do I configure Gitbook MCP in my AI assistant?
Add the server definition to your MCP client’s configuration file using the JSON examples provided in the README for VS Code, Claude Desktop, or JetBrains IDEs.
3 Can I use .env files for configuration?
.env files are only supported when running the server locally for development, not when using npx gitbook-mcp.
4 Does Gitbook MCP modify any content?
No. All 12 tools are labeled read-only and idempotent; they only retrieve or search data without making changes.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In