@h4sht/bookstack-mcp
Click on "Deploy 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., "@@h4sht/bookstack-mcpCreate a new page in book 1 about using MCP with BookStack."
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.
@h4sht/bookstack-mcp
π Claude Code
claude mcp add bookstack -- npx github:h4sht/bookstack-mcpClaude Code will prompt you for:
BOOKSTACK_BASE_URLβ your BookStack API URL (e.g.https://wiki.example.com/api)BOOKSTACK_API_TOKENβ your API token (token_id:token_secret)
Or pass them directly:
claude mcp add bookstack \
--env BOOKSTACK_BASE_URL=https://wiki.example.com/api \
--env BOOKSTACK_API_TOKEN=token_id:token_secret \
-- npx github:h4sht/bookstack-mcpThen use /mcp inside Claude Code to verify it's connected β
Related MCP server: BookStack MCP Server
π οΈ What you get (25 tools)
Category | Tools |
π Books (6) | list, get, create, update, delete, export |
π Chapters (6) | list, get, create, update, delete, export |
π Pages (6) | list, get, create, update, delete, export |
π Shelves (5) | list, get, create, update, delete |
π Search (1) | search across all content |
βοΈ System (1) | instance info |
All export_* tools support markdown, html, pdf, plaintext.
βοΈ Markdown-powered
BookStack stores pages as HTML but accepts Markdown input through its API. This means Claude can create and edit wiki pages in its native format:
"Create a page about async Python in book 3"
β bookstack_create_page({
book_id: 3,
name: "Async Python Guide",
markdown: "# Async Python\n\n`asyncio` is Python's standard library..."
})Pages are also exported as Markdown, so Claude can read, analyze, and improve existing content.
π¦ Setup for other AI assistants
OpenAI Codex
codex mcp add bookstack \
--env BOOKSTACK_BASE_URL=https://wiki.example.com/api \
--env BOOKSTACK_API_TOKEN=id:secret \
-- npx github:h4sht/bookstack-mcpOr add this to ~/.codex/config.toml:
[mcp_servers.bookstack]
command = "npx"
args = ["github:h4sht/bookstack-mcp"]
[mcp_servers.bookstack.env]
BOOKSTACK_BASE_URL = "https://wiki.example.com/api"
BOOKSTACK_API_TOKEN = "id:secret"Verify with: codex mcp list
OpenCode
opencode mcp add
# Select "local", then enter: npx github:h4sht/bookstack-mcpOr add to opencode.json:
{
"mcp": {
"bookstack": {
"type": "local",
"command": ["npx", "github:h4sht/bookstack-mcp"],
"enabled": true,
"environment": {
"BOOKSTACK_BASE_URL": "https://wiki.example.com/api",
"BOOKSTACK_API_TOKEN": "id:secret"
}
}
}
}Cline (VS Code)
Add to Cline MCP settings file:
{
"mcpServers": {
"bookstack": {
"command": "npx",
"args": ["github:h4sht/bookstack-mcp"],
"env": {
"BOOKSTACK_BASE_URL": "https://wiki.example.com/api",
"BOOKSTACK_API_TOKEN": "id:secret"
}
}
}
}Any MCP-compatible assistant (stdio)
The server command is always the same:
npx github:h4sht/bookstack-mcpSet BOOKSTACK_BASE_URL and BOOKSTACK_API_TOKEN as environment variables.
π§ Config reference
Variable | Required | Description |
| Yes | Full URL including |
| Yes | Format: |
| No | Request timeout ms (default: |
π Security
4 auditable files β read the whole source in 10 minutes
One dependency β only
@modelcontextprotocol/sdk(official Anthropic)Native fetch() β no HTTP libraries, no hidden requests
Stdio only β no open ports, no network surface
Zero telemetry β no analytics, no tracking, no calls home
Stderr logging β never writes to stdout (MCP protocol integrity)
π§ͺ Tests
npm test # 32 tests, all passing β
π Structure
@h4sht/bookstack-mcp/
βββ src/
β βββ index.ts # MCP server, stdio transport, config
β βββ client.ts # BookStack REST client (native fetch)
β βββ tools.ts # 25 MCP tool definitions + handlers
β βββ types.ts # TypeScript types
βββ dist/ # Compiled JS (ready to run)
βββ tests/ # 32 unit + integration tests
βββ package.json
βββ README.mdπ License
MIT Β© h4sht
This server cannot be deployed
Maintenance
Related MCP Connectors
Publish, update, list, and delete Markdown pages on Booklet directly from your AI assistant.
Markdown workspace for AI agents: read, write, organize, and share markdown documents.
Enable Large Language Model clients to interact seamlessly with any MediaWiki wiki. Perform actionβ¦
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables interaction with BookStack knowledge management systems through the BookStack API. Supports searching, reading, creating, and updating documentation content with secure authentication and dual transport modes for flexible deployment.17252 npm37MIT
- AlicenseBqualityDmaintenanceEnables AI models to interact with BookStack wiki instances through a comprehensive API interface. Supports content management (books, chapters, pages), user administration, search functionality, and content export in multiple formats.416 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage BookStack documentation through natural language, supporting content browsing, search, and CRUD operations for books, chapters, and pages.-
- AlicenseBqualityAmaintenanceConnects BookStack knowledge bases to Claude through 47+ tools covering complete CRUD operations for books, pages, chapters, shelves, users, search, attachments, and permissions. Enables full management of BookStack content and configuration through natural language.56215 npm91MIT