mcp-server-wikijs
Manage a Wiki.js instance through its GraphQL admin API, including reading and writing pages, managing navigation and groups, and triggering Git storage syncs.
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., "@mcp-server-wikijs List all pages in the wiki"
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.
mcp-server-wikijs
An MCP server that lets Claude (or any MCP client) manage a Wiki.js instance through its GraphQL admin API — read and write pages, manage navigation and groups, and trigger Git storage syncs.
Published on PyPI as
mcp-server-wikijs; the source repo ismargus/wikijs-mcp. The admin focus (navigation, groups, Git sync, raw GraphQL) sets it apart from content-authoring Wiki.js MCP servers.
How it works: MCP does not run inside Wiki.js. This is a small stdio server your MCP client launches locally; it talks to
https://<your-wiki>/graphql. If your Wiki.js is on a private network, the machine running this needs network reach to it.
Tools
Tool | What it does |
| Run any Wiki.js GraphQL query/mutation (escape hatch) |
| List pages (id, locale, path, title) |
| Get a page's content + metadata |
| Create a page |
| Update a page — only passed fields change |
| Delete a page |
| Current nav mode + tree |
|
|
| Groups + their permissions/page rules |
| Re-sync the Git storage target (re-import content repo) |
Related MCP server: Wiki.js MCP Server
Prerequisites
A running Wiki.js 2.x instance.
An API key: Administration → API Access → enable the API → New API Key (full access; the 2.x API isn't finely scoped). Copy the token.
Quick start
Run it on demand with uvx (no install) — set the two
environment variables and go:
export WIKIJS_URL="https://wiki.example.com"
export WIKIJS_TOKEN="your-api-key"
uvx mcp-server-wikijsOr install it:
pip install mcp-server-wikijs # or: uv tool install mcp-server-wikijs
mcp-server-wikijsThe server speaks MCP over stdio, so running it directly just waits for a client — that's expected. Wire it into a client below.
Configuration
Variable | Required | Description |
| ✅ | Base URL of your Wiki.js instance (e.g. |
| ✅ | Wiki.js API key. Aliases also accepted: |
For standalone runs you can instead drop a .env next to where you launch it
(cp .env.example .env); it's loaded automatically.
Register with an MCP client
Claude Code
claude mcp add wikijs --env WIKIJS_URL=https://wiki.example.com --env WIKIJS_TOKEN=your-api-key -- uvx mcp-server-wikijs…or add it to .mcp.json / your settings:
{
"mcpServers": {
"wikijs": {
"command": "uvx",
"args": ["mcp-server-wikijs"],
"env": {
"WIKIJS_URL": "https://wiki.example.com",
"WIKIJS_TOKEN": "your-api-key"
}
}
}
}Tip: keep secrets out of committed files — reference an env var that's already in your shell, e.g.
"WIKIJS_TOKEN": "${WIKIJS_TOKEN}", and start the client from a shell where it's set.
Claude Desktop
Add the same block to claude_desktop_config.json
(Settings → Developer → Edit Config), then restart Claude Desktop.
Examples
Once registered, ask your assistant things like:
"List every page under
clients/in theenlocale.""Create a page at
guides/onboardingtitled 'Onboarding' with this content: …""Update page 31 — append a 'Troubleshooting' section, leave everything else."
"Trigger a Git sync so the wiki re-imports the content repo."
Security
The Wiki.js API key is full-admin — treat it as a privileged credential. Keep it in your secrets manager / environment, never commit it, and revoke or rotate it anytime from Wiki.js → API Access. Every write tool acts with that key's full authority, so review mutations before approving them.
Development
git clone https://github.com/margus/wikijs-mcp
cd wikijs-mcp
uv sync # install runtime + dev deps
uv run pytest # run the test suite (no live wiki needed — httpx is mocked)
uv run ruff check . # lintThe Wiki.js logic lives in src/wikijs_mcp/client.py (WikiJSClient), unit-tested against
httpx.MockTransport. src/wikijs_mcp/server.py is a thin layer of MCP tool wrappers over
it. See CONTRIBUTING.md.
License
Available Tools
11 toolscreate_pageB
Create a new wiki page. path is locale-relative (e.g. 'guides/getting-started').
Inputs: path (required), title (required), content (required), tags, +4 more.
delete_pageC
Delete a page by id.
Inputs: id (required).
execute_graphqlA
Run an arbitrary Wiki.js GraphQL query or mutation. Use for operations not covered by
the typed tools. variables is an optional dict of GraphQL variables.
Inputs: query (required), variables.
get_groupA
Get a single group with its permissions and page rules.
Inputs: id (required).
get_pageA
Get a page's content + metadata, by path+locale (default locale 'en') or by id.
Inputs: id, path, locale.
list_groupsC
List user groups (id, name).
Inputs: no named parameters.
list_pagesA
List wiki pages (id, locale, path, title). Optionally filter by locale (e.g. 'en').
Inputs: limit, locale.
trigger_git_syncB
Trigger a storage action — defaults to syncing the Git storage target, which re-imports the content repo.
Inputs: handler, target_key.
update_pageA
Update an existing page by id. Only the fields you pass are changed; the rest are kept from the current page.
Inputs: id (required), tags, title, content, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct operation: page CRUD, group retrieval, navigation management, admin actions. Tools like get_page vs list_pages are clearly differentiated by scope. No overlapping purposes.
All tool names follow a consistent verb_noun pattern (e.g., create_page, get_navigation, list_groups) using underscores. No deviations or mixed conventions.
11 tools provide a well-scoped set covering page management, groups, navigation, and admin. The count is appropriate for the Wiki.js domain without being excessive or sparse.
Core page operations are complete (CRUD+list). Groups only have read operations, and user management is absent, but the GraphQL escape hatch covers missing operations. Minor gaps in group lifecycle.
Related MCP Connectors
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
Read and write your team's shared, AI-readable wiki from any MCP client.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for Wiki.js that enables AI agents to create, read, update, search, list, and move wiki pages via the GraphQL API. It supports surgical section updates and structured content management through named sections.6MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides a unified interface to manage Wiki.js pages, users, and groups via GraphQL API, enabling AI agents to create, read, update, and delete content and perform administrative tasks.14MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Wiki.js integration, enabling AI assistants to create, read, update, delete, search, and move wiki pages via natural language.1MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for accessing Wiki.js through its GraphQL API, enabling page management, search, tags, and system info operations.MIT