Skip to main content
Glama
Wiki.js MCP Server
by mfic

wikijs-mcp

MCP (Model Context Protocol) server for Wiki.js that exposes page management through Wiki.js's GraphQL API.

Tools

Tool

Description

wikijs_list_pages

List all pages (sortable by title, path, ID, date)

wikijs_get_page

Get full content and metadata of a page by ID

wikijs_get_page_tree

Browse the page/folder hierarchy

wikijs_search_pages

Full-text search across pages

wikijs_create_page

Create a new page (markdown, HTML, AsciiDoc)

wikijs_update_page

Update a page's content, title, or metadata

wikijs_delete_page

Delete a page by ID

Related MCP server: wikijs-mcp

Prerequisites

  1. A running Wiki.js instance (v2.x)

  2. An API key — create one at Administration > API Access in your Wiki.js admin panel

  3. The API key needs appropriate permission scopes for pages (read/write/manage)

Setup

cp .env.example .env
# Edit .env with your Wiki.js URL and API key

Option A: Local (Node.js >=18)

npm install
npm run build
npm start

For development:

npm run dev

Option B: Docker

docker compose build
docker compose up -d

Claude Code Integration

Add to your Claude Code MCP config (.claude/settings.json or project settings):

{
  "mcpServers": {
    "wikijs": {
      "command": "node",
      "args": ["d:/projects/ai/wikijs-mcp/dist/index.js"],
      "env": {
        "WIKIJS_URL": "https://wiki.example.com",
        "WIKIJS_API_KEY": "your-api-key"
      }
    }
  }
}

Or using npx tsx for development without building:

{
  "mcpServers": {
    "wikijs": {
      "command": "npx",
      "args": ["tsx", "d:/projects/ai/wikijs-mcp/src/index.ts"],
      "env": {
        "WIKIJS_URL": "https://wiki.example.com",
        "WIKIJS_API_KEY": "your-api-key"
      }
    }
  }
}

Wiki.js API Reference

This server uses the Wiki.js GraphQL API. You can explore the full schema interactively at https://your-wiki.example.com/graphql when logged in as admin.

Available Tools

7 tools
wikijs_create_pageC

Create a new wiki page with markdown (or other editor) content

Inputs: path (required), title (required), content (required), tags, +5 more.

wikijs_delete_pageC

Delete a wiki page by its ID

Inputs: id (required).

wikijs_get_pageA

Get the full content and metadata of a single wiki page by its ID

Inputs: id (required).

wikijs_get_page_treeB

Get the page tree (folder/page hierarchy) starting from a path

Inputs: mode, path, locale.

wikijs_list_pagesB

List all pages in the wiki, ordered by title, path, ID, or date

Inputs: orderBy.

wikijs_search_pagesC

Search wiki pages by text query

Inputs: query (required).

wikijs_update_pageC

Update an existing wiki page's content, title, or metadata

Inputs: id (required), tags, title, editor, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each tool has a distinct read or write purpose: list_pages is a flat enumeration, get_page_tree is a hierarchy fetch, get_page is a single-page fetch by ID, and search_pages is a text query. The only mild overlap is list_pages versus get_page_tree, since both enumerate pages, but the descriptions make the flat-vs-hierarchical distinction reasonably clear.

    Naming Consistency5/5

    Every tool follows the identical wikijs_<verb>_<noun> pattern (list_pages, get_page, create_page, update_page, delete_page), with only minor variation for search_pages and get_page_tree that still fits the convention. The naming is fully predictable.

    Tool Count5/5

    Seven tools is well within the 3-15 sweet spot and each one earns its place by covering a distinct read or write operation. Nothing is redundant or superfluous for a wiki page manager.

    Completeness4/5

    The full CRUD lifecycle (create, read/list/tree/search, update, delete) is covered with no obvious dead ends. Minor gaps remain, such as fetching or updating a page by path rather than ID and operations like moving pages or version history, but these are workable limitations.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers