Pmwiki Mcp

io.github.kcofoni由 GitHub 账号 kcofoni 发布v1.0.4更新于 Oct 24, 2026

MCP server for searching and reading PmWiki pages with text queries and group filtering.

已验证STDIO仅桌面文件与存储知识与记忆

概览

AI 生成的概览

一个基于 Docker 的本地 MCP 服务器,让助手搜索、列出并读取 PmWiki wiki.d 目录中的页面。

可以做什么
按文本搜索所有 wiki 页面,可选择区分大小写。列出全部 wiki 页面,并可按分组过滤。读取指定页面的完整内容,例如 Main.HomePage。将每个 wiki 页面作为资源公开,以分组和页面名寻址。
适用场景
适合让助手基于现有 PmWiki 站点回答问题、查找或引用页面内容,或浏览 wiki 的分组,而不做编辑。它是只读的,适合检索与参考用途,而非撰写内容。
运行要求
以本地 Docker 容器运行(镜像 kcofoni/pmwiki-mcp),通过 SSE 暴露 3000 端口;必须设置 WIKI_DIR 环境变量指向 PmWiki 的 wiki.d 目录,并以只读方式挂载。需要 mcp-proxy 之类的客户端代理才能让 Claude Desktop 连接 SSE 端点。
安装前请注意
服务器会读取挂载进容器的 wiki.d 目录,因此只应暴露你愿意让助手访问的目录;README 建议使用只读挂载。3000 端口的 SSE 端点未声明任何身份验证,网络上能访问它的人都可以查询该 wiki。未描述写入、发送或删除类工具。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Pmwiki Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

PmWiki MCP Server

MCP (Model Context Protocol) server for interfacing an LLM with PmWiki.

Version française / French version

Architecture

The server uses the MCP protocol with SSE (Server-Sent Events) transport to enable an LLM to interact with your PmWiki instance.

Endpoints

  • GET /sse: SSE connection to establish bidirectional communication
  • POST /messages/: Receive messages from the MCP client

Getting Started

With Docker Compose (Docker Hub image)

The simplest method is to use the published image from Docker Hub:

bash
docker compose up -d

With Docker Compose (local build)

If you want to build the image locally:

  1. Edit docker-compose.yml and comment out the image: line, then uncomment the build: . line
  2. Run:
bash
docker compose up -d --build

Direct Docker Usage

Without docker-compose, you can run directly:

bash
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).

Verification

bash
# Check that the server is runningdocker logs pmwiki-mcp-server
# Test the SSE connectioncurl -N http://localhost:3000/sse

Client Configuration

Claude Desktop

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

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 container
  • Replace vmtest with:
    • localhost if Claude Desktop runs on the same machine as the server
    • The hostname or IP address of the machine running the Docker container (e.g., 192.168.1.100:3000/sse)
  • The mcp-proxy tool must be installed (usually provided with Claude Desktop)
  • The proxy handles the SSE connection between Claude Desktop and the MCP server

Available Features

Once connected, your LLM will have access to:

Resources

  • All wiki pages are exposed as resources with the URI pmwiki://Group.PageName

Tools

  1. search_wiki: Search for text across all pages

    • Parameters:
      • query (required): Text to search for
      • case_sensitive (optional): Case-sensitive search (default: false)
  2. read_page: Read the complete content of a page

    • Parameters:
      • page_name (required): Page name (e.g., Main.HomePage or Main/HomePage)
  3. list_pages: List all wiki pages

    • Parameters:
      • group (optional): Filter by group

Configuration

Wiki Directory Mount

The PmWiki directory is mounted from the host machine to the Docker container:

yaml
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 adapt
  • Replace this path with the actual path to your PmWiki wiki.d directory
  • The volume is mounted read-only (:ro) for security reasons
  • /wiki_data is the internal container path (do not modify)

Docker Hub

The image is publicly available on Docker Hub:

  • Repository: kcofoni/pmwiki-mcp
  • Latest tag: kcofoni/pmwiki-mcp:latest
  • Stable version: kcofoni/pmwiki-mcp:v1.0.2

To pull the latest version:

bash
docker pull kcofoni/pmwiki-mcp:latest

To pull a specific version:

bash
docker pull kcofoni/pmwiki-mcp:v1.0.2

Technical Architecture

  • Language: Python 3.11
  • Web Framework: Starlette + Uvicorn
  • Protocol: MCP over SSE
  • Page Format: PmWiki (files in wiki.d/)

Logs

bash
# View logs in real-timedocker logs -f pmwiki-mcp-server
# Last 50 linesdocker logs --tail 50 pmwiki-mcp-server

Troubleshooting

Server won't start

Check that the wiki directory exists:

bash
ls -la /home/docker/appdata/html/wiki.d

404 error on a page

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).

SSE connection fails

Check that port 3000 is properly exposed:

bash
docker ps | grep pmwiki-mcp-server

Development

File Structure

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

Code Modification

After modifying the code:

bash
docker compose up -d --build

License

This project is licensed under the MIT License - see the LICENSE file for details.

来源:README.md,提交 89fffea

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分