Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 61 Actions

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.

GitBook logo
GitBook MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

61 Agent Actions

Agents can read, write, delete and run operations in GitBook. 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 about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a 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 StackOne action for GitBook, ready for your agent. Read, write, delete and run operations, 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. filter.organization_id is optional — auto-resolved when the account belongs to exactly one GitBook organization, otherwise pass it to choose one. 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}. filter.organization_id is optional — auto-resolved when the account belongs to exactly one GitBook organization, otherwise pass it to choose one. 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

Claude Desktop
{
  "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

Wiz

696+ actions

Backbase

606+ actions

IONOS

501+ actions

Guidewire

294+ actions

Addepar

269+ actions

Workiva

266+ actions

FAQ

GitBook MCP Server FAQ

Ready to put your agents to work?