MCP server for searching and reading PmWiki pages with text queries and group filtering.
MCP (Model Context Protocol) server for interfacing an LLM with PmWiki.
Version française / French version
The server uses the MCP protocol with SSE (Server-Sent Events) transport to enable an LLM to interact with your PmWiki instance.
GET /sse: SSE connection to establish bidirectional communicationPOST /messages/: Receive messages from the MCP clientThe simplest method is to use the published image from Docker Hub:
docker compose up -d
If you want to build the image locally:
docker-compose.yml and comment out the image: line, then uncomment the build: . linedocker compose up -d --build
Without docker-compose, you can run directly:
docker run -d \
--name pmwiki-mcp-server \
-p 3000:3000 \
-v /path/to/your/wiki.d:/wiki_data:ro \
-e WIKI_DIR=/wiki_data \
kcofoni/pmwiki-mcp:latest
The server will be accessible at http://localhost:3000 (or http://vmtest:3000 from other machines on the network).
# Check that the server is running
docker logs pmwiki-mcp-server
# Test the SSE connection
curl -N http://localhost:3000/sse
Add this configuration to your Claude Desktop configuration file:
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"pmwiki": {
"command": "mcp-proxy",
"args": [
"--transport=sse",
"http://vmtest:3000/sse"
]
}
}
}
Important notes:
vmtest is the hostname of the machine hosting the MCP server Docker containervmtest with:
localhost if Claude Desktop runs on the same machine as the server192.168.1.100:3000/sse)mcp-proxy tool must be installed (usually provided with Claude Desktop)Once connected, your LLM will have access to:
pmwiki://Group.PageNamesearch_wiki: Search for text across all pages
query (required): Text to search forcase_sensitive (optional): Case-sensitive search (default: false)read_page: Read the complete content of a page
page_name (required): Page name (e.g., Main.HomePage or Main/HomePage)list_pages: List all wiki pages
group (optional): Filter by groupThe PmWiki directory is mounted from the host machine to the Docker container:
volumes:
- /home/docker/appdata/html/wiki.d:/wiki_data:ro
Important:
/home/docker/appdata/html/wiki.d is the path on the host machine - this is an example to adaptwiki.d directory:ro) for security reasons/wiki_data is the internal container path (do not modify)The image is publicly available on Docker Hub:
kcofoni/pmwiki-mcp:latestkcofoni/pmwiki-mcp:v1.0.2To pull the latest version:
docker pull kcofoni/pmwiki-mcp:latest
To pull a specific version:
docker pull kcofoni/pmwiki-mcp:v1.0.2
wiki.d/)# View logs in real-time
docker logs -f pmwiki-mcp-server
# Last 50 lines
docker logs --tail 50 pmwiki-mcp-server
Check that the wiki directory exists:
ls -la /home/docker/appdata/html/wiki.d
Use the list_pages tool to see all available pages. The exact PmWiki filename format must be used (e.g., Main.HomePage not Main/HomePage for the file).
Check that port 3000 is properly exposed:
docker ps | grep pmwiki-mcp-server
pmwiki-mcp/
├── pmwiki_mcp_server.py # MCP server
├── requirements.txt # Python dependencies
├── Dockerfile # Docker image
├── docker-compose.yml # Docker Compose configuration
├── README.md # This documentation (English)
└── README_fr.md # French documentation
After modifying the code:
docker compose up -d --build
This project is licensed under the MIT License - see the LICENSE file for details.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
docker run -i --rm docker.io/kcofoni/pmwiki-mcp:v1.0.4Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-kcofoni-pmwiki-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/kcofoni/pmwiki-mcp:v1.0.4"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencedocker.io/kcofoni/pmwiki-mcp:v1.0.4dockerio.github.kcofoni/pmwiki-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.