Skip to main content
Glama

Wiki.js MCP Server

Wiki.js統合のためのModel Context Protocolサーバー - AIアシスタントから直接Wikiページを作成・管理できます。

Claude Codeから使用する場合? wikijs-plugin を使用してください。このサーバー(Pythonに移植)とdocs-wikiスキルを組み合わせた単一の プラグインで、Claude Codeマーケットプレイスメカニズムを介してインストール可能です。手動でのクローン、ビルド、設定手順は不要です。 設定はこのリポジトリの.envから~/.wikijs-plugin/.envに移動します(/wikijs-plugin:setupで設定)。 ランタイムはNode.js 18+からPython 3.11+に変更されます。ツール名 (wikijs_create_page、...)は変更されていません。このリポジトリは引き続き修正を受け付け、 Claude Code以外のMCPクライアント向けにサーバーを直接実行する方法として残ります(以下のクイックスタートを参照)。

既存のインストールを移行する場合: ~/.claude/mcp-servers/wikijs/.env を ~/.wikijs-plugin/.env にコピーします(同じキー、同じ値 — 新しいAPIトークンは不要)。その後、 ツールが二重登録されないように、~/.claude.json から古い wikijs エントリを削除します。

v2.0.0 - 大規模リファクタリング

このバージョンでは、MCPベストプラクティスに従った完全な書き換えが含まれています:

  • TypeScript - 厳格モードによる完全な型安全性

  • モダンSDK - McpServer.tool() APIを使用したMCP SDK v1.24+

  • Zodバリデーション - すべてのツールに対するランタイム入力検証

  • サービスプレフィックス付きツール - すべてのツールは名前空間の明確化のためにwikijs_プレフィックスを使用

  • ツールアノテーション - 適切なreadOnlyHint、destructiveHintなど

  • ページネーションサポート - リスト操作はhas_more、next_offset、total_countを返す

  • 文字数制限 - 大きなコンテンツは明確な通知とともに切り詰められます

Related MCP server: WikiJS MCP Server

ドキュメント

完全なドキュメントとFAQ

包括的なガイドには以下が含まれます:

  • インストール手順

  • 設定例

  • パラメータ付きの全7つのMCPツール

  • GraphQL API統合の詳細

  • トラブルシューティングガイド

クイックスタート

Claude Code以外のMCPクライアント向け(Claude Codeについては上記の注意事項を参照):

# 1. Clone repository
git clone https://github.com/markus-michalski/wikijs-mcp-server.git
cd wikijs-mcp-server

# 2. Install dependencies
npm install

# 3. Build TypeScript
npm run build

# 4. Configure environment
cp .env.example .env
# Edit .env with your Wiki.js API credentials

# 5. Point your MCP client's config at dist/index.js and restart it

要件

  • Node.js 18+

  • Wiki.jsインスタンス(v2.xまたはv3.x)

  • ページ管理権限を持つWiki.js APIトークン

利用可能なツール

ツール

説明

アノテーション

wikijs_create_page

MarkdownまたはHTMLで新しいWikiページを作成

destructiveHint: false

wikijs_update_page

既存のページを更新(コンテンツ、タイトル、タグ)

idempotentHint: true

wikijs_get_page

ページの完全なコンテンツとメタデータを取得

readOnlyHint: true

wikijs_list_pages

ページネーションとフィルタリングでページを一覧表示

readOnlyHint: true

wikijs_search_pages

Wikiページ全体の全文検索

readOnlyHint: true

wikijs_delete_page

ページを完全に削除

destructiveHint: true

wikijs_move_page

ページを新しいパスに移動

destructiveHint: false

開発

# Development with hot-reload
npm run dev

# Build for production
npm run build

# Type checking
npm run typecheck

プロジェクト構造

wikijs-mcp-server/
├── src/
│   ├── index.ts           # Main server entry point
│   ├── constants.ts       # Shared constants (CHARACTER_LIMIT, etc.)
│   ├── types.ts           # TypeScript type definitions
│   ├── schemas/           # Zod validation schemas
│   ├── services/          # API client and error handling
│   └── tools/             # Tool implementations
├── dist/                  # Compiled JavaScript
├── evaluation.xml         # MCP evaluation test questions
└── package.json

ライセンス

MITライセンス - 詳細はLICENSEを参照

作者

Markus Michalski

リンク

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server for Wiki.js projects that enables full-text search, page retrieval, and page management capabilities. It allows LLMs to interact with wiki content through specialized tools for searching, listing, and creating pages.
    ISC
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that provides a unified interface to manage Wiki.js pages, users, and groups via GraphQL API, enabling AI agents to create, read, update, and delete content and perform administrative tasks.
    29 npm
    14
    MIT