Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>BookStack MCP ServerNew to Visual Studio Code? Get it now.
BookStack MCP Server

BookStack MCP Server

MarkZither

|
16 installs
| (0) | Free
MCP server for BookStack — gives AI assistants (GitHub Copilot, Claude) access to your BookStack knowledge base.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

BookStack MCP Server

AI-powered access to your BookStack knowledge base — for GitHub Copilot, Claude, and any MCP-compatible AI assistant.

VS Code Marketplace Downloads

What It Does

The BookStack MCP Server extension registers a Model Context Protocol server that gives your AI assistant direct access to your BookStack instance. Ask Copilot to search pages, list books, read chapters, create content, manage users, and more — all without leaving your editor.

Prerequisites

  • VS Code 1.99 or later with GitHub Copilot (or another MCP-compatible AI assistant)
  • A BookStack instance (self-hosted) or use the public demo at https://demo.bookstackapp.com/
  • A BookStack API token (generated in BookStack → Settings → API Tokens)
  • No .NET installation required — the server binary is bundled inside the extension

Quick Start

  1. Install this extension from the VS Code Marketplace
  2. Open Settings (Ctrl+,) and search for bookstack
  3. Set BookStack: URL — e.g. https://demo.bookstackapp.com/ or your self-hosted URL
  4. Set BookStack: Token Id and BookStack: Token Secret from your BookStack API token
  5. Open GitHub Copilot Chat and try: List all books in BookStack

Demo: Use https://demo.bookstackapp.com/ to try without a self-hosted instance. Log in, create an API token under your profile, and use those credentials above.

Configuration

Setting Description
bookstack.url Full URL of your BookStack instance, e.g. https://demo.bookstackapp.com/
bookstack.tokenId API token ID from BookStack → Settings → API Tokens
bookstack.tokenSecret API token secret for the token ID above
bookstack.scopedBooks Array of book IDs or slugs to restrict the server to specific books. Leave empty for no restriction.
bookstack.scopedShelves Array of shelf IDs or slugs to restrict the server to specific shelves. Leave empty for no restriction.

Scoped Access

Use bookstack.scopedBooks and bookstack.scopedShelves to limit which content the AI assistant can see and modify. Useful when you have a large BookStack instance and want to focus the AI on a specific project or team area.

// .vscode/settings.json — restrict to one shelf and two books
{
  "bookstack.scopedShelves": ["engineering"],
  "bookstack.scopedBooks": ["architecture-decisions", "runbooks"]
}

Supported Platforms

Platform Status
Windows (x64) ✅ Supported
Linux (x64) ✅ Supported
macOS 🔜 Planned

Available Tools

Once configured, your AI assistant has access to the full BookStack API:

Content

Category Operations
Books list, create, read, update, delete, export
Chapters list, create, read, update, delete
Pages list, create, read, update, delete, export
Shelves list, create, read, update, delete

Search

Tool Description
Search Full-text search across all BookStack content
Semantic Search Natural language vector search across pages using AI embeddings (requires vector search enabled on the server — see Docker / Server docs)

Administration

Category Operations
Users list, create, read, update, delete
Roles list, create, read, update, delete
Attachments list, create, read, update, delete
Images list, read, update, delete
Permissions read and update content-level permissions
Audit Logs list audit log entries
Recycle Bin list, restore, and permanently delete items
Server Info read server version and instance information

Troubleshooting

Check the Output panel → select BookStack MCP Server for activation logs. For MCP protocol logs, check Output → MCP.

Symptom Fix
Warning: settings required Set bookstack.url, bookstack.tokenId, and bookstack.tokenSecret in Settings
401 Unauthorized Check token ID and secret are correct and not swapped
URL not found Ensure URL ends with / and points to your BookStack root
Platform not supported macOS support is planned — see #15
Semantic search returns no results Vector search is disabled by default; see server-side configuration

Log Levels

The server logs at Information level by default. To enable Debug logging, set the following environment variable before VS Code launches the server:

Logging__LogLevel__BookStack.Mcp.Server=Debug

On Linux, add it to your shell profile (e.g. ~/.bashrc) or set it in .vscode/settings.json:

"terminal.integrated.env.linux": {
    "Logging__LogLevel__BookStack.Mcp.Server": "Debug"
}
Environment variable Effect
Logging__LogLevel__BookStack.Mcp.Server=Debug All server logs
Logging__LogLevel__BookStack.Mcp.Server.Api=Debug API client only
Logging__LogLevel__Microsoft=Warning Suppress framework noise

Privacy

This extension sends requests only to the BookStack instance URL you configure. No data is collected by the extension author. Your API token is stored in VS Code settings on your local machine.

Contributing / Bug Reports

  • GitHub Issues
  • Source code
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft