Content & Files

GitBook MCP

Browse GitBook sites and pages, open and merge change requests, and run any GitBook API operation through GitBook's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Describe operation

    Describes one GitBook API operation found via search: its path/query parameters and request-body JSON Schema, so you can build params for invoke_operation. Read-only.

  • Get page

    Returns a page from the space's main content as markdown plus its id, title and path. Look the page up by pageId or by path. For editing a change request, use get_usage_guide with topic editing for reading its content and using the optional concurrency guard. Links to other pages and files are stable references such as `/pages/<pageId>` or `/files/<fileId>`; keep them as they are when writing the content back. Find a space with get_site_structure; to list that space's pages, use the operation surface — invoke_operation getSpaceById to read its `revision`, then getRevisionById to get the revision's pages.

  • Get schema definition

    Returns the JSON Schema of a type that a tool's input schema leaves out, such as a document block, along with the types it contains. Call it when a schema says to, before building that part of the input. Any type still left out is named, so you can expand it in turn. For worked examples of document content, see get_usage_guide("editing").

  • Get site structure

    Returns a site's navigation structure: its sections, groups, external links (with destination URLs), and published spaces, with the paths and ids needed to read content. Pass the organization id (the same one used with list_sites) and the site id. Use it to map a site before reading or editing. Find a site first with list_sites; read page content with get_page.

  • Get subscription information

    Returns a GitBook organization's subscription: whether it is on a trial, the free plan or a paid plan, when an active trial ends and how many days are left, and where to upgrade. Use it to answer questions such as "What plan am I on?", "How long is left on my trial?" or "How do I upgrade?", and before relying on features that need a paid site plan (sections, advanced customization, custom domains). Give the user upgradeUrl only when canManageBilling is true; otherwise, tell them an administrator of the organization has to upgrade, and share pricingUrl to compare plans.

  • Get usage guide

    Returns procedural guidance for working with GitBook through this server (content model and step-by-step recipes). Call it when unsure how to orient, read, or edit content. Omit topic to list available topics.

  • List sites

    Lists the published sites in a GitBook organization, the usual entry point for orientation. Returns each site's title, visibility, hostname and id. To reach site content, use this first to find a site, then get_site_structure to see the spaces (where content lives) within it. Not for listing a site's content directly (use get_site_structure).

  • List site topics

    Lists the topics and subtopics a site's content and visitor questions are organised under, ranked by how many Ask AI questions they drew over the range, with each one's answered rate, open findings and id. Use it to find which topics visitors ask about most or struggle with, to resolve a topic by name, or to discover a topic id before filtering Ask AI questions, answers or stats by topic (the `topic` parameter of getSiteQuestionStats, listSiteQuestions and listSiteQuestionAnswers). Use getSiteTopicById for a single topic's summary.

  • Search

    Searches the GitBook API operations this server can run, returning matches (id, method, path, summary) to run with invoke_operation. Use describe_operation for an operation's inputs. Use it to find operations beyond the curated tools. Read-only.