AI Client Integration
This section provides reference instructions for setting up the GitBook MCP server in popular AI clients. Use these configuration snippets to connect the MCP server to your preferred environment.
GitHub Copilot (VS Code)
Add the following to your VS Code MCP settings:
{
"servers": {
"gitbook-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"gitbook-mcp",
"--organization-id=your_organization_id_here"
],
"env": {
"GITBOOK_API_TOKEN": "gb_api_your_token_here"
}
}
}
}
Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json
on macOS):
{
"mcpServers": {
"gitbook-mcp": {
"command": "npx",
"args": ["gitbook-mcp", "--organization-id=your_organization_id"],
"env": {
"GITBOOK_API_TOKEN": "gb_api_your_token_here"
}
}
}
}
JetBrains IDEs (GitHub Copilot plugin)
Add to your GitHub Copilot MCP settings for JetBrains IDEs (e.g., ~/.config/github-copilot/intellij/mcp.json
):
{
"servers": {
"gitbook-mcp": {
"command": "npx",
"args": [
"gitbook-mcp",
"--organization-id=your_organization_id_here"
],
"env": {
"GITBOOK_API_TOKEN": "gb_api_your_token_here"
}
}
}
}
JetBrains AI Assistant
Add to your JetBrains AI Assistant MCP configuration (see JetBrains documentation for the exact path):
Replace
your_organization_id_here
andgb_api_your_token_here
with your actual credentials.For more details, see the Configuration Reference.
To obtain your credentials, see the GitBook API documentation.
Last updated