get_all_pages
Get all pages in WikiJS
Search a Wiki.js instance and pull pages back by ID or by path and locale.
LABSCO SUMMARY
Four tools, all of them reading: search when the page is unknown, path or ID when it is, and the full listing when the question is what exists at all. Locale is a parameter on both the search and the path lookup, which matters on a wiki carrying the same page in more than one language. Nothing writes, so the wiki cannot be changed from the conversation.
A read client for Wiki.js covering search, page retrieval and a full page listing.
A Wiki.js instance at the address in WIKIJS_URL, and an API key in WIKIJS_API_KEY.
One command plus a key — npx -y wikijs-mcp, then supply credentials
USE CASES
Search finds the page and the path lookup returns it, so the answer can quote the wiki rather than approximate it.
When the ID or the path is in hand, retrieval skips the search entirely.
The full listing answers the coverage question that a search cannot: what is written down, and what is not.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get_all_pagesGet all pages in WikiJS
get_page_by_idGet a WikiJS page by its ID
get_page_by_pathGet a WikiJS page by its path and locale
search_pagesSearch for pages in WikiJS by query string
BEFORE YOU INSTALL
4 tools when we connected. Read-only: the four tools search and retrieve pages, and none creates, updates or deletes one.
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y wikijs-mcp{
"mcpServers": {
"wikijs-mcp": {
"command": "npx",
"args": [
"wikijs-mcp"
],
"env": {
"WIKIJS_URL": "<YOUR_WIKIJS_URL>",
"WIKIJS_API_KEY": "<YOUR_WIKIJS_API_KEY>"
}
}
}
}Start the server in HTTP mode
On the machine that will host it, with WIKIJS_URL and WIKIJS_API_KEY set in that shell (8080 is a port of your choice):
TRANSPORT_METHOD=streamable-http TRANSPORT_OPTIONS_PORT=8080 npx wikijs-mcpPoint Cursor at it
<YOUR_MCP_HOST_URL_PORT> is that machine's address and the port you chose, for example http://localhost:8080:
{
"mcpServers": {
"wikijs-mcp": {
"name": "WikiJS MCP",
"url": "<YOUR_MCP_HOST_URL_PORT>/mcp"
}
}
}