ItchWPMCP
ItchWPMCP
Codex/ClaudeがWordPress REST APIを通じてWordPressコンテンツをクエリおよび編集するためのローカルMCPサーバー。
REST APIが有効で、アプリケーションパスワード認証をサポートしているすべてのWordPressサイトで使用できます。
セットアップ
WordPressのアプリケーションパスワードを作成します:
WordPress管理画面 -> ユーザー -> プロフィール -> アプリケーションパスワード.env.exampleを.envにコピーし、以下を記入します:WP_BASE_URL=https://your-wordpress-site.example WP_USERNAME=your-wordpress-username WP_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx WP_ALLOW_PRODUCTION_WRITES=false依存関係をインストールします:
npm installサーバーを実行します:
$env:NODE_OPTIONS='--use-system-ca' npm startWindowsでNodeがシステム証明書ストアを必要とする場合、
NODE_OPTIONS=--use-system-caが役立つことがあります。
Related MCP server: mcp-wordpress
ツール
wordpress_list_pages: WordPressページの一覧を表示します。wordpress_get_page: IDでページを取得します。wordpress_create_page: ページを作成します(デフォルトは下書きステータス)。wordpress_clone_page: 既存のページを複製して新しい下書きページを作成します。wordpress_update_page: タイトル、コンテンツ、抜粋、スラッグ、ステータス、親、またはメニュー順序を更新します。wordpress_update_page_status: ページステータスのみを更新します。wordpress_delete_page: 確認付きでページをゴミ箱へ移動または削除します。wordpress_list_posts: WordPress投稿の一覧を表示します。wordpress_get_post: IDで投稿を取得します。wordpress_create_post: 投稿を作成します(デフォルトは下書きステータス)。wordpress_update_post: 投稿を更新します。wordpress_delete_post: 確認付きで投稿をゴミ箱へ移動または削除します。wordpress_list_media: メディアライブラリのアイテム一覧を表示します。wordpress_upload_media: ローカルファイルをメディアライブラリにアップロードします。wordpress_list_categories: 投稿カテゴリーの一覧を表示します。wordpress_create_category: 投稿カテゴリーを作成します。wordpress_list_tags: 投稿タグの一覧を表示します。wordpress_create_tag: 投稿タグを作成します。wordpress_list_plugins: 認証済みユーザーに権限がある場合、プラグインの一覧を表示します。wordpress_update_plugin_status: インストール済みのプラグインを有効化または無効化します。wordpress_get_settings: 一般サイト設定を読み取ります。wordpress_update_settings: 選択した一般サイト設定を更新します。wordpress_list_users: 認証済みユーザーに権限がある場合、ユーザーの一覧を表示します。wordpress_list_menus: RESTエンドポイントが利用可能な場合、メニューの一覧を表示します。wordpress_list_menu_items: RESTエンドポイントが利用可能な場合、メニューアイテムの一覧を表示します。wordpress_rest_request: 高度なREST APIエスケープハッチ。
書き込みツールはステージングURLで有効になっています。WP_BASE_URL が本番環境に変更された場合、.env で WP_ALLOW_PRODUCTION_WRITES=true が設定されていない限り、書き込みはブロックされます。
他のWordPressサイトを使用する
そのWordPressサイトの管理画面でアプリケーションパスワードを作成し、.env を更新します:
WP_BASE_URL=https://another-wordpress-site.example
WP_USERNAME=your-wordpress-username
WP_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx
WP_ALLOW_PRODUCTION_WRITES=false本番URLで意図的に書き込みツールを有効にしたい場合を除き、WP_ALLOW_PRODUCTION_WRITES=false を維持してください。
他の人に移植する
この
ItchWPMCPフォルダーを相手のコンピューターにコピーするか、プライベート/パブリックリポジトリとして公開します。フォルダー内で
npm installを実行します。.env.exampleから.envファイルを作成します。相手のWordPress管理画面でアプリケーションパスワードを作成します:
ユーザー -> プロフィール -> アプリケーションパスワード相手のサイトURL、ユーザー名、アプリパスワードを
.envに入力します。相手のMCPクライアントにMCPサーバーを登録します。
.env ファイルをコミットしないでください。アプリケーションパスワードは各ユーザー/サイトのローカルに保持する必要があります。
Codex設定
~/.codex/config.toml に以下を追加します:
[mcp_servers.itch_wp_mcp]
command = "node"
args = ["C:\\path\\to\\ItchWPMCP\\src\\server.js"]
enabled = true
startup_timeout_sec = 20
tool_timeout_sec = 60
[mcp_servers.itch_wp_mcp.env]
WP_BASE_URL = "https://your-wordpress-site.example"
WP_USERNAME = "your-wordpress-username"
WP_APP_PASSWORD = "xxxx xxxx xxxx xxxx xxxx xxxx"
WP_ALLOW_PRODUCTION_WRITES = "false"
NODE_OPTIONS = "--use-system-ca"Windowsでは、Nodeのフルパスを使用する方が信頼性が高い場合があります:
command = "C:\\Program Files\\nodejs\\node.exe"Claude Desktop設定
Claude Desktopの claude_desktop_config.json の mcpServers に以下を追加します:
{
"mcpServers": {
"itch_wp_mcp": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": [
"C:\\path\\to\\ItchWPMCP\\src\\server.js"
],
"env": {
"WP_BASE_URL": "https://your-wordpress-site.example",
"WP_USERNAME": "your-wordpress-username",
"WP_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx",
"WP_ALLOW_PRODUCTION_WRITES": "false",
"NODE_OPTIONS": "--use-system-ca"
}
}
}
}Windowsの場合、Claude Desktopの設定は通常ここにあります:
%APPDATA%\Claude\claude_desktop_config.json設定を変更した後は、Claude Desktopを再起動してください。
マルチサイト設定
すべてのWordPressサイトに対して個別のItchWPMCPコピーは必要ありません。コードベースを1つ保持し、それぞれ異なる環境変数を持つ複数のMCPサーバーを登録してください。
Codexマルチサイトの例
[mcp_servers.wp_erm_staging]
command = "C:\\Program Files\\nodejs\\node.exe"
args = ["C:\\Users\\hesha\\Documents\\GitHub\\ItchWPMCP\\src\\server.js"]
enabled = true
startup_timeout_sec = 20
tool_timeout_sec = 60
[mcp_servers.wp_erm_staging.env]
WP_BASE_URL = "https://staging.erm.buzzinn.co"
WP_USERNAME = "erm-admin"
WP_APP_PASSWORD = "xxxx xxxx xxxx xxxx xxxx xxxx"
WP_ALLOW_PRODUCTION_WRITES = "false"
NODE_OPTIONS = "--use-system-ca"
[mcp_servers.wp_client_site]
command = "C:\\Program Files\\nodejs\\node.exe"
args = ["C:\\Users\\hesha\\Documents\\GitHub\\ItchWPMCP\\src\\server.js"]
enabled = true
startup_timeout_sec = 20
tool_timeout_sec = 60
[mcp_servers.wp_client_site.env]
WP_BASE_URL = "https://client-site.example"
WP_USERNAME = "client-admin"
WP_APP_PASSWORD = "xxxx xxxx xxxx xxxx xxxx xxxx"
WP_ALLOW_PRODUCTION_WRITES = "false"
NODE_OPTIONS = "--use-system-ca"Claudeマルチサイトの例
{
"mcpServers": {
"wp_erm_staging": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": ["C:\\Users\\hesha\\Documents\\GitHub\\ItchWPMCP\\src\\server.js"],
"env": {
"WP_BASE_URL": "https://staging.erm.buzzinn.co",
"WP_USERNAME": "erm-admin",
"WP_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx",
"WP_ALLOW_PRODUCTION_WRITES": "false",
"NODE_OPTIONS": "--use-system-ca"
}
},
"wp_client_site": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": ["C:\\Users\\hesha\\Documents\\GitHub\\ItchWPMCP\\src\\server.js"],
"env": {
"WP_BASE_URL": "https://client-site.example",
"WP_USERNAME": "client-admin",
"WP_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx",
"WP_ALLOW_PRODUCTION_WRITES": "false",
"NODE_OPTIONS": "--use-system-ca"
}
}
}
}.env ファイルはローカルのフォールバックとしてのみ機能します。CodexまたはClaudeによって提供される場合、サイトごとのMCP環境変数が優先されます。
安全性モデル
新しいページ/投稿はデフォルトで
draft(下書き)になります。破壊的なツールには
confirmDelete=trueが必要です。WP_ALLOW_PRODUCTION_WRITES=trueが設定されていない限り、ステージング環境以外への書き込みはブロックされます。wordpress_rest_requestは/wp-json/以下のパスのみを許可します。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceHosted MCP server that bridges Claude.ai with one or more WordPress sites.5ISC
- AlicenseAqualityBmaintenanceA Model Context Protocol server that gives Claude (or any MCP-compatible LLM) direct access to a self-hosted WordPress site over its REST API.73MIT
- AlicenseNot gradedqualityBmaintenanceA local server that enables Claude or other MCP tools to manage WordPress posts and media via REST API.21MIT
- FlicenseNot gradedqualityCmaintenanceA local MCP server that bridges Claude Desktop to your WordPress site via the WordPress MCP Adapter. It dynamically discovers and proxies all tools, resources, and prompts registered through the WordPress Abilities API.
Related MCP Connectors
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/manofsadness/ItchWPMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server