BookStack (Wiki) MCP Server for Mastra AIGive Mastra AI instant access to 32 tools to Create Attachment, Create Book, Create Chapter, and more
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect BookStack (Wiki) through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.
Ask AI about this MCP Server for Mastra AI
The BookStack (Wiki) MCP Server for Mastra AI is a standout in the Collaboration category — giving your AI agent 32 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";
async function main() {
// Your Vinkius token. get it at cloud.vinkius.com
const mcpClient = await createMCPClient({
servers: {
"bookstack-wiki": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "BookStack (Wiki) Agent",
instructions:
"You help users interact with BookStack (Wiki) " +
"using 32 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with BookStack (Wiki)?"
);
console.log(result.text);
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About BookStack (Wiki) MCP Server
Connect your BookStack instance to any AI agent and turn your documentation into an interactive knowledge base through natural conversation.
Mastra's agent abstraction provides a clean separation between LLM logic and BookStack (Wiki) tool infrastructure. Connect 32 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
What you can do
- Content Hierarchy — List and manage shelves, books, chapters, and pages using
list_shelves,list_books, andlist_pagesto maintain perfect organization. - Smart Search — Find exactly what you need across your entire wiki instance with the powerful
searchtool. - Full Content Lifecycle — Create, update, or delete pages and chapters directly from your agent to keep documentation fresh.
- Multi-format Export — Use
export_pageto retrieve content in PDF, Markdown, HTML, or Plaintext formats for external use. - System Oversight — Monitor your instance with
get_system_status, checklist_audit_logfor recent changes, or manage thelist_recycle_bin. - Attachments — Manage file attachments linked to your documentation using the dedicated attachment tools.
The BookStack (Wiki) MCP Server exposes 32 tools through the Vinkius. Connect it to Mastra AI in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 32 BookStack (Wiki) tools available for Mastra AI
When Mastra AI connects to BookStack (Wiki) through Vinkius, your AI agent gets direct access to every tool listed below — spanning wiki, documentation, knowledge-base, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Create attachment on BookStack (Wiki)
Create a new attachment link
Create book on BookStack (Wiki)
Create a new book
Create chapter on BookStack (Wiki)
Create a new chapter
Create page on BookStack (Wiki)
Requires either book_id or chapter_id, name, and html or markdown. Create a new page in BookStack
Create shelf on BookStack (Wiki)
Create a new shelf
Delete attachment on BookStack (Wiki)
Delete an attachment
Delete book on BookStack (Wiki)
Delete a book
Delete chapter on BookStack (Wiki)
Delete a chapter
Delete page on BookStack (Wiki)
Delete a page (moves to recycle bin)
Delete shelf on BookStack (Wiki)
Delete a shelf
Export book on BookStack (Wiki)
Export book content
Export chapter on BookStack (Wiki)
Export chapter content
Export page on BookStack (Wiki)
Export page content
Get attachment on BookStack (Wiki)
Get details for a specific attachment
Get book on BookStack (Wiki)
Get details for a specific book
Get chapter on BookStack (Wiki)
Get details for a specific chapter
Get page on BookStack (Wiki)
Get details for a specific page
Get shelf on BookStack (Wiki)
Get details for a specific shelf
Get system status on BookStack (Wiki)
Check system version and status
List attachments on BookStack (Wiki)
List all attachments in BookStack
List audit log on BookStack (Wiki)
View system activity audit log
List books on BookStack (Wiki)
List all books in BookStack
List chapters on BookStack (Wiki)
List all chapters in BookStack
List pages on BookStack (Wiki)
Supports pagination, sorting, and filtering. List all pages in BookStack
List recycle bin on BookStack (Wiki)
List deleted items in the recycle bin
List shelves on BookStack (Wiki)
List all shelves in BookStack
Search on BookStack (Wiki)
Search across all content in BookStack
Update attachment on BookStack (Wiki)
Update an existing attachment
Update book on BookStack (Wiki)
Update an existing book
Update chapter on BookStack (Wiki)
Update an existing chapter
Update page on BookStack (Wiki)
Update an existing page
Update shelf on BookStack (Wiki)
Update an existing shelf
Connect BookStack (Wiki) to Mastra AI via MCP
Follow these steps to wire BookStack (Wiki) into Mastra AI. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
npm install @mastra/core @mastra/mcp @ai-sdk/openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.ts and run with npx tsx agent.tsExplore tools
Why Use Mastra AI with the BookStack (Wiki) MCP Server
Mastra AI provides unique advantages when paired with BookStack (Wiki) through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add BookStack (Wiki) without touching business code
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
TypeScript-native: full type inference for every BookStack (Wiki) tool response with IDE autocomplete and compile-time checks
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
BookStack (Wiki) + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the BookStack (Wiki) MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query BookStack (Wiki), process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed BookStack (Wiki) as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query BookStack (Wiki) on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using BookStack (Wiki) tools alongside other MCP servers
Example Prompts for BookStack (Wiki) in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with BookStack (Wiki) immediately.
"Search my BookStack wiki for 'security policy'."
"Create a new page titled 'Onboarding' in book ID 5 with some basic HTML content."
"Export the 'API Reference' page (ID: 88) as a PDF."
Troubleshooting BookStack (Wiki) MCP Server with Mastra AI
Common issues when connecting BookStack (Wiki) to Mastra AI through Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpBookStack (Wiki) + Mastra AI FAQ
Common questions about integrating BookStack (Wiki) MCP Server with Mastra AI.
How does Mastra AI connect to MCP servers?
MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.Can Mastra agents use tools from multiple servers?
Does Mastra support workflow orchestration?
Explore More MCP Servers
View all →
DeepL
9 toolsTranslate and audit text — manage multilingual communication via AI.

Interact Software
10 toolsManage intranet people, content, and groups via Interact Software API.

Stanford bioRxiv
16 toolsSearch and retrieve preprint research papers in biology and life sciences from the bioRxiv open access repository.

Conekta
8 toolsEquip your AI agent to securely manage Latin American payments, view transactions, and track sales using the Conekta API.
