WordPress MCP Server
Allows managing multiple WordPress sites, including listing, creating, updating, and deleting posts, managing categories and tags, uploading media, and moderating comments via the WordPress REST API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WordPress MCP Servercreate a draft post on blog-a about summer sale"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WordPress MCP Server(セルフホスト・マルチサイト対応版)
自前運営の複数WordPressサイトを、WordPress標準のREST API (wp-json/wp/v2) 経由で
1つのMCPサーバーからまとめて操作するためのローカルサーバーです。
各ツール呼び出し時に site パラメータ(エイリアス)でどのサイトを操作するか指定します。
投稿の一覧・作成・更新・削除、カテゴリ/タグ管理、メディアアップロード、コメント承認などができます。
1. WordPress側の準備:サイトごとにアプリケーションパスワードを発行する
管理するサイトそれぞれで以下を行います。WordPress 5.6以降なら追加プラグイン不要です。
各WordPressサイトの管理画面にログイン
ユーザー→プロフィールを開くページ下部の「アプリケーションパスワード」欄に任意の名前(例:
claude-mcp)を入力し、 「新規追加」をクリック表示される
xxxx xxxx xxxx xxxx xxxx xxxx形式のパスワードをコピーしておく (この画面を閉じると二度と表示されません)
⚠️ サイトが
http://の場合、多くの環境でアプリケーションパスワード機能が無効化されます。 常時HTTPS化(SSL)されているサイトで利用してください。
⚠️ セキュリティプラグイン(Wordfenceなど)やレンタルサーバーのWAFが REST APIやBasic認証をブロックしている場合、事前に許可設定が必要です。
Related MCP server: WordPress MCP Server
2. このサーバーのセットアップ
cd wordpress-mcp
npm installsites.json.example を sites.json にコピーして、管理する全サイトの情報を書きます
(このファイルには全サイトの認証情報が入るので、絶対に公開・共有・Gitコミットしないでください。
.gitignore に含めています)。
cp sites.json.example sites.json{
"blog-a": {
"url": "https://blog-a.example.com",
"username": "user-a",
"app_password": "xxxx xxxx xxxx xxxx xxxx xxxx"
},
"blog-b": {
"url": "https://blog-b.example.com",
"username": "user-b",
"app_password": "yyyy yyyy yyyy yyyy yyyy yyyy"
},
"blog-c": {
"url": "https://blog-c.example.com",
"username": "user-c",
"app_password": "zzzz zzzz zzzz zzzz zzzz zzzz"
}
}キー(blog-aなど)が、会話中でサイトを指定するときのエイリアス名になります。好きな名前を付けてOKです。
サイトを増やしたいときは、このファイルにエントリを追加するだけです(コードの変更は不要)。
3. Claude Desktop / Claude Code に登録する
このサーバーは純粋なNode.js製で、OS依存のコードは使っていないため macでもWindowsでも同じように動作します。
唯一の前提条件は Node.js 18以降がインストールされていることです(node --version で確認)。
マルチサイト対応版はサーバー登録は1つだけで済みます(サイトの切り替えはツール呼び出し時のsiteパラメータで行うため)。
設定ファイルの場所はOSによって異なります。
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json(Claude Desktopの設定 → Developer → Edit Configから開くのが確実です)
macOSの場合の例:
{
"mcpServers": {
"wordpress-multisite": {
"command": "node",
"args": ["/Users/あなたの名前/wordpress-mcp/index.js"],
"env": {
"SITES_CONFIG_PATH": "/Users/あなたの名前/wordpress-mcp/sites.json"
}
}
}
}Windowsの場合の例(パス区切りは \\ でエスケープするか / を使う):
{
"mcpServers": {
"wordpress-multisite": {
"command": "node",
"args": ["C:\\Users\\あなたの名前\\wordpress-mcp\\index.js"],
"env": {
"SITES_CONFIG_PATH": "C:\\Users\\あなたの名前\\wordpress-mcp\\sites.json"
}
}
}
}SITES_CONFIG_PATH を省略した場合は、index.jsと同じフォルダにある sites.json を自動的に探しに行きます。
Windows版Claude Desktop(ストア/MSIXインストール)では、「Edit Config」ボタンが開くファイルと 実際に読み込まれるファイルが異なる既知の不具合が報告されています。設定してもツールが表示されない場合は、
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.jsonも確認してください。
Claude Codeの場合は claude mcp add コマンド、もしくは同様の設定を
プロジェクトの .mcp.json に追加してください(こちらはmac/Windows/Linuxで共通の仕組みです)。
設定後、Claude Desktop/Claude Codeを再起動すると wp_list_posts などのツールが使えるようになります。
4. 使い方
まず wp_list_sites で設定済みサイトのエイリアス一覧を確認し、以降のツール呼び出しで
site: "blog-a" のように指定します。
例:「blog-bの下書き一覧を見せて」「blog-cに新しい記事を下書きで作成して」
5. 使えるツール一覧
ツール名 | 説明 |
| 設定済みサイトのエイリアスとURL一覧を取得(最初に確認推奨) |
| 記事の一覧・検索(ステータス、カテゴリ等で絞り込み可) |
| 記事詳細(本文含む)を取得 |
| 記事を新規作成(既定は下書き) |
| 既存記事を更新 |
| 記事を削除(既定はゴミ箱、 |
| カテゴリ一覧 |
| カテゴリ作成 |
| タグ一覧 |
| URL指定で画像をメディアライブラリにアップロード |
| メディア一覧 |
| コメント一覧(承認待ちの確認など) |
| コメントの承認/非承認/スパム/ゴミ箱操作 |
(wp_list_sites 以外は全て第一引数に site エイリアスが必要です)
6. 動作確認
SITES_CONFIG_PATH=/絶対パス/sites.json node index.js「WordPress MCP server (multisite) がstdioで起動しました。登録サイト: ...」と表示され、 設定した全エイリアスが列挙されれば起動成功です。
7. 注意事項
wp_delete_postにforce: trueを渡すと完全削除され復元できません。実行前に必ず確認してください。アプリケーションパスワードはユーザーの権限をそのまま引き継ぎます。専用の投稿者/編集者アカウントを 作って、そのアプリケーションパスワードを使うことをおすすめします。
記事本文(
content)はHTML(またはGutenbergブロックHTML)として扱われます。Markdownをそのまま 渡すとタグとして表示されてしまうので注意してください。sites.jsonには全サイトの認証情報がまとまって入るため、ファイルのアクセス権限やバックアップの 取り扱いに注意してください。
This server cannot be installed
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
- Alicense-qualityDmaintenanceA comprehensive MCP server for WordPress automation that enables users to manage content, themes, and site configurations using AI-driven workflows and the WordPress REST API. It provides a wide array of tools for site planning, management, and optimization compatible with tools like Cursor and Claude.371ISC
- Alicense-qualityBmaintenanceAn MCP server that enables AI agents to manage WordPress sites, including Elementor page building, content CRUD, plugin management, and site configuration via the WordPress REST API.37ISC
- Alicense-qualityDmaintenanceA lightweight MCP server that connects to WordPress via REST API, enabling content management (posts, pages, categories, etc.) and site configuration through natural language commands.Apache 2.0
- Alicense-qualityDmaintenanceComprehensive MCP server to manage WordPress sites via natural language, enabling content creation, SEO, and multi-site administration through AI tools like Claude Desktop.888MIT
Related MCP Connectors
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
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/nao9net/wp-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server