Try Kling Image V4 Long for Page Mockups from Kling AI →
Models
Agents
Workflows
Studio
PricingBlogDocs
ExploreDiscover models by categoryDiscoverModels and effects built by WiroBrowse All ModelsBrowse the complete catalogSee FavoritesSign in to view saved models
Generative Media AgentCreate and edit media by chattingWorkflow AgentBuild visual workflows with Agent
OverviewThe platform at a glanceLearnSkills, knowledge, guardrailsAnatomyWhat makes agents reasonBuild Your AgentPick skills, choose a plan, deploy, then connect your tools
Pre-built AgentsBrowse the catalogConnectorsConnect agents to your apps
Agent Usecases
Ad Campaign ManagerApp Event ManagerApp Review RepliesBarber BookingCustomer Win-BackEcommerce ListingsRestaurant Reviews
Sign InStart Building
  1. Home
  2. Connectors
  3. Content
  4. GitBook
Wiro × GitBook
GitBook logoGitBook logo

Connect GitBook to your Wiro AI agent

Read and edit the spaces and pages of your GitBook docs.

Connect to an AgentVisit GitBook All Connectors
Example chat
GitBook logoGitBook logoGitBook connected Key saved

Add a help page for the new bulk export (CSV or Excel, up to 50,000 rows), but keep it in a change request for now.

Get Site Structure gitbook__get_site_structure
Create Change Request gitbook__create_change_request
Invoke Operation gitbook__invoke_operation

Your Fernway Help Center site keeps its guides in the Product guides space, so the new page went there. With both steps approved, I opened change request #41 Add bulk export and drafted a Bulk export page in it, covering when to use it, the CSV and Excel options and the 50,000-row limit. The published docs stay as they are until you merge the change request in GitBook.

Type a message...
API KeyPasted once, stored encrypted and never shown again
Chat and Scheduled TasksWhere it works
Allow, Ask or BlockYour choice for each action

Overview

What GitBook does for your agent

Uses GitBook's hosted MCP server with a personal API token, acting as the GitBook account that made the token. The agent reads a site's page tree and pages, opens change requests and, inside them, drafts new pages and edits, moves or renames existing ones, and can create and publish a new site. The token reaches every space that account can open, across all its organizations, so a token from an account with narrower access keeps the agent to fewer spaces.

Use cases

What your Wiro agent can do with GitBook

Draft the docs for a new feature in a change request

Paste the release notes or the spec. The agent reads the pages around the topic to match their tone and structure, opens a change request, drafts the new page and the edits to related pages, and shares the preview link. Your live docs stay as they are until the change request is merged.

Restructure a docs section with a before and after plan

Ask the agent to tidy a section that grew too long. It shows the current page tree, proposes a new one with pages moved, renamed or grouped, waits for your OK in Chat, then makes the moves in a change request and checks the result.

A weekly review of pages that mention outdated details

To automate GitBook upkeep, give the agent a list of retired settings, old version numbers and renamed features. Every Friday a Scheduled Task reads the pages of the sections you name and posts in Chat the pages that still mention them, with the lines to change.

Turn repeated support answers into help pages

Paste a handful of support replies your team keeps writing. The agent groups them by topic, finds where they belong in your docs, and drafts new help pages or added sections in a change request, in the same voice as the pages next to them.

Start a new docs site from an outline

Give the agent an outline for a product's docs and the GitBook organization to use. It confirms the organization, creates the site with a first set of pages from your outline, publishes it once you approve, then opens the live address to check that it loads.

How it works

How GitBook works with Wiro

  1. 01

    Connect GitBook

    Deploy an agent, open its Connectors tab, choose GitBook and paste what the Connect dialog asks for.

  2. 02

    Choose what each action may do

    Set each GitBook action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.

  3. 03

    Ask in Chat or schedule it

    Ask your agent for GitBook work in Chat, or put it on a Scheduled Task that runs on its own.

  • Where it runsOn mcp.gitbook.com, a server run by GitBook. Your agent sends each request there.
  • Where its data goesmcp.gitbook.com
  • How it signs inPaste a key. It is stored encrypted and never shown again.
  • ActionsListed after the first connection.

How to connect

Connect GitBook to Wiro

Open the agent's Connectors tab, choose GitBook and paste what it asks for. Values are stored encrypted and never shown again.

What the Connect dialog asks for

FieldAbout
TokenRequired

Read and edit your GitBook spaces with your own token.

  1. Sign in at app.gitbook.com with the account the agent should use: the token gets its access in all its organizations.
  2. In your account settings, open Developer tools.
  3. Click Create new API token, enter a Label and choose an Expiration.
  4. Create it, copy the token (it usually starts with gb_api_) and paste it here.
Kept encrypted, never shown again.

Troubleshooting

Troubleshooting GitBook

What to check when GitBook stops working for your agent.

  • An invalid or expired key If GitBook refuses the key, for example after it was deleted or expired, the agent's GitBook actions fail. Create a new key in GitBook, then open the agent's Connectors tab, choose GitBook and paste it in place of the old one.
  • Limits set by GitBook GitBook limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your GitBook plan.

For developers

Connect GitBook from your own product

Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.

  1. 01

    Read the connector

    Detail answers without a session: what the connector needs and the tools it gives an agent.

    POST /AgentConnector/Detail
    {
      "slug": "gitbook"
    }
    Response
    {
      "result": true,
      "errors": [],
      "agentconnectors": [
        {
          "slug": "gitbook",
          "title": "GitBook",
          "category": "content",
          "authtype": "headers",
          "credentialfields": [
            {
              "name": "token",
              "label": "Token",
              "required": true,
              "secret": true,
              "format": "password"
            }
          ],
          "tools": []
        }
      ]
    }
  2. 02

    Connect with the values

    Send what the person typed in your form. A value you leave out keeps what the connection holds; an empty one clears it.

    POST /UserAgent/ConnectorConnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "gitbook",
      "values": {
        "token": "YOUR_SECRET"
      }
    }
    Response
    {
      "result": true,
      "errors": [],
      "status": "connected",
      "applied": 1,
      "restart": "scheduled"
    }
  3. 03

    Read the status

    connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.

    POST /UserAgent/ConnectorList
    {
      "useragentguid": "YOUR_AGENT_GUID"
    }
    Response
    {
      "result": true,
      "errors": [],
      "useragentconnectors": [
        {
          "slug": "gitbook",
          "title": "GitBook",
          "authtype": "headers",
          "status": "connected",
          "accounts": {},
          "savedvariables": [
            "token"
          ],
          "lasterror": null
        }
      ]
    }
  4. 04

    Disconnect

    Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.

    POST /UserAgent/ConnectorDisconnect
    {
      "useragentguid": "YOUR_AGENT_GUID",
      "slug": "gitbook"
    }
    Response
    {
      "result": true,
      "errors": [],
      "removed": true,
      "revoked": false,
      "restart": "scheduled"
    }
API Reference

Questions

GitBook and Wiro FAQ

What can a GitBook AI agent do in my docs?

It works through GitBook's own MCP server, so it can list your organizations and sites, read a site's page tree and its pages, open change requests, draft new pages and edit, move or rename existing ones inside them, set up a new site, and share a change request's preview link for review. The full list of GitBook actions appears after the first connection, each with its own Allow, Ask or Block setting.

How do I connect GitBook to an AI agent?

Sign in to GitBook with the account the agent should act as, open Developer tools in your account settings, click Create new API token, give it a label and an expiration, and copy the token, which usually starts with gb_api_. Then choose GitBook on the agent's Connectors tab and paste it, or ask the agent in Chat to add GitBook.

Is this the official GitBook MCP server?

Yes. The connector uses the MCP server GitBook runs itself, and your agent sends each request straight to it, so there is nothing to install or host. The connector adds what sits around it: your token stays encrypted, and the permissions you set on the Connectors tab decide which GitBook actions run, ask first or stay blocked.

Can the agent change my live GitBook docs without review?

Ask it to work in a change request and nothing reaches your published docs until that change request is merged. On top of that, GitBook actions that create, change or delete something ask for approval in Chat by default, while Scheduled Tasks run them unless you set them to Ask or Block. Every action can be set to Allow, Ask or Block, separately for Chat and for Scheduled Tasks.

Which GitBook spaces can the agent reach?

The same ones as the GitBook account that created the token, in every organization that account belongs to. To keep the agent to a few spaces, create the token from a GitBook account that only has access to those spaces, with the role it needs there.

Where is my GitBook token stored, and how do I revoke it?

The token is encrypted at rest and kept away from the AI model. To revoke it, open Developer tools in your GitBook account settings, go to the API Access Tokens tab and click Delete next to it, then disconnect GitBook on the Connectors tab. A token also stops working on the expiration date you chose, until you save a new one.

What does connecting GitBook cost, and what limits apply?

Connecting GitBook adds nothing to your agent plan. GitBook sets no plan-based quota on its MCP server, the Free plan included, but its API limit of 5,000 requests an hour per token applies, and one agent action can make several requests. Features your GitBook plan does not include are refused by GitBook.

Access

Revoke GitBook access

In GitBook, open Developer tools in your account settings (app.gitbook.com/account/developer), go to the API Access Tokens tab and click Delete next to the token. Then disconnect it here.

Related connectors

More content connectors for your Wiro agent

HackMD logo

HackMD

Create, read and edit notes in HackMD.

beehiiv logobeehiiv logo

beehiiv

Newsletter posts and subscribers on beehiiv.

Blogger logoBlogger logo

Blogger

Write, schedule and publish posts on your Blogger blogs.

dev.to logodev.to logo

dev.to

List, draft, publish and edit articles on dev.to.

Hashnode logoHashnode logo

Hashnode

Draft and publish posts on your Hashnode publication.

Qiita logo

Qiita

Draft and publish articles on Qiita.

Put GitBook to work with Wiro

Deploy an agent and connect GitBook from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.

Build an AgentAll Connectors

Discover, test, and run AI models, build workflows and agents with one unified API.

All systems operational
WiroModelsAgentsMCP ServerLLM GatewayBrowser ExtensionIntegrationsConnectorsPricingAboutBlogCareersContactPartnerChangelogStatusFAQ
CategoriesText to ImageImage to ImageImage EditingImage to TextText to VideoImage to VideoVideo to VideoText to SpeechSpeech to TextSpeech to SpeechVoice CloneRealtime ConversationMusic GenerationLLMUtilities
ModelsNano Banana 2GPT Image 2.5Seedream V5 ProSeedance 2.5Veo 3.1Kling V3FLUX 3FLUX.2 ProWan 3.0 PrimeGrok Imagine 1.5
PartnersGoogleOpenAIByteDanceBlack Forest LabsKling AIQwenAlibabaxAIMiniMaxElevenLabs
Getting StartedWiro ModelsWiro EffectsIntroductionAuthenticationProjectsCode ExamplesWiro MCP ServerSelf-Hosted MCPn8n IntegrationLLMs.txt
API ReferenceModelsRun a ModelModel ParametersTasksLLM & Chat StreamingWebSocketRealtime VoiceFiles
© 2026 Wiro AI. All rights reserved.
PrivacyTermsData Deletion