Skip to main content
Glama

mcp-wikijs

MCP server that connects Claude to your Wiki.js instance.

Tools

Tool

Description

search_pages

Search pages by keyword

get_page

Get full page content by path

list_pages

List all pages

create_page

Create a new markdown page

Setup

1. Get your Wiki.js API key

In Wiki.js admin panel → Administration → API Access → create a key.

2. Configure environment

cp .env.example .env
# Fill in WIKIJS_URL and WIKIJS_API_KEY

3. Install and run

npm install
node index.js

4. Connect to Claude Code

Add to ~/.claude/claude_mcp_config.json:

{
  "mcpServers": {
    "wikijs": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-wikijs/index.js"],
      "env": {
        "WIKIJS_URL": "https://your-wiki.railway.app",
        "WIKIJS_API_KEY": "your-api-key"
      }
    }
  }
}

Deploy to Railway

  1. Push this repo to GitHub

  2. New Project on Railway → Deploy from GitHub

  3. Add WIKIJS_URL and WIKIJS_API_KEY as environment variables