GitBook MCP Server
for AI Agents
Connect your AI agent to StackOne's GitBook MCP server and give it 61 MCP tools out of the box. Auth, tool execution, and security all managed.
Coverage
61 Agent Actions
Create, read, update, and delete across GitBook — and extend your agent's capabilities with custom actions.
Authentication
Agent Tool Authentication
Per-user OAuth in one call. Your GitBook MCP server gets session-scoped tokens with zero credentials stored on your infra.
Agent Auth →Security
Agent Protection
Every GitBook tool response scanned for prompt injection in milliseconds — 88.7% accuracy, all running on CPU.
Prompt Injection Defense →Performance
Max Agent Context. Min Cost.
Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every GitBook call.
Tools Discovery →What is the GitBook MCP Server?
A GitBook MCP server lets AI agents read and write GitBook data through the Model Context Protocol — Anthropic's open standard for connecting LLMs to external tools. StackOne's GitBook MCP server ships with 61 pre-built actions, fully extensible via the Connector Builder — plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.
All GitBook MCP Tools
Every action from GitBook's API, ready for your agent. Create, read, update, and delete — scoped to exactly what you need.
A Collections
- Update A Collection
Update properties of an existing collection
- Delete A Collection
Delete a collection
Unified Groups
- List Unified Groups
List GitBook organization teams mapped to the IAM unified group schema, cursor-paginated. Wraps GET /orgs/{organization_id}/teams. Requires filter.organization_id — GitBook teams are scoped per organization. Each entry includes id, title (name), members count, and createdAt.
- Get Unified Group
Retrieve a single GitBook team by id, mapped to the IAM unified group schema. Wraps GET /orgs/{organization_id}/teams/{id}. Requires filter.organization_id. Supports expand=users to attach team members. Field coverage matches unified_list_groups.
Unified Organizations
- List Unified Organizations
List every GitBook organization the authenticated account is a member of, cursor-paginated. Wraps GET /orgs. Each entry includes id, title (name), and createdAt. GitBook organizations represent customer tenants — a single account commonly belongs to multiple organizations with different roles per organization.
- Get Unified Organization
Retrieve a single GitBook organization by id, mapped to the IAM unified organization schema. Wraps GET /orgs/{organizationId}. Field coverage matches unified_list_organizations.
Unified Roles
- List Unified Roles
Return the seven GitBook organization member roles as IAM role records (admin, create, edit, review, comment, read, guest). Synthesized — GitBook has no public roles API. Role keys match the raw strings returned on member records by unified_list_users. Performs a GET /user auth probe to surface 401 when credentials are bad.
- Get Unified Role
Retrieve a single GitBook organization role by its key (admin, create, edit, review, comment, read, guest). Returns the synthesized IamRole record. Performs a GET /user auth probe to surface 401 when credentials are invalid.
Unified Users
- List Unified Users
List GitBook organization members mapped to the IAM unified user schema, cursor-paginated. Wraps GET /orgs/{organization_id}/members. Requires filter.organization_id input — GitBook does not expose a tenant-global users endpoint; users are scoped per organization. Each entry carries role, joinedAt, lastSeenAt, sso, and an embedded role mapped to the unified IamRole shape.
- Get Unified User
Retrieve a single GitBook organization member by user id, mapped to the IAM unified user schema. Wraps GET /orgs/{organization_id}/members/{userId}. Requires filter.organization_id. Field coverage matches unified_list_users, plus optional expand=groups.
- Update Unified User
Update a GitBook organization member's role.
- Delete Unified User
Remove a member from a GitBook organization.
Space User Permissions
- List Space User Permissions
List users who have been added to a space
- Update Space User Permissions
Update user permission level in a space
A Spaces
- Update A Space
Update properties of an existing space
- Delete A Space
Delete a space and move it to trash
A Teams
- Get A Team
Retrieve detailed information about a specific team
- Update A Team
Update properties of an existing team
- Delete A Team
Delete a team from an organization
Other (42)
- Create A New Change Request
Create a new change request in a space
- Create A New Collection
Create a new collection in an organization
- Import A Git Repository
Trigger a Git Sync import operation
- Create A New Organization Invite
Create a new invite link for the organization
- Create A New Space
Create a new documentation space in an organization
- Create A New Team
Create a new team in an organization
- Add A Member To A Team
Add a user to a team
- List All Change Requests In A Space
Get all change requests in a space
- Get A Change Request By Its ID
Retrieve detailed information about a specific change request
- Get All Change Request Reviewers
List requested reviewers for a change request
- List All Collections
Get all collections in an organization
- Get A Collection By Its ID
Retrieve detailed information about a specific collection
- List Collection User Permissions
List users who have been added to a collection
- Get Space Git Info
Get Git Sync configuration and status for a space
- Get Unified Credentials
Return the authenticated identity and auth type for the current GitBook connection. Calls GET /user to confirm Personal Access Token validity and derive the credential identity (displayName or email). Maps to the StackOne IAM unified credentials schema. auth_type is always "api_key" — the GitBook connector uses Personal Access Token authentication only.
- List Unified Resource Types
List unified resource types in GitBook.
- List Unified Resource Users
List unified resource users in GitBook.
- List Organization Invites
List all invite links in an organization
- Get An Organization Invite Link
Retrieve details of a specific invite link
- Get The List Of Organizations For The Currently Authenticated User
List all organizations accessible to the authenticated user
- Get An Organization By Its ID
Retrieve detailed information about a specific organization
- List All Organization Members
Get all members of an organization
- Get An Organization Member By Its ID
Retrieve detailed information about a specific organization member
- List All Space Users Permissions
List all users who can access a space with aggregated permissions
- List All Spaces
Get all spaces in an organization
- Get A Space By Its ID
Retrieve detailed information about a specific space
- Get A URL Of The Content Of A Space As PDF
Generate and retrieve a temporary URL to export space content as PDF
- List All Teams
Get all teams in an organization
- List All Team Members
Get all members of a team with their roles
- Get Profile Of Authenticated User
Get details about the authenticated user
- Get A User By Its ID
Get publicly available information about a GitBook user
- Update A Change Request
Update properties of an existing change request
- Update A Collection User Permission
Update user permission level in a collection
- Update An Organization
Update properties of an existing organization
- Remove A Reviewer From A Change Request
Remove a requested reviewer from a change request
- Remove A User From A Collection
Remove a user's access to a collection
- Delete An Organization Member
Remove a member from an organization
- Remove A Space User
Remove a user's access to a space
- Delete A Team Member
Remove a member from a team
- Merge A Change Request
Merge a change request into the main content
- Invite Users To Organization
Invite users to organization by email
- Deletes An Organization Invite
Deletes an organization invite link
Set Up Your GitBook MCP Server in Minutes
One endpoint. Any framework. Your agent is talking to GitBook in under 10 lines of code.
Agent Frameworks
{
"mcpServers": {
"stackone": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://api.stackone.com/mcp?x-account-id=<account_id>",
"--header",
"Authorization: Basic <YOUR_BASE64_TOKEN>"
]
}
}
}Check More developer MCP Servers
113+ actions
62+ actions
54+ actions
31+ actions
19+ actions
Platform Resources
MCP Code Mode: Keeping Tool Responses Out of Agent Context
Anthropic's code_execution processes data already in context. Custom MCP code mode keeps raw tool responses in a sandbox. 14K tokens vs 500.
11 min
Comparing BM25, TF-IDF, and Hybrid Search for MCP Tool Discovery
Benchmarking BM25, TF-IDF, and hybrid search for MCP tool discovery across 916 tools. The 80/20 TF-IDF/BM25 hybrid hits 21% Top-1 accuracy in under 1ms.
10 min
Indirect Prompt Injection Defense for MCP Tools: A Technical Guide
MCP tools that read emails, CRM records, and tickets are indirect prompt injection vectors. Here's how we built a two-tier defense that scans tool results in ~11ms.
12 min
MCP vs A2A: Architecture, Security, and When to Use Each
MCP vs A2A: what each protocol standardizes, how they differ, their shared security risks including indirect prompt injection, and when to use one, both, or a hybrid architecture.
12 min
MCP vs API: What 200+ Connector Builds Taught Us
MCP wraps APIs, it doesn't replace them. After building 200+ connectors that serve both, here's when each approach wins.
14 min read
GitBook MCP Server FAQ
Does StackOne have a GitBook MCP server?
GitBook MCP server vs direct API integration — what's the difference?
How does GitBook authentication work for AI agents?
origin_owner_id.Are GitBook MCP tools vulnerable to prompt injection?
What is the context bloat of a GitBook agent and how do I avoid it?
Can I limit which actions my GitBook agent can access?
Can I create custom agent actions for my GitBook MCP server?
When should I NOT use a GitBook MCP server?
What AI frameworks and AI clients does the StackOne GitBook MCP server support?
Put your AI agents to work
All the tools you need to build and scale AI agent integrations, with best-in-class connectivity, execution, and security.