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 "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 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/javeo2022/wordpress-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server