WikiJS
Search and retrieve content from a WikiJS knowledge base.
WikiJS MCP Server
A Model Context Protocol (MCP) server that provides integration with WikiJS, allowing AI assistants to search and retrieve content from your WikiJS knowledge base.
Overview
This MCP server enables AI assistants to interact with WikiJS instances by providing tools to:
- Search for pages by query string
- Retrieve pages by ID
- Retrieve pages by path and locale
- Get all pages from the wiki
Configuration for Cursor
Stdio
{
"mcpServers": {
"wikijs-mcp": {
"command": "npx",
"args": [
"wikijs-mcp"
],
"env": {
"WIKIJS_URL": <your wikijs url>,
"WIKIJS_API_KEY": <your wikijs api key>
}
}
}
}
Streamable Http
Host Machine
Start the server TRANSPORT_METHOD=streamable-http TRANSPORT_OPTIONS_PORT=8080 npx wikijs-mcp (See Environment Variables for all available variables)
IDE
{
"mcpServers": {
"wikijs-mcp": {
"transport": "http-streamable",
"name": "WikiJS MCP",
"url": <your mcp host url with port>/mcp
}
}
}
Getting a WikiJS API Key
- Log into your WikiJS instance as an administrator
- Go to Administration > API Access
- Create a new API key with appropriate permissions
- Copy the generated key to your
.envfile
Development
- Clone the repository:
git clone https://github.com/RicardoCenci/wikijs-mcp.git
cd wikijs-mcp
- Install dependencies:
npm install
- Copy the environment template and fill out its contents
cp env.example .env
- Build the project
If you have
makeinstalled:
make build
- Deploy the WikiJS instance for testing
docker compose up -d
Usage
npx wikijs-mcp
Environment Variables
| Variable | Description | Required | Allowed Values | Default |
|---|---|---|---|---|
WIKIJS_URL | URL of your WikiJS instance | Yes | - | - |
WIKIJS_API_KEY | WikiJS API key | Yes | - | - |
TRANSPORT_METHOD | The transport method | No | stdio, streamable-http | stdio |
TRANSPORT_OPTIONS_CORS_ORIGIN | Cors Origin (only on streamable-http) | No | - | * |
TRANSPORT_OPTIONS_CORS_HEADERS | Cors Headers, comma separated (only on streamable-http) | No | - | Content-Type=mcp-session-id |
TRANSPORT_OPTIONS_CORS_METHODS | Cors Methods, comma separated (only on streamable-http) | No | - | GET,POST,OPTIONS |
TRANSPORT_OPTIONS_SESSION_TIMEOUT_MS | Session timeout (only on streamable-http) | No | - | 60000 |
License
This project is licensed under the MIT License.
Related Servers
Product Hunt
Discover and search for the latest products and tech using the Product Hunt API.
gnosis-mcp
Zero-config knowledge base for AI coding agents. Loads your markdown docs into a searchable database and exposes them as MCP tools — search, read, and manage documentation without leaving your editor. Works instantly with SQLite (no setup), upgrades to PostgreSQL + pgvector for hybrid semantic search. Includes skills for searching docs (/gnosis:search), health checks (/gnosis:status), doc management (/gnosis:manage), and first-time setup (/gnosis:setup). 6 MCP tools, 3 resources, FTS5 keyword search, 176 tests.
Semantic Scholar
Search for academic papers, authors, and citations using the Semantic Scholar API.
企业基础信息服务
Provides basic enterprise information services, including business registration, company profiles, shareholders, and key personnel.
Brave Search
Integrates the Brave Search API for both web and local search capabilities. Requires a BRAVE_API_KEY.
ArXiv MCP Server
A flexible service for searching and analyzing academic papers on arXiv.
Qdrant Retrieve
Semantic search using the Qdrant vector database.
IACR ePrint Archive
Search and retrieve cryptographic research papers from the IACR Cryptology ePrint Archive.
Web Search
Perform Google searches and view web content with advanced bot detection avoidance.
Kluster.ai Verify
Fact-checking and verification tools using the Kluster.ai Verify API.