productivity
GitBook MCP, CLI, and Lua Integration for AI Agents
GitBook integration docs for AI agents: MCP gateway setup, GitBook CLI commands, Lua API reference, credentials, and function schemas.GitBook for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
gitbook.gitbook_list_organizations | Read read | 0 | List organizations visible to the token. |
gitbook.gitbook_get_organization | Read read | 0 | Get one GitBook organization. |
gitbook.gitbook_search_organization | Read read | 0 | Search across an organization. |
gitbook.gitbook_list_spaces | Read read | 0 | List spaces in an organization. |
gitbook.gitbook_get_space | Read read | 0 | Get one GitBook space. |
gitbook.gitbook_search_space | Read read | 0 | Search content in a GitBook space. |
gitbook.gitbook_get_space_content | Read read | 0 | Get the current content revision for a space. |
gitbook.gitbook_list_pages | Read read | 0 | List pages in a space content revision. |
gitbook.gitbook_get_page | Read read | 0 | Get one page by ID. |
gitbook.gitbook_get_page_by_path | Read read | 0 | Get one page by path. |
gitbook.gitbook_list_files | Read read | 0 | List files in a space. |
gitbook.gitbook_get_file | Read read | 0 | Get one file by ID. |
gitbook.gitbook_list_openapi_specs | Read read | 0 | List OpenAPI specs in a space. |