BookStack MCP
Allows interacting with a BookStack instance's API to search and manage shelves, books, chapters, pages, images, attachments, and permissions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
BookStack MCP
Your knowledge. Your AI. Your infrastructure.
Connect your self-hosted BookStack knowledge base to AI assistants through the Model Context Protocol.
Quick start · Documentation · Changelog · Releases · Report an issue
Bring your documentation into the AI workflow
Find answers in your existing knowledge base, write and maintain documentation, and work with images and attachments — from an MCP-compatible assistant such as ChatGPT or Claude.
Capability | What it means for your team |
Natural-language discovery | Find relevant pages using optional hybrid semantic and keyword search, even when you do not know the exact wording. |
Documentation workflows | Create, edit, organize and export knowledge-base content directly through MCP tools. |
Individual access | Connect using per-user BookStack credentials and OAuth, with access checks on search results. |
Local embeddings | Run semantic indexing with local ONNX models; external embedding providers are optional. |
Flexible self-hosting | Choose SQLite or PostgreSQL with pgvector, and deploy using Docker on amd64 or arm64. |
Example requests
Find the procedure for restoring access when an employee forgets their password.
Create an onboarding guide in our IT documentation book.
Summarize the relevant maintenance procedures and link to their source pages.
Update this page with a new section and an image hosted at an accessible public URL.
Related MCP server: laravel-simple-rag
How it works
flowchart LR
A[AI assistant] -->|MCP / OAuth| B[BookStack MCP]
B -->|User-scoped API| C[BookStack]
B --> D[(SQLite or PostgreSQL)]
B -->|Query embeddings| E[Embedder]
F[Index worker] --> C
F --> D
E --> DSemantic search is optional. Local embedding inference can run without an external embedding API. If you connect a cloud AI assistant, the content returned to that assistant is subject to its own data handling policies.
Built in Rust with Tokio and Axum as a Cargo workspace with pluggable database backends.
Features
59 core tools for search, shelves, books, chapters, pages, images, attachments, permissions and more.
Optional semantic search: local or external embeddings, hybrid retrieval and optional cross-encoder reranking.
Multi-user OAuth 2.1: individual API credentials, encrypted token storage and access checks on semantic results.
Self-hosted: SQLite or PostgreSQL with pgvector; Docker images for amd64 and arm64.
MCP transports: SSE and Streamable HTTP.
See the complete feature and architecture reference.
Setup
Prerequisites
A BookStack instance with API access enabled
A BookStack API token (created in your BookStack user profile under "API Tokens")
Docker and Docker Compose (for container deployment)
Quick Start (PostgreSQL — recommended)
cp .env.example .env
# Edit .env with your BookStack URL, encryption key, and database password
docker compose -f docker/docker-compose.yml up -dThis starts four containers:
bsmcp-postgres — PostgreSQL 17 with pgvector extension
bsmcp-server — MCP server (port 8080)
bsmcp-embedder — Background embedding service (
--role=embedder, default); also serves/rerankwhen a reranker is configuredbsmcp-worker — Reconciliation worker (same image as the embedder, started with
--role=worker): initial walk on cold start, webhook + cron job consumption, periodic delta walk
Quick Start (SQLite — simple)
cp .env.example .env
# Edit .env with your BookStack URL and encryption key
docker compose -f docker/docker-compose.sqlite.yml up -dThis starts three containers (server + embedder + worker) sharing a SQLite database file.
For full setup and connection instructions, see Installation and Configuration. Use a reachable HTTPS endpoint and keep credentials private. Review image tags before deployment.
Documentation
Guide | Contents |
Deployment, native binaries, client connection | |
Environment variables, semantic search and providers | |
Tool catalog, API endpoints, search and uploads | |
Features and components | |
Upgrade steps and historical breaking changes | |
Version history and changes | |
Security policy and reporting | |
Build, tests and contribution workflow |
Releases and packages
Current development version: 0.14.2. No versioned GitHub Release has been published yet. See build status for the rolling development stream.
GitHub Releases — versioned releases and native server archives when published.
Server container and embedder container — GHCR images.
The rolling
:devimages track development onmain; versioned images and:latestare published by the release workflow. Check availability before selecting a tag. The current workspace version is not necessarily a published release.
Development
See DEVELOPMENT.md for build instructions, branching model, CI/CD (artifact-before-merge), versioning, and the workflow for adding new tools.
Support the project
If BookStack MCP helps you get more out of your knowledge base, consider supporting its continued development on Ko-fi. Contributions are entirely optional — starring the repository, reporting issues and sharing feedback are also great ways to help.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTransforms Markdown documentation into an intelligent knowledge base with AI-powered search and Q\&A through an MCP server.9MIT
- AlicenseNot gradedqualityDmaintenanceSelf-hosted knowledge manager and MCP server that lets you organize snippets, questions, and documents via a web UI and exposes them to AI assistants for reading and writing.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server for team documentation and knowledge bases, enabling semantic search over documentation files using local embeddings.MIT
- FlicenseNot gradedqualityBmaintenanceMCP server for a content-first knowledge base, enabling AI agents to search (full-text, semantic, hybrid) and retrieve Markdown documents, list content, and find related docs.-