Purpose
wikijs-mcp is an MCP server for Wiki.js. Wiki.js is a self-hosted wiki where pages are stored as Markdown and all functionality is exposed through a single GraphQL endpoint. This server enables MCP clients (such as Claude Code, Claude Desktop, or Codex) to search, read, and edit wiki pages, and to manage assets, comments, users, user groups, and maintenance jobs within the authorized scope.
Main capabilities
- Search:
search_pagesreports the currently running search engine,grep_pagesretrieves pages and matches their text locally, thereby finding content that full-text search cannot hit. - Reading and editing: provides
get_page、list_pages、get_page_tree、create_page、update_pageand other tools.update_pagecompares against the state at the time the page was read and refuses to overwrite edits saved in the meantime; precise edits must match exactly once. - Asset management: manages assets within the permitted scope.
- User, user group, and comment management: performs operations within the authorized scope.
- Maintenance jobs: includes
flush_page_cache、rebuild_page_tree、rebuild_search_indexand other instance-level maintenance tools. - Structured output: each tool declares an outputSchema and returns structuredContent alongside text blocks, making it easy for clients to use the results directly.
- Untrusted data marking: tools that report wiki content carry the
untrusted: trueandsource: "wikijs"fields, because page text, titles, descriptions, and comments are written by anyone with edit permission.
Usage
A running Wiki.js instance and an API Token are required. For non-localhost, https://is recommended; otherwise the token is transmitted in plaintext and the server prints a warning. For self-signed certificates, an internal CA is recommended rather than WIKIJS_INSECURE_TLS.
WIKIJS_LOCALE: The locale is part of a page's identity; the same path under en and de refers to two different pages. For non-default locales, WIKIJS_LOCALEmust be set; otherwise lookup by path returns "not found".list_locales can report the installed locales.
Tool loading control:WIKIJS_ALLOW_TOOLS and WIKIJS_DENY_TOOLS accept comma-separated tool names, and a trailing * matches an entire tool family.essential is a curated preset (search_pages、grep_pages、get_page、list_pages、get_page_tree、create_page、update_page). An entry that matches no tools causes startup to abort and identifies that entry. Filtered tools are not registered and are invisible in both tools/list and tools/call.
Write restrictions:WIKIJS_ALLOWED_PATHS restricts write-type page and asset tools to a path prefix, matching by path segment; reads are unrestricted.move_page checks both ends. Operations that cannot be restricted to a prefix (the six instance-level maintenance tools, tag tools, comment editing) refuse to execute when this variable is set.
Read-only mode:WIKIJS_READ_ONLY=true does not register write tools at all.
Without credentials, the server still starts and lists tools, but every call fails and returns setup instructions.
Via mcp-hub: Clients that cannot spawn a local process (ChatGPT connectors, web-based Claude, Cursor, LibreChat) can access it through mcp-hub, whose /hub endpoint places each server behind six meta-tools. Configuration uses the Claude Code format;allowTools and denyTools are the hub's own per-server filters, which are separate from *_ALLOW_TOOLS Environment variables differ.
Tools requiring human confirmation: Tools marked with ⚠ will ask a human through MCP elicitation; when the client does not support it, it falls back to a two-call confirm_token mechanism. The first call returns a short-lived token bound to the exact target, and only the second call carrying that token performs the operation.ELICITATION=false will proactively adopt the fallback approach, but will not remove protections. The three maintenance tools (flush_page_cache、rebuild_page_tree、rebuild_search_index) are deliberately left ungated, because they only consume time and do not lose content.
Confirmation prompts do not reference Wiki.js content; only the id, path, and server-side values appear, and the path is checked to be an identifier before interpolation.
Security and limitations
API keys have administrative privileges. Wiki.js provides "full access" or group-based authorization, and a full-access key can overwrite every page and account.WIKIJS_READ_ONLY、WIKIJS_ALLOWED_PATHS and the key's own group permissions are three independent ways to narrow scope.
Intentionally unexposed feature: no tool is provided to create API keys. This is because a model capable of generating a full-access key could grant itself permissions beyond the three narrowing mechanisms above.list_api_keys and revoke_api_key are used to audit and revoke keys. Reads are never restricted by path scope.
After startup, credentials are deleted from the environment, secrets in API responses are redacted, and error bodies are truncated and HTML error pages are discarded.
Applicable scenarios
- Scenarios where you need to search, read, and edit self-hosted Wiki.js pages in an MCP client.
- Scenarios where you need to find full text within pages more reliably than the default Wiki.js search engine.
- Scenarios where you need to prevent the model from overwriting others' edits.
- Scenarios where you need to limit writes to a specific path scope in the wiki.
- Scenarios where you need to connect clients that cannot spawn local processes through mcp-hub.
Not yet provided
Specific information such as pricing, fees, platform compatibility lists, and performance benchmarks is not yet provided in the materials.