wikijs-mcp
Provides tools for interacting with Wiki.js, enabling search, read, and edit wiki pages, and optionally managing assets, comments, users, groups, and maintenance jobs through the Wiki.js GraphQL API.
Click on "Install 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., "@wikijs-mcpsearch the wiki for the quarterly roadmap and summarize it"
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.
wikijs-mcp
A Model Context Protocol (MCP) server for Wiki.js, the self-hosted wiki that keeps its pages as markdown and exposes everything through one GraphQL endpoint.
Lets MCP clients like Claude Code, Claude Desktop or Codex search, read and edit wiki pages — and, if you let them, manage its assets, comments, users, groups and maintenance jobs.
Sixty-two tools is the ceiling, not the floor:
WIKIJS_ALLOW_TOOLS=essential registers a curated seven
instead, and a model picks the right tool far more reliably from
seven than from sixty-two — see
choosing which tools load.
Requirements
Node.js ≥ 22
A running Wiki.js instance and an API token
Related MCP server: wikijs-mcp
Configuration
Variable | Required | Description |
| yes | Base URL of the wiki, e.g. |
| yes | API key from Administration → API Access. |
| no | Locale assumed by page tools that are not given one (default |
| no |
|
| no | Comma-separated page path prefixes the write tools are confined to, e.g. |
| no | Comma-separated tool names, |
| no | Same syntax; removed from whatever |
| no |
|
The locale is part of a page's identity, not a display preference: the same path
under en and de is two different pages. On a wiki set up in another language,
set WIKIJS_LOCALE or every lookup by path answers "not found". list_locales
reports what is installed.
API keys are administrative. Wiki.js offers "full access" or a group, and a
full-access key can rewrite every page and every account. WIKIJS_READ_ONLY,
WIKIJS_ALLOWED_PATHS and the key's own group permissions are three independent
ways to narrow that — see SECURITY.md.
Use
https://. Over plain http the token travels unencrypted; the server prints a warning unless the host is local. For self-signed certificates prefer a proper internal CA overWIKIJS_INSECURE_TLS.
Without credentials the server still starts and lists its tools (so registries and inspectors can introspect it), but every call fails with setup instructions instead of reaching the API.
Choosing which tools load
WIKIJS_ALLOW_TOOLS and WIKIJS_DENY_TOOLS take comma-separated
tool names; a trailing * matches a whole family. essential is a curated preset —
search_pages, grep_pages, get_page, list_pages, get_page_tree, create_page and update_page, which is what it takes to find, read and write a wiki page end to end — marked as such in the
tool reference.
WIKIJS_ALLOW_TOOLS=essential
WIKIJS_ALLOW_TOOLS=get_page,search_pages,list_*
WIKIJS_DENY_TOOLS=delete_*,purge_page_history,set_api_stateAn entry that matches no tool aborts startup and names it, so a typo cannot silently
hide a tool — an absent tool is not something anyone traces back to an environment
variable. A filtered tool is never registered, so it is absent from tools/list and
unknown to tools/call alike, exactly like a write tool under
WIKIJS_READ_ONLY.
If you run several of these servers at once, mcp-hub is
the other answer — its /hub endpoint replaces every server's tools with six
meta-tools.
Confining writes to part of the wiki
WIKIJS_ALLOWED_PATHS limits the writing page and asset tools to a set of path
prefixes. Reads stay unrestricted, deliberately: a scope on reads turns a wiki into
a confusing half-wiki, and the API key's own page rules are the right place to hide
pages outright — they hide them from the web UI too.
WIKIJS_ALLOWED_PATHS=docs,team/notesMatching is by path segment, so docs covers docs/setup and not
docs-archive/old. move_page checks both ends, so a page cannot be moved out of
the allowed area or into a protected one.
Asset writes are checked against the asset folder tree, which is a separate namespace. The operations that cannot be confined to a prefix at all — the instance-wide maintenance tools, the tag tools, and comment edits, because Wiki.js does not say which page a comment is on — refuse while the variable is set rather than making a silent exception.
Installation
Claude Code
claude mcp add wikijs-mcp -- npx -y @ni-c/wikijs-mcpClaude Desktop
{
"mcpServers": {
"wikijs-mcp": {
"command": "npx",
"args": ["-y", "@ni-c/wikijs-mcp"],
"env": {
"WIKIJS_URL": "https://wiki.example.com",
"WIKIJS_TOKEN": "…"
}
}
}
}Codex
[mcp_servers.wikijs-mcp]
command = "npx"
args = ["-y", "@ni-c/wikijs-mcp"]
env = { WIKIJS_URL = "https://wiki.example.com", WIKIJS_TOKEN = "…" }Docker
docker run --rm -i \
-e WIKIJS_URL=https://wiki.example.com \
-e WIKIJS_TOKEN=… \
ghcr.io/ni-c/wikijs-mcpTools
62 tools. ★ marks the essential preset; ⚠ marks a tool that needs a
confirmation token.
Tool | Description |
| ★ Lists pages with their metadata, newest first by default. |
| ★ Reads one page, addressed by page_id or by path plus locale. |
| ★ Full-text search — but read this first: on a default Wiki.js the search engine is "Database - Basic", which only indexes page titles and descriptions, NOT the text inside pages. |
| ★ Searches the actual text of pages with a regular expression, by fetching them and matching locally. |
| ★ Lists the pages and folders directly under a path — the structural view a wiki has and a search does not. |
| Returns every page together with the internal links it contains — the wiki’s link graph for one locale. |
| ★ Creates a page. |
| ★ Changes a page. |
| Moves a page to another path, another locale, or both. |
| ⚠ Deletes a page and its history. |
| Changes the storage format of a page. |
| Lists the stored versions of a page, newest first, with who changed what and when. |
| Returns a single historical version of a page, including its full body as it was then. |
| Returns a unified diff between two versions of a page — or between one version and the page as it is now, if to_version is omitted. |
| Returns the version of a page that is newer than the one you read — what update_page points at when it refuses to write. |
| Rolls a page back to a stored version. |
| Every tag in the wiki, with its display title and when it was last used. |
| Finds tags matching a fragment. |
| Changes a tag’s name or display title across every page carrying it. |
| ⚠ Removes a tag from the wiki and from every page that carries it. |
| Lists the images and files in one asset folder. |
| Lists the folders directly under an asset folder. |
| Uploads an image or file to an asset folder, so it can be embedded in a page. |
| Creates a folder in the asset store. |
| Renames an asset. |
| ⚠ Deletes an asset permanently. |
| Returns the comments on one page, addressed by path and locale — not by page id, which is the one place Wiki.js asks for the path instead. |
| Returns a single comment by id, with its source and its rendered HTML. |
| Posts a comment on a page, optionally as a reply to another. |
| Replaces the body of a comment. |
| ⚠ Removes a comment permanently. |
| Lists the wiki’s user accounts. |
| Finds users by name or email. |
| Full detail for one account, including its group memberships and whether two-factor authentication is active. |
| Creates an account. |
| Changes an account’s details or its group membership. |
| ⚠ Removes an account. |
| Switches an account on or off. |
| Marks an account’s email as verified, which is otherwise done by the user clicking a link. |
| Switches an account’s second factor. |
| Starts Wiki.js’ own password reset for a local account, which emails the user a link. |
| Lists the wiki’s groups with how many users each has. |
| Returns one group with its global permissions, its page rules and its members. |
| Creates an empty group. |
| Replaces a group’s name, permissions and page rules wholesale — this is not a partial update, and omitting a rule deletes it. |
| ⚠ Removes a group. |
| Adds one account to one group, leaving its other memberships alone — the additive counterpart to update_user’s groups list. |
| Takes one account out of one group. |
| Version, database, host summary and the site’s own title and description, plus totals for pages, users, groups and tags. |
| Which locales are installed and which one is the default. |
| The sidebar navigation as configured, per locale. |
| Which search engine this wiki uses. |
| Lists the wiki’s API keys with their expiry and whether they are revoked, plus whether API access is switched on at all. |
| The configured storage backends — git mirrors, S3 buckets, local file dumps — with their sync status and last error. |
| ⚠ Revokes an API key immediately and for good — Wiki.js has no way to un-revoke one. |
| ⚠ Switches Wiki.js’ whole API on or off. |
| Forces Wiki.js to regenerate one page’s HTML from its source. |
| Drops Wiki.js’ rendered-page cache for the whole wiki. |
| Recomputes the folder structure Wiki.js derives from page paths. |
| Reindexes every page in the active search engine. |
| ⚠ Deletes stored page versions older than a cutoff, across the whole wiki. |
| ⚠ Moves all pages from one locale to another, across the whole wiki. |
The full reference, with every parameter, is at wikijs-mcp.ni-c.de/reference/tools.
Two things worth knowing before you use search_pages
Wiki.js' default search engine does not index page content. "Database - Basic"
matches titles and descriptions only, so searching for a phrase written inside a
page returns nothing at all. search_pages reports which engine is active and says
so; grep_pages fetches pages and matches their text locally, which is slower and
actually finds things. Switching the wiki to the PostgreSQL or Elasticsearch engine
and running rebuild_search_index fixes it properly.
update_page refuses to overwrite somebody else's edit. It compares the page
against the moment you read it, not against its own read a millisecond earlier,
so an edit saved from the web UI while the model was thinking is caught rather than
silently discarded. get_page_conflict shows the newer version; force: true
overwrites on purpose.
Safety
Destructive and administrative tools are two-step. The first call returns a short-lived confirmation token bound to the exact target; only a second call carrying that token performs the operation. A model cannot satisfy this gate on its own. The binding includes everything that decides what is touched — a token for
migrate_pages_localefromdetoenwill not runentode.Confirmation prompts never quote content from Wiki.js. Page titles and descriptions are written by anyone with edit rights, and that text is read by a model. Only ids, paths and server-side values appear, and a path is checked to be an identifier before it is interpolated.
Returned page content is marked as untrusted data, because a wiki is exactly a place where text is stored to be read later.
There is no tool that creates an API key, although the Wiki.js API offers one: a model able to mint a full-access key could grant itself administrative access that outlives this session.
list_api_keysandrevoke_api_keyare here so keys can be audited and taken away.Credentials are deleted from the environment after startup, secrets in API responses are redacted, error bodies are truncated and HTML error pages dropped.
WIKIJS_READ_ONLY=truedoes not register the write tools at all, andWIKIJS_DENY_TOOLScuts finer along the same line — a filtered tool is never built, not refused at call time.
Releasing
Add the CHANGELOG entry and bump
package.json.npm run lint && npm run build && npm run test:coverageCommit, then push a signed tag:
git tag -s vX.Y.Z -m "vX.Y.Z" && git push origin main vX.Y.Z
The release workflow publishes to npm (Trusted Publishing, with provenance), creates the GitHub release from the CHANGELOG section and updates the MCP Registry entry.
License
MIT © Willi Thiel
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables managing Wiki.js pages via the GraphQL API, including listing, searching, creating, updating, and deleting pages.41MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for accessing Wiki.js through its GraphQL API, enabling page management, search, tags, and system info operations.MIT
- AlicenseAqualityCmaintenanceAn MCP server for managing Wiki.js 2.x pages through its GraphQL API, enabling search, read, create, update, move, delete, version history, and asset listing.1329MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server for interacting with Wiki.js via GraphQL API, enabling page management (CRUD, search, publish), user and group management, and blogging workflow with drafts.41MIT
Related MCP Connectors
Monday.com MCP — wraps the Monday.com GraphQL API (BYO API key)
Wikidata MCP — wraps Wikidata API (wikidata.org/w/api.php)
Search, document and execute authenticated API calls across 700+ apps via one MCP server
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ni-c/wikijs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server