Wiki.js
Integrates with Wiki.js, enabling AI to read and update documentation.
π WikiJS MCP Server
Connect Claude to your Wiki.js documentation!
This tool lets Claude read and update your Wiki.js pages directly. Think of it as giving Claude access to your team's knowledge base - perfect for keeping documentation up-to-date or finding information quickly.
π― What This Does
Once installed, you can ask Claude to:
- π Search your wiki for specific topics
- π Read documentation pages
- βοΈ Update existing pages with new information
- π Create new documentation
- ποΈ Organize pages by moving them around
- ποΈ Delete outdated pages
π Installation Guide
Prerequisites
Before starting, make sure you have:
- β Git installed (Download here)
- β Python 3.8 or newer (Download here)
- β Claude Code installed (Get it here)
- β Access to a Wiki.js site (with an API key - we'll show you how to get one!)
Step 1: Download the Code
Open your terminal (Command Prompt on Windows, Terminal on Mac) and run:
git clone https://github.com/your-username/wikijs-mcp.git
cd wikijs-mcp
π‘ Tip: If you get a "command not found" error, make sure Git is installed!
Step 2: Get Your Wiki.js API Key
- Log into your Wiki.js site as an administrator
- Navigate to Administration (usually in the top menu)
- Click on API Access in the left sidebar
- If the API is disabled, click the toggle to Enable it
- Click "+ New API Key"
- Give it a name like "Claude Integration"
- Select these permissions:
- β Read Pages
- β Write Pages
- β Manage Pages (if you want Claude to create/delete pages)
- Click Create and copy the API key - you'll need it next!
β οΈ Important: Save this key somewhere safe - you won't be able to see it again!
Step 3: Configure Your Connection
-
Create the configuration file:
cp .env.example .env -
Open the
.envfile in any text editor (Notepad, TextEdit, VS Code, etc.) -
Replace the example values with your actual information:
WIKIJS_URL=https://your-wiki-site.com WIKIJS_API_KEY=paste-your-api-key-hereπ Example:
WIKIJS_URL=https://docs.mycompany.com WIKIJS_API_KEY=ey1234567890abcdef...
Step 4: Install Python Dependencies
Run this command to install what the tool needs:
pip install -e .
π‘ Troubleshooting:
- If you get "pip: command not found", try
pip3instead - On Mac, you might need to use
python3 -m pip install -e .
Step 5: Test the Connection
Let's make sure everything works! Run:
python -m wikijs_mcp.server
You should see something like:
WikiJS MCP Server starting...
Connected to Wiki.js at https://your-wiki-site.com
Ready to accept connections!
Press Ctrl+C to stop it.
π Using with Claude Code
The best part - Claude Code will automatically detect this MCP server!
The repository includes a special .mcp.json file that Claude Code reads automatically. Just:
- Open Claude Code in the
wikijs-mcpfolder - Claude will automatically have access to your Wiki.js!
Try These Commands
Once connected, you can ask Claude things like:
"Search my wiki for information about deployment procedures"
"Read the page at /docs/getting-started"
"Update the troubleshooting guide with a new solution for login issues"
"Create a new page at /docs/api/webhooks with webhook documentation"
π§ Manual Configuration (Advanced)
If you're using a different MCP client or need custom settings, here's the configuration:
For Standard Installation
{
"mcpServers": {
"wikijs": {
"command": "python",
"args": ["-m", "wikijs_mcp.server"],
"env": {
"WIKIJS_URL": "https://your-wiki-site.com",
"WIKIJS_API_KEY": "your-api-key"
}
}
}
}
For Docker Users
{
"mcpServers": {
"wikijs": {
"command": "docker",
"args": ["compose", "run", "--rm", "-T", "wikijs-mcp-server", "python3", "-m", "wikijs_mcp.server"],
"cwd": "/path/to/wikijs-mcp"
}
}
}
π Common Issues & Solutions
"Connection refused" or "Cannot connect to Wiki.js"
- β
Check your
WIKIJS_URLdoesn't have a trailing slash - β Make sure your Wiki.js site is accessible from your computer
- β Verify the API is enabled in Wiki.js admin panel
"Authentication failed" or "Invalid API key"
- β Double-check you copied the entire API key
- β Make sure there are no extra spaces before/after the key
- β Verify the API key has the right permissions
"Module not found" errors
- β
Make sure you ran
pip install -e .in the wikijs-mcp folder - β
Try using
python3instead ofpython
Claude Code doesn't see the Wiki.js tools
- β Make sure you're running Claude Code from the wikijs-mcp folder
- β
Check that the
.mcp.jsonfile exists - β Try restarting Claude Code
π Available Tools Reference
Here's what Claude can do once connected:
| Tool | What it does | Example |
|---|---|---|
| π wiki_search | Find pages by title or content | "Search for 'authentication'" |
| π wiki_get_page | Read a specific page | "Get page at path '/docs/api'" |
| π wiki_list_pages | See all pages | "List all wiki pages" |
| π³ wiki_get_tree | View wiki structure | "Show wiki page tree" |
| βοΈ wiki_create_page | Make new pages | "Create page at '/guides/setup'" |
| π wiki_update_page | Edit existing pages | "Update page ID 123" |
| π wiki_move_page | Relocate pages | "Move page to '/archive/old'" |
| ποΈ wiki_delete_page | Remove pages | "Delete page ID 456" |
π οΈ For Developers
Running Tests
# Install dev dependencies
pip install -e ".[dev]"
# Run all tests
pytest
# Run with coverage
pytest --cov=wikijs_mcp
Code Quality
# Format code
black wikijs_mcp/ tests/
# Type checking
mypy wikijs_mcp/
π License
MIT License - feel free to use and modify!
π¬ Need Help?
- Check the Common Issues section above
- Look at the Wiki.js documentation
- Open an issue on GitHub if you're stuck!
Happy documenting! π
Related Servers
ATLAS: Task Management System
A task management system for LLM agents to manage projects, tasks, and knowledge using a Neo4j database for complex workflow automation.
Notion MCP Server
An MCP server for the Notion API, allowing language models to interact with Notion workspaces.
Time MCP Server
Provides current time information and timezone conversion capabilities.
cal2prompt
A command-line tool to fetch Google Calendar schedules and convert them into custom prompts or text snippets using a template engine.
Redmine MCP Server for Cline
Integrates with Redmine to manage projects and issues through the Cline VS Code extension.
Pomera AI Commander
Turn messy text into clean output fastβGUI for humans, MCP tools for AI IDEs (Cursor/Claude). 33 deterministic text utilities.
MCP Voice Assistant
A voice-enabled AI personal assistant that integrates multiple tools and services through natural voice interactions using MCP.
Ablefy Connector
Manage Ablefy digital products, orders, payments, invoices, funnels, and affiliate programs through Claude Desktop. 44 tools with one-click .mcpb installation.
Squad AI
Productβdiscovery and strategy platform integration. Create, query and update opportunities, solutions, outcomes, requirements and feedback from any MCPβaware LLM.
OmniTaskAgent
A multi-model agent for managing tasks across various platforms, requiring API keys for different AI models.