MCP server for Wiki.js integration

MCP server for Wiki.js integration

wikijs-mcp-server•byheadz0r

An MCP server that lets AI agents interact with Wiki.js through its GraphQL API to manage pages, users, and groups.

License: MIT•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Provides page management tools including getting, listing, searching, creating, updating, and deleting Wiki.js pages.
  • •Supports managing unpublished pages, including listing, searching, checking status, publishing, and force deleting them.
  • •Offers user and group management tools, including listing, searching, creating, and updating users, and listing groups.
  • •Supports STDIO transport for editor integration and HTTP transport for web and API access.

BEST FOR

  • •AI agents and tools that need to search, read, and edit content in a Wiki.js instance.
  • •Editor integrations such as Cursor and VS Code that want direct access to Wiki.js pages.
  • •Administrative workflows that manage Wiki.js users and groups programmatically.

ABOUT WIKIJS-MCP-SERVER

MCP server for Wiki.js integration is cataloged as an MCP server attributed to headz0r. An MCP server that lets AI agents interact with Wiki.js through its GraphQL API to manage pages, users, and groups. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Wiki.js integration are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server connect to Wiki.js?

It interacts with Wiki.js through the GraphQL API.

Which transports can the server run over?

It supports STDIO for editor integration and HTTP for web integrations and API access.

上游原版 README

在 GitHub 查看同一版本原文

README.md · b27454d514d9 · 采集于 2026-11-13 13:09:40 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Wiki.js MCP Server

MCP License Node.js

Model Context Protocol (MCP) server for Wiki.js integration via GraphQL API.

📖 Description

This project provides an MCP server for interacting with Wiki.js through GraphQL API. MCP (Model Context Protocol) is an open protocol developed by Anthropic that enables AI models to safely interact with external services and tools.

The server provides a unified interface for working with Wiki.js that can be used by various AI agents and tools supporting MCP.

✨ Features

📄 Page Management

  • Get Wiki.js pages by ID
  • Get page content by ID
  • List pages with sorting options
  • Search pages by query
  • Create new pages
  • Update existing pages
  • Delete pages
  • 🆕 List all pages including unpublished
  • 🆕 Search unpublished pages
  • 🆕 Force delete pages (including unpublished)
  • 🆕 Get page publication status
  • 🆕 Publish unpublished pages

👥 User Management

  • List users
  • Search users by query
  • Create new users
  • Update user information

🔧 Group Management

  • List user groups

🌐 Transports

  • STDIO: for editor integration (Cursor, VS Code)
  • HTTP: for web integrations and API access

🚀 Quick Start

⚡ Want to start right now? See 5-Minute Guide

Installation

  1. Clone the repository:
git clone https://github.com/heAdz0r/wikijs-mcp-server.git
cd wikijs-mcp-server
  1. Run automatic setup:
npm run setup

This script will automatically:

  • Install dependencies
  • Create .env file based on example.env
  • Build TypeScript code

Configuration

  1. Edit the .env file and specify your Wiki.js settings:
# Port for HTTP MCP server
PORT=3200

# Base URL for Wiki.js (without /graphql)
WIKIJS_BASE_URL=http://localhost:3000

# Wiki.js API token
WIKIJS_TOKEN=your_wikijs_api_token_here
  1. Edit the .cursor/mcp.json file and replace your_wikijs_api_token_here with your real token

How to get Wiki.js API token:

  1. Log into Wiki.js admin panel
  2. Go to "API" section
  3. Create a new API key with necessary permissions
  4. Copy the token to .env AND to .cursor/mcp.json

📦 Running

# Start main HTTP server with Cursor MCP support
npm start
# or
npm run start:http

# Stop server
npm run stop

TypeScript version

npm run start:typescript

STDIO mode (for direct editor integration)

npm run server:stdio

Development mode

npm run dev

Testing

npm test

🔌 Editor Integration

Cursor IDE

⚠️ IMPORTANT: Without .cursor/mcp.json file, Cursor integration will NOT work!

Quick Setup

  1. Start HTTP server:
npm start
  1. Automatic configuration setup:
npm run setup:cursor
  1. Edit .cursor/mcp.json and specify your real token:
{
  "mcpServers": {
    "wikijs": {
      "transport": "http",
      "url": "http://localhost:3200/mcp",
      "events": "http://localhost:3200/mcp/events",
      "cwd": ".",
      "env": {
        "WIKIJS_BASE_URL": "http://localhost:3000",
        "WIKIJS_TOKEN": "your_real_wiki_js_token_here"
      }
    }
  }
}

Critical Parameters

  • transport: "http" - mandatory HTTP transport
  • url: "http://localhost:3200/mcp" - exact URL for JSON-RPC
  • events: "http://localhost:3200/mcp/events" - URL for Server-Sent Events
  • WIKIJS_TOKEN - real Wiki.js API token (not placeholder!)

Verification

After setup, tools with mcp_wikijs_* prefix should appear in Cursor:

  • mcp_wikijs_list_pages()
  • mcp_wikijs_search_pages()
  • mcp_wikijs_get_page()
  • And others...

VS Code (with MCP extension)

Add to VS Code settings:

{
  "mcp.servers": {
    "wikijs": {
      "command": "node",
      "args": ["lib/mcp_wikijs_stdin.js"],
      "cwd": "/path/to/wikijs-mcp"
    }
  }
}

🛠 Development

Project Structure

wikijs-mcp-server/
├── src/                    # TypeScript source code
│   ├── server.ts          # HTTP server
│   ├── tools.ts           # Tool definitions
│   ├── api.ts             # Wiki.js API client
│   ├── types.ts           # Data types
│   ├── schemas.ts         # Zod validation schemas
│   └── README.md          # Source code documentation
├── lib/                   # JavaScript library files
│   ├── fixed_mcp_http_server.js    # Main HTTP server (compiled)
│   ├── mcp_wikijs_stdin.js         # STDIN server for editors
│   ├── mcp_client.js               # Demo MCP client
│   ├── mcp_wrapper.js              # MCP protocol utilities
│   └── README.md                   # Library documentation
├── scripts/               # Management scripts
│   ├── setup.sh          # Initial setup
│   ├── start_http.sh     # Start HTTP server
│   ├── stop_server.sh    # Stop HTTP server
│   ├── start_typescript.sh # Start TypeScript version
│   ├── setup_cursor_mcp.sh # Cursor setup
│   ├── test.sh           # Run tests
│   ├── test_mcp.js       # Test HTTP server
│   ├── test_mcp_stdin.js # Test STDIN server
│   └── README.md         # Scripts documentation
├── .cursor/               # Cursor MCP configuration
│   └── mcp.json          # MCP configuration file (CRITICALLY IMPORTANT!)
├── dist/                  # Compiled TypeScript code
├── package.json           # Project metadata
└── README.md             # Main documentation

🚨 CRITICALLY IMPORTANT: .cursor/mcp.json file is required for Cursor integration!

Available Scripts

Setup and Build

  • npm run setup - Initial project setup
  • npm run build - Build TypeScript project
  • npm run setup:cursor - Setup Cursor integration

Running Servers

  • npm start / npm run start:http - HTTP MCP server (port 3200)
  • npm run stop - Stop all MCP servers
  • npm run start:typescript - TypeScript version of server (port 8000)
  • npm run server:stdio - STDIO version for direct integration

Development and Testing

  • npm run dev - Development mode with hot reload
  • npm run demo - Capability demonstration
  • npm test - Run tests
  • npm run client - Run demo client

API Endpoints (HTTP mode)

  • GET /tools - List of available tools
  • GET /health - Server health check
  • POST /mcp - MCP JSON-RPC endpoint

Usage Examples

// Get list of pages
{
  "method": "list_pages",
  "params": {
    "limit": 10,
    "orderBy": "TITLE"
  }
}

// Create new page
{
  "method": "create_page",
  "params": {
    "title": "New Page",
    "content": "# Title\n\nContent...",
    "path": "folder/new-page"
  }
}

### Search for pages:
```python
# Search in all content and metadata
result = await mcp_client.call_tool("search_pages", {
    "query": "magic system",
    "limit": 5
})

Working with Unpublished Pages:

# Get all pages including unpublished ones
all_pages = await mcp_client.call_tool("list_all_pages", {
    "limit": 100,
    "includeUnpublished": True
})

# Search only unpublished pages
unpublished = await mcp_client.call_tool("search_unpublished_pages", {
    "query": "draft",
    "limit": 10
})

# Check page publication status
status = await mcp_client.call_tool("get_page_status", {
    "id": 42
})

# Publish an unpublished page
result = await mcp_client.call_tool("publish_page", {
    "id": 42
})

# Force delete page (works with unpublished pages)
result = await mcp_client.call_tool("force_delete_page", {
    "id": 42
})

User management:

# List all users
users = await mcp_client.call_tool("list_users")

# Search users by query
search_result = await mcp_client.call_tool("search_users", {
    "query": "John"
})

# Create new user
new_user = await mcp_client.call_tool("create_user", {
    "email": "john@example.com",
    "name": "John Doe",
    "passwordRaw": "password123",
    "providerKey": "local",
    "groups": [1],
    "mustChangePassword": false,
    "sendWelcomeEmail": true
})

# Update user information
updated_user = await mcp_client.call_tool("update_user", {
    "id": 1,
    "name": "John Doe Updated"
})

🐛 Troubleshooting

Connection Issues

  1. Ensure Wiki.js is running and accessible
  2. Check WIKIJS_BASE_URL correctness
  3. Verify API token is valid

MCP Issues

  1. Check Node.js version (requires >=18.0.0)
  2. Ensure all dependencies are installed
  3. Check server logs for errors

📚 Documentation

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is distributed under the MIT License. See LICENSE file for details.

⭐ Support

If this project helped you, please give it a ⭐ on GitHub!

Have questions? Create an Issue or refer to the documentation.

🆕 New Feature: Automatic URLs

Search Stages

Search works in 4 stages:

  1. GraphQL API search - fast search through indexed content
  2. Metadata search - search in titles, paths, and page descriptions
  3. HTTP content search - deep search in page content via HTTP
  4. Forced verification - fallback search on known pages

Usage Examples

{
  "method": "search_pages",
  "params": {
    "query": "ZELEBOBA",
    "limit": 5
  }
}

Result:

[
  {
    "id": 103,
    "path": "test/test-page",
    "title": "Test Page",
    "description": "Test page to demonstrate Wiki.js API capabilities",
    "url": "http://localhost:8080/en/test/test-page"
  }
]
{
  "method": "search_pages",
  "params": {
    "query": "find me",
    "limit": 3
  }
}

Result:

[
  {
    "id": 108,
    "path": "test/test-gemini-mcp",
    "title": "Test Gemini MCP Page (find me)",
    "url": "http://localhost:8080/en/test/test-gemini-mcp"
  }
]

New Search Benefits

  • ✅ Finds pages even with limited API permissions - uses HTTP fallback
  • ✅ Multi-level search - combines multiple strategies
  • ✅ Content search - finds text inside pages
  • ✅ Metadata search - titles, paths, descriptions
  • ✅ Fallback methods - guaranteed results for known pages
  • ✅ Correct URLs - all results contain ready-to-use links

Technical Details

HTML Content Processing

The system automatically extracts text from HTML using:

  • Search in <template slot="contents"> block
  • HTML tags and entities cleanup
  • Fallback to full page content

With limited GraphQL API permissions, the system:

  • Switches to HTTP method for content retrieval
  • Uses direct requests to HTML pages
  • Preserves all page metadata

📝 Changelog

Version 1.3.0 - Unpublished Pages Management (Latest)

🆕 New Features:

  • list_all_pages - Get all pages including unpublished ones
  • search_unpublished_pages - Search specifically in unpublished pages
  • force_delete_page - Enhanced deletion that works with unpublished pages
  • get_page_status - Check publication status of any page
  • publish_page - Publish unpublished pages programmatically

🔧 Improvements:

  • Enhanced server API with new routes for unpublished page management
  • Better error handling for page deletion operations
  • Comprehensive GraphQL mutation support for advanced page operations
  • Restructured project: Moved JavaScript files to lib/ directory for better organization

🐛 Bug Fixes:

  • Fixed issues with accessing unpublished pages through standard APIs
  • Improved authentication handling for admin-level operations

Version 1.2.0 - International Release

🌍 Internationalization:

  • Complete English translation of documentation
  • README.md and QUICK_START.md now available in English
  • Prepared for international market expansion

Version 1.1.0 - Enhanced Search & User Management

✨ Features:

  • Smart multi-method page search (GraphQL + content + metadata)
  • User management tools (create, update, search)
  • Group management capabilities
  • Improved content extraction from HTML pages

🛠️ Available Tools

📄 Page Tools

Tool NameDescriptionParameters
get_pageGet page information by IDid: number
get_page_contentGet page content by IDid: number
list_pagesList pages with sortinglimit?: number, orderBy?: string
search_pagesSearch pages by queryquery: string, limit?: number
create_pageCreate new pagetitle: string, content: string, path: string, description?: string, tags?: string[]
update_pageUpdate existing pageid: number, content: string
delete_pageDelete pageid: number
list_all_pages🆕 List all pages including unpublishedlimit?: number, orderBy?: string, includeUnpublished?: boolean
search_unpublished_pages🆕 Search only unpublished pagesquery: string, limit?: number
force_delete_page🆕 Force delete page (works with unpublished)id: number
get_page_status🆕 Get page publication statusid: number
publish_page🆕 Publish unpublished pageid: number

👥 User Tools

Tool NameDescriptionParameters
list_usersList all usersNone
search_usersSearch users by queryquery: string
create_userCreate new useremail: string, name: string, passwordRaw: string, providerKey?: string, groups?: number[], mustChangePassword?: boolean, sendWelcomeEmail?: boolean
update_userUpdate user informationid: number, name: string

🔗 Group Tools

Tool NameDescriptionParameters
list_groupsList user groupsNone

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Wiki.js integration from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/wikijs-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation