Skip to content
← Connectors Directory

Command · Knowledge & Docs

GitBook

Import pages from GitBook spaces, plus an MCP server so agents can browse spaces and read page content.

ImportMCP serverAuth: Personal access token

How it works

GitBook is a token-based import connector. Command calls the GitBook API with a personal access token, pulls the pages of the spaces you select, converts them to Markdown, and indexes them into your project's vector store.

01

Before you start

  • A GitBook organization you are a member of
  • Permission to create a personal access token in GitBook
  • A raia Command project with a destination folder
02

What you need to make the connection

FieldWhere to get it
Personal access tokenGitBook → click your avatar → Settings → Developer → Access tokens → Create token. Starts with gb_api_. Copy it immediately — GitBook shows it once.
Organization / spaceSelected from a dropdown in raia Command after the token validates — no manual ID needed.

Recommended practice: keep credentials private. If one is exposed, revoke or rotate it with the provider before reconnecting.

03

Setup steps

  1. 01

    Create the personal access token in GitBook and copy it.

  2. 02

    In raia Command, click Connectors in the left sidebar, open the connector, and click its connect button (Add connection on most connectors).

    The GitBook connector page in raia Command (Connectors → GitBook) — review Setup instructions before connecting.
    1. Highlight 1: The Setup & Import (or Setup) and Agent Access (MCP) tabs
    2. Highlight 2: Setup instructions — the provider runbook. Open it for what to configure in the third-party service first.
    3. Highlight 3: Paste the key in the field, then click Connect.
  3. 03

    Paste the token and save. Command validates it and lists your organizations.

  4. 04

    Pick the spaces to import and the destination project folder.

  5. 05

    Choose the destination project folder, run the first import, then set a sync schedule. Review Sync History for recorded runs and errors; a saved connection does not prove an import succeeded.

04

Good to know

  • The token inherits your GitBook permissions — it can only read spaces your account can read.
  • Rotate the token in GitBook and re-paste it in Command if it is ever exposed.
05

Next steps

Other Knowledge & Docs connectors