PukiWiki MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PukiWiki MCP Server
PukiWiki サイトを MCP (Model Context Protocol) のツールとして公開する Python サーバーです。 Claude などの MCP クライアントから、PukiWiki のページを閲覧・検索・作成・更新・削除できます。
Wiki 側に何も設置しません。PukiWiki の通常の画面(HTTP)を使うので、PHP のファイルやプラグインの追加は不要です
接続先は環境変数で指定するだけ(必須は
PUKIWIKI_URLのみ)EUC-JP / UTF-8 のどちらのサイトにも対応(送受信の境界で自動変換)
依存は
mcpとhttpxだけ(HTML / XML の解析は標準ライブラリ)
検証状況:本物の PukiWiki で確かめたのは PukiWiki 1.5.4(EUC-JP) です。
公開ツール
ツール | 種別 | 説明 |
| 読 | 全ページ名の一覧 |
| 読 | ページのソース取得 |
| 読 | ページの存在確認 |
| 読 | 全文検索(AND/OR) |
| 読 | 最新差分の取得 |
| 読 | 最近の更新一覧(RSS 由来) |
| 書 | ページ作成 / 全文上書き |
| 書 | 末尾(または先頭)追記 |
| 書 | ページ削除 |
書き込み系のツールは、Wiki の内容を実際に変更します。AI に渡すときは、実行の前に内容を確認する設定にしてください。
既知の制限:書き込みは、送る直前にページの版(digest)を取り直して送ります。そのため、read_page で読んでから書き込むまでの間に人が編集すると、その編集は上書きされます(検知できるのは、ほぼ同時の書き込みだけです)。
Related MCP server: mediawiki-mcp-server
使い方(uv)
uv があれば、インストールせずに起動できます。
PUKIWIKI_URL=https://wiki.example.com/ uvx --from git+https://github.com/epochnet/pukiwiki-mcp pukiwiki-mcpClaude Desktop / Claude Code への登録例
{
"mcpServers": {
"pukiwiki": {
"command": "uvx",
"args": ["--from", "git+https://github.com/epochnet/pukiwiki-mcp", "pukiwiki-mcp"],
"env": {
"PUKIWIKI_URL": "https://wiki.example.com/",
"PUKIWIKI_ENCODING": "euc-jp"
}
}
}
}Claude Code ならコマンドでも登録できます。
claude mcp add pukiwiki \
-e PUKIWIKI_URL=https://wiki.example.com/ -e PUKIWIKI_ENCODING=euc-jp \
-- uvx --from git+https://github.com/epochnet/pukiwiki-mcp pukiwiki-mcp手元のリポジトリから動かす
git clone https://github.com/epochnet/pukiwiki-mcp.git
cd pukiwiki-mcp
uv sync # .venv を作って依存を入れる
PUKIWIKI_URL=https://wiki.example.com/ uv run pukiwiki-mcp環境変数
.env.example を参照。必須は PUKIWIKI_URL のみです。
変数 | 必須 | 既定 | 説明 |
| ✅ | — | ベース URL(例 |
|
| Wiki の内部エンコーディング( | |
|
| HTTP タイムアウト秒 | |
|
| TLS 証明書検証 | |
|
| User-Agent | |
|
| ログレベル(stderr 出力) | |
| (空) | Basic 認証(既定なし) | |
|
| MCP トランスポート( | |
|
| HTTP トランスポート時の待ち受けアドレス | |
|
| HTTP トランスポート時のポート |
HTTP で待ち受ける場合の注意
streamable-http / sse には認証がありません。待ち受けると、そのアドレスに届く人は誰でも Wiki を読み書きできます。
既定の待ち受けは
127.0.0.1(この PC の中からだけ)ですほかのマシンから使う場合は、認証のあるリバースプロキシや VPN の内側に置いてください。
PUKIWIKI_MCP_HOST=0.0.0.0でそのまま外に公開しないでください
Docker で起動
A. HTTP サービスとして起動(docker compose up)
イメージはリリースごとに ghcr.io/epochnet/pukiwiki-mcp に置いています(:latest と :<バージョン>)。
cp .env.example .env # PUKIWIKI_URL を編集
docker compose pull # 手元のソースからビルドするときは、代わりに up に --build を付ける
docker compose up # http://127.0.0.1:8000/mcp で待受コンテナの中では
0.0.0.0で待ち受け、ホスト側には127.0.0.1:8000だけで公開します(compose.yml)接続設定は
.envから読み込みます。.envが無い場合は、PUKIWIKI_URLを環境変数で渡してください
HTTP トランスポート対応の MCP クライアントからは http://127.0.0.1:8000/mcp を指定します。
B. stdio として起動(docker run -i)
docker run -i --rm \
-e PUKIWIKI_MCP_TRANSPORT=stdio \
-e PUKIWIKI_URL=https://wiki.example.com/ \
-e PUKIWIKI_ENCODING=euc-jp \
ghcr.io/epochnet/pukiwiki-mcp:latestイメージの既定のトランスポートは
streamable-http(compose 用)です。stdio で使うときは上のように上書きします。
開発
uv sync # 開発用の依存(pytest)も入る
uv run pytest設計の資料は docs/ にあります(要件定義・基本設計・詳細設計・開発・レビュー・テスト)。
ライセンス
MIT(LICENSE)。Copyright (c) 2026 株式会社EPOCH-NET
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP for the Eco game wiki: search, Markdown pages, and wiki_* lookups. No keys, no writes.
Shared project wiki for AI agents: read and write pages, next actions, and activity logs over MCP.
Wikidata MCP — wraps Wikidata API (wikidata.org/w/api.php)
Connect to your MediaWiki using simple credentials and manage content without OAuth. Search, read,…
Related MCP Servers
- AlicenseBqualityBmaintenanceA secure MCP server for interacting with MediaWiki instances, allowing users to search, read, create, and manage wiki content like pages, categories, and files. It supports both public and private wikis with comprehensive authentication for full read and write operations.19AGPL 3.0
- AlicenseAqualityAmaintenanceMCP server for MediaWiki wikis. Search, read, edit, and manage wiki content from AI assistants. Includes formatting, link checking, revision history, and markdown conversion.4323MIT
- AlicenseNot gradedqualityDmaintenanceMinimal MCP server for Yandex Wiki that enables reading, writing, searching, and managing wiki pages and attachments.2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for interfacing an LLM with PmWiki, enabling search, read, and listing of wiki pages via tools and resources.MIT