DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:mcp

Model Context Protocol Plugin

Compatible with DokuWiki

No compatibility info given!

plugin Make the Remote API available as MCP server

Last updated on
2025-07-02
Provides
CSS/JS-only
Repository
Source

Tagged with !experimental, ai

This is a proof-of-concept plugin! This plugin implements a Model Context Protocol (MCP) server for DokuWiki. This means you can give your MCP-capable AI client access to DokuWiki API calls as LLM tools.

It is basically a thin wrapper around the Remote API. It uses the new (March 2025) Streaming HTTP transport.

Note: even though not clearly defined in the MCP specification, some tools seem not to like dots in tool names. Thus this plugin converts them into underscores. Eg. the DokuWiki API call core.getVersion becomes the core_getVersion tool in this plugin.

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Usage

First enable and configure the Remote API. Then configure your client to use https://example.com/dokuwiki/lib/plugins/mcp/mcp.php (adjust to your base URL as needed) as remote MCP tool server. Be sure to also set an access token via the Bearer Auth header.

Below is an example in MCP Inspector:

MCP Inspector

Tools not supporting the streaming HTTP transport natively yet, can use the mcp-remote tool.

{
  "mcpServers": {
    "dokuwiki": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://example.com/dokuwiki/lib/plugins/mcp/mcp.php",
        "--header",
        "Authorization: Bearer mytoken"
      ],
    },
  }
}
plugin/mcp.txt · Last modified: by michaelsy

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki