WordPress MCP Server
Allows managing WordPress sites, including creating, updating, deleting posts and pages, managing categories and tags, uploading media, and supporting multiple WordPress sites.
Click on "Deploy 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 ServerPublish a new post titled 'Hello World' as draft"
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 for Claude Code
Claude Code から WordPress を直接操作できる MCP サーバーです。
FastMCP を使って Python で実装しており、複数サイト(blog / app など)の切り替えにも対応しています。
機能
投稿・固定ページの作成 / 取得 / 更新 / 削除
カテゴリ・タグの取得・作成
Markdown ファイル(frontmatter 付き)からワンコマンド投稿
メディアのアップロード
複数 WordPress サイトへの同時対応
Related MCP server: AutoWP MCP Server
セットアップ
1. パッケージのインストール
pip install -r requirements.txt2. 認証情報の設定
.env.example をコピーして .env を作成し、各項目を埋めてください。
cp .env.example .envWordPress の「ユーザー → プロフィール → アプリケーションパスワード」から発行した
アプリケーションパスワードを WP_BLOG_APP_PASSWORD に設定します。
3. Claude Code の MCP 設定
claude_desktop_config.json(Windows: %APPDATA%\Claude\) に追加します。
{
"mcpServers": {
"wordpress": {
"command": "python",
"args": ["C:/path/to/wp_mcp_server.py"]
}
}
}パスはご自身の環境に合わせて変更してください。
使い方
Claude Code のチャットで自然言語で操作できます。
WordPressに接続を確認してarticles/my-post.md を下書きとして投稿して最新の投稿を5件取得してMarkdown frontmatter
post_from_markdown_file ツールで使う Markdown ファイルには frontmatter を書きます。
---
title: 記事タイトル
slug: my-article-slug
status: draft # draft / publish
categories: [1, 2] # カテゴリ ID
tags: [3, 4] # タグ ID
site: blog # blog / app (複数サイト利用時)
---
ここから本文...id を書くと既存記事の更新、省略すると新規作成になります。
複数サイト対応
.env にサイトごとの認証情報を設定し、site パラメータで切り替えます。
site | 環境変数プレフィックス |
blog |
|
app |
|
動作確認環境
Python 3.11+
Xserver レンタルサーバー(Apache / PHP 8.x)
WordPress 6.x
Claude Code Desktop
ライセンス
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Live SEO workflow tools for Claude Code, Codex, and AI agents.
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Publish to self-hosted WordPress from AI agents: markdown, images, SEO, and Notion sync.
Read, edit, publish, and preview your pepita websites from Claude.
Related MCP Servers
- AlicenseCqualityAmaintenanceEnables comprehensive WordPress site management through natural language in Claude Desktop, supporting multiple sites with 59 tools for content creation, media management, user administration, and performance monitoring.711,291 npm107MIT
- AlicenseBqualityCmaintenanceConnects Claude to WordPress sites through the REST API, enabling AI-assisted content creation, publishing, media management, user administration, and site maintenance tasks through natural language.4712 npm23MIT
- AlicenseCqualityBmaintenanceEnables Claude Code to read, edit, and manage WordPress pages, posts, shortcodes, and media via the WordPress REST API.8011 npm3MIT
- FlicenseAqualityCmaintenanceEnables Claude to read context, create, and edit pages on WordPress sites via the REST API using Application Passwords.6-