← Back to directory
B

BookStack MCP Server

Community
Manage BookStack knowledge bases through MCP.
Category
Collaboration #42 of 83
Stars
★ 106 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Bun 1.1.0+
Credentials
API key / credential required
License
MIT
Last commit
52FMRS · D

The README describes MCP access to a supported subset of the BookStack API, two transport modes, and a broad set of management tools. It also identifies API areas that are not exposed. Check credential scope and protect the inbound HTTP token before use.

Strongest · Documentation 16/20 Weakest · Maintenance 7/20

Reliability
8/20
Security and permissions
8/20
Maintenance
7/20
Documentation
16/20
Setup experience
13/20
Why each score
Reliability 8/20
The README describes HTTP and stdio transports, an initialization call, health checks, error statuses, and 59 tools plus 11 resources. It also mentions test and type-check commands. These are README claims; there is no verifiable CI, committed test coverage, or execution evidence here, so the handshake and tool behavior remain unconfirmed and the static-review cap applies.
Security and permissions 8/20
HTTP mode requires a separate inbound bearer secret, and the README distinguishes it from the outbound BookStack credential. It also discloses per-request credential overrides and the tools' authority. However, the tools include permanent deletion and user and role operations, with no evidence of confirmation before invocation or fine-grained authorization, so safeguards for permissions and dangerous side effects are incomplete.
Maintenance 7/20
The object lists an MIT license, an unarchived status, and 5 open issues, but provides no evidence about commits, releases, dependency updates, issue responses, or a security-response channel. This limited information does not establish sustained maintenance.
Documentation 16/20
The README provides substantial configuration, endpoint, authentication, health-check, Docker, and stdio guidance. It also identifies some unsupported API areas and documents page-editing and concurrency limitations. Points are deducted because detailed tool parameters and other guides are only linked, not provided for review, and cost and maintenance-response practices are not documented in the supplied material.
Setup experience 13/20
The README specifies the Bun version, environment variables, HTTP startup, a Claude Code stdio example, Docker Compose steps, and troubleshooting guidance. Setup still requires preparing Bun, a BookStack instance, and API credentials; the supplied material contains no verified platform compatibility or end-to-end execution evidence.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account data

Best for

  • Teams that want BookStack content management available to an MCP client.
  • Users who can provide and manage BookStack API credentials and understand that calls run with that account's permissions.

Not for

  • Users who need tools for comments, imports, tag-name listings, image-gallery data endpoints, or zip export; the README says these are not exposed.
  • Situations that cannot allow writes, user management, or permanent deletion within the connected BookStack account's permissions.

Required permissions

  • Requires a BookStack API token; the server calls BookStack using that token's permissions.
  • In HTTP mode, clients calling POST /message must provide the MCP_AUTH_TOKEN as a Bearer credential. Stdio mode does not require this inbound network credential.

Risks and side effects

  • The tools include write operations, user and role management, and permanent-delete operations; their effective access depends on the BookStack account.
  • In HTTP mode, /message dispatches all tools and requires protection of MCP_AUTH_TOKEN; the README says the root and health endpoints are unauthenticated.
  • Partial page edits write back to BookStack and create a revision. The page API has no atomic version condition, so a concurrent change can still occur after the preflight check.
  • The Docker Compose initial credentials and temporary APP_KEY described in the README are for local testing and should not be reused as-is elsewhere.

Setup

Before you start

Runtime:Bun 1.1.0+

BOOKSTACK_BASE_URL required Full BookStack API URL; it must end in /api.
BOOKSTACK_API_TOKEN requiredsecret BookStack API credential in token_id:token_secret format; create it under API Tokens in your BookStack profile.
MCP_AUTH_TOKEN requiredsecret Required inbound bearer secret for HTTP; generate your own and keep it different from BOOKSTACK_API_TOKEN. Ignored in stdio mode.
Other optional settings (14)
MCP_TRANSPORT optional Transport mode; set to stdio for local client integration, otherwise HTTP is used.
BOOKSTACK_TIMEOUT optional Timeout in milliseconds for requests to BookStack.
SERVER_PORT optional Port for the HTTP transport to listen on; ignored in stdio mode.
HTTP_BODY_LIMIT optional Maximum request body size in bytes for POST /message.
SERVER_NAME optional Server name reported over MCP and in server information.
SERVER_VERSION optional Version reported over MCP and in server information; defaults to the package version.
RATE_LIMIT_REQUESTS_PER_MINUTE optional Per-minute outbound request limit to BookStack.
RATE_LIMIT_BURST_LIMIT optional Outbound burst allowance for requests to BookStack.
VALIDATION_ENABLED optional Whether input validation is enabled.
VALIDATION_STRICT_MODE optional Whether invalid parameters are rejected; when disabled, warnings are logged and parameters are forwarded to BookStack.
LOG_LEVEL optional Logging level: error, warn, info, or debug.
LOG_FORMAT optional Log format: json or pretty.
NODE_ENV optional Runtime environment: development, production, or test.
DEBUG optional Set to true to enable debug output.

Requires Bun 1.1.0 or newer; the README says Node.js is not supported. Set BOOKSTACK_BASE_URL, including the /api suffix, and BOOKSTACK_API_TOKEN in token_id:token_secret format. Set MCP_TRANSPORT=stdio for a local Claude Desktop connection. HTTP mode also requires a separate MCP_AUTH_TOKEN.

claude_desktop_config.json
{"mcpServers":{"bookstack":{"command":"bunx","args":["bookstack-mcp-server"],"env":{"BOOKSTACK_BASE_URL":"https://your-bookstack.com/api","BOOKSTACK_API_TOKEN":"token_id:token_secret","MCP_TRANSPORT":"stdio"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "bookstack": {
      "command": "bunx",
      "args": [
        "bookstack-mcp-server"
      ],
      "env": {
        "BOOKSTACK_BASE_URL": "https://your-bookstack.com/api",
        "BOOKSTACK_API_TOKEN": "token_id:token_secret",
        "MCP_TRANSPORT": "stdio"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.bookstack]
command = "bunx"
args = ["bookstack-mcp-server"]

[mcp_servers.bookstack.env]
BOOKSTACK_BASE_URL = "https://your-bookstack.com/api"
BOOKSTACK_API_TOKEN = "token_id:token_secret"
MCP_TRANSPORT = "stdio"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add bookstack -e BOOKSTACK_BASE_URL=https://your-bookstack.com/api -e BOOKSTACK_API_TOKEN=token_id:token_secret -e MCP_TRANSPORT=stdio -- bunx bookstack-mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm BookStack tools appear in your client’s tool list. Then ask it to list books and check that the server returns results from BookStack.

Troubleshooting

  1. Confirm Bun 1.1.0 or newer is installed and that Bun, rather than Node.js, runs the server.
  2. If HTTP startup fails, check that BOOKSTACK_API_TOKEN and MCP_AUTH_TOKEN are set; they serve different purposes and must not match.
  3. If GET /health returns 503, check the BookStack URL, API token, and connectivity. If a required token is absent, the process may exit before listening.
  4. For HTTP clients, use POST /message and provide Authorization: Bearer, Content-Type, and Accept headers.
  5. When running stdio in Docker, attach stdin with -i and avoid allocating a TTY.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the 10 most recently updated books.
  • Search for content about API documentation.
  • Create a book named “Getting Started.”

Use cases

Search BookStack content and inspect knowledge base entries.
Create, update, export, and organize books, pages, chapters, and shelves.
Manage users, roles, permissions, attachments, images, and recycled content.
Make targeted page edits using outlines, excerpt reads, and literal find-and-replace.

Supported clients

Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

BookStack MCP Server exposes a supported subset of the BookStack API to Claude and other AI assistants. It covers books, pages, chapters, shelves, search, users, roles, permissions, attachments, images, the recycle bin, audit log, and system information. The README reports 59 tools and 11 resources.

Similar servers

Source revision ae27f476f08e Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/bookstack-mcp-server.svg)](https://followmcp.com/en/servers/bookstack-mcp-server)