mcpField
W
Wikijs Mcp

Wikijs Mcp

Local
github.com/RicardoCenciMemory & Knowledge6Updated 61w ago

About Wikijs Mcp

Wikijs Mcp connects AI assistants to Wiki.js instances to search and retrieve wiki content. It can fetch pages by ID or path and locale, or list all pages, using stdio or streamable HTTP transport.

Key features

  1. 01Search pages by query
  2. 02Retrieve pages by ID
  3. 03Retrieve pages by path and locale
  4. 04List all wiki pages
  5. 05Use stdio or streamable HTTP

Use cases

  1. 01Find wiki pages on a topic
  2. 02Fetch a page by its ID
  3. 03Retrieve a localized page by path
  4. 04Connect over streamable HTTP

MCP support

The MCP server exposes Wiki.js search and page-retrieval tools to AI clients. It supports stdio and streamable HTTP transports.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"wikijs": {
"command": "npx",
"args": [
"-y",
"wikijs-mcp"
],
"env": {
"WIKIJS_URL": "<WIKIJS_URL>",
"WIKIJS_API_KEY": "<WIKIJS_API_KEY>"
}
}
}
}
Run commandnpx -y wikijs-mcp
Environment variables to set
WIKIJS_URL
WIKIJS_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmwikijs-mcp

Tools

4

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
localestringNoOptional locale for the search (e.g., "en")
pathstringNoOptional path to limit search scope
querystringYesSearch query to find pages

Details

From the project README

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

  1. Log into your WikiJS instance as an administrator
  2. Go to Administration > API Access
  3. Create a new API key with appropriate permissions
  4. Copy the generated key to your .env file

Development

  1. Clone the repository:
git clone https://github.com/RicardoCenci/wikijs-mcp.git
cd wikijs-mcp
  1. Install dependencies:
npm install
  1. Copy the environment template and fill out its contents
cp env.example .env
  1. Build the project If you have make installed:
make build
  1. Deploy the WikiJS instance for testing
docker compose up -d

Usage

npx wikijs-mcp

Environment Variables

VariableDescriptionRequiredAllowed ValuesDefault
WIKIJS_URLURL of your WikiJS instanceYes--
WIKIJS_API_KEYWikiJS API keyYes--
TRANSPORT_METHODThe transport methodNostdio, streamable-httpstdio
TRANSPORT_OPTIONS_CORS_ORIGINCors Origin (only on streamable-http)No-*
TRANSPORT_OPTIONS_CORS_HEADERSCors Headers, comma separated (only on streamable-http)No-Content-Type=mcp-session-id
TRANSPORT_OPTIONS_CORS_METHODSCors Methods, comma separated (only on streamable-http)No-GET,POST,OPTIONS
TRANSPORT_OPTIONS_SESSION_TIMEOUT_MSSession timeout (only on streamable-http)No-60000

License

This project is licensed under the MIT License.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.