bookstack-mcp
Provides read-only access to a BookStack instance, allowing listing and retrieval of shelves, books, chapters, and pages, as well as searching knowledge content.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bookstack-mcpsearch for 'PDF export' guide"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BookStack BTD MCP adapter
Read-only local stdio MCP adapter for the BookStack REST API. This project is deliberately separate from the BookStack deployment repository and does not open an HTTP port.
Hermes
→ local stdio subprocess: bookstack-mcp
→ BookStack REST API with Token authentication
→ BookStack BTD pilot / final UGM subpathSecurity model
Use a dedicated BookStack user:
hermes-btd, never an Admin account.Grant it read access only to the intended
Publikand specificTerbatascontent.Do not grant
Rahasia / Privataccess.Create an API token from that account and store its ID and secret only in local
.env.This adapter registers no create, update, delete, user, role, permission, attachment, export, audit-log, or token-management tools.
BookStack access permissions are the source-of-truth security boundary. MCP tool scope is defense in depth.
Related MCP server: RT MCP Server
Available MCP tools
list_shelves / get_shelf
list_books / get_book
list_chapters / get_chapter
list_pages / get_page
search_knowledgeBookStack's official REST API does not expose a References/backlinks endpoint. The adapter intentionally does not claim a get_references tool.
Setup after BookStack is deployed
Ensure the Hermes runtime can reach BookStack. A private NUC LAN IP must be reachable from the machine running Hermes; browser access elsewhere is not enough.
In BookStack, create
hermes-btdas a non-admin local user.Apply Shelf/Book permissions first, then enable the user permission Access system API.
While logged in as
hermes-btd, create a named, expiry-bounded API token. Copy its ID and secret once into local.env.Create a project-local environment and install the MCP SDK:
cd /Users/wayeien/Documents/bookstack-mcp
python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -r requirements.txt
cp .env.example .env
chmod 600 .envEdit only the local
.env. Use the exact canonical base URL without trailing slash:
# Current LAN pilot: first establish a Mac → NUC SSH tunnel:
# ssh -N -L 127.0.0.1:18603:10.14.7.239:8603 magangbtd@10.14.7.239
# Then keep the API token on the Mac and send it only through that tunnel.
BOOKSTACK_URL=http://127.0.0.1:18603/bookstack
# Later UGM HTTPS example
# BOOKSTACK_URL=https://<host-UGM>/bookstackRun local tests before any live probe:
.venv/bin/python -m unittest discover -s tests -vOnce network reachability and a least-privilege API token are verified, register with Hermes:
hermes mcp add bookstack-btd \
--command /Users/wayeien/Documents/bookstack-mcp/.venv/bin/python \
--args /Users/wayeien/Documents/bookstack-mcp/run_bookstack_mcp.py
hermes mcp test bookstack-btdApprove only the displayed read-only tools during registration. Start a new Hermes session after successful registration.
Tests
Tests mock the BookStack API and verify:
canonical base URL and UGM subpath preservation;
BookStack
Authorization: Token <id>:<secret>header format;URL encoding/search pagination;
JSON error payload handling;
environment placeholder rejection;
read-only MCP tool delegation.
They do not prove LAN/API reachability or actual BookStack account permissions. Those require a deployed BookStack instance and hermes-btd token.
Source contract
Implemented against BookStack v26.05.3 API routes (/api/shelves, /books, /chapters, /pages, /search) and token format defined in the upstream source. No direct database access is used.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceA read-only MCP server for OpenObserve Community Edition that works over the REST API. Provides tools for searching logs, traces, stream schemas, and dashboards - no Enterprise license required.Last updated816GPL 3.0
- Alicense-qualityBmaintenanceRead-only MCP server for Request Tracker (RT) via REST2 API, enabling ticket search, retrieval, correspondence viewing, attachment download, and hierarchy exploration.Last updated321MIT
- Alicense-qualityCmaintenanceRead-only MCP server for self-hosted Confluence that lets AI agents search pages, fetch content, and navigate page trees via the REST API.Last updated25MIT
- AlicenseAqualityAmaintenanceRead-only MCP server for precise lookup, search, and versioned retrieval of OWASP testing guides (WSTG, MASTG, ISTG, AITG) with full provenance on every result.Last updated11Apache 2.0
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Wikimedia REST API v1 MCP.
Confluence MCP — wraps the Confluence Cloud REST API v2 (OAuth)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/weyennn/mcp-bookstack'
If you have feedback or need assistance with the MCP directory API, please join our Discord server