WordPress MCP Server

WordPress MCP Server

Enables Claude Code to directly manage WordPress sites via natural language, including posts, pages, categories, tags, media, and multiple site support.

Category
Visit Server

README

WordPress MCP Server for Claude Code

Claude Code から WordPress を直接操作できる MCP サーバーです。
FastMCP を使って Python で実装しており、複数サイト(blog / app など)の切り替えにも対応しています。

機能

  • 投稿・固定ページの作成 / 取得 / 更新 / 削除
  • カテゴリ・タグの取得・作成
  • Markdown ファイル(frontmatter 付き)からワンコマンド投稿
  • メディアのアップロード
  • 複数 WordPress サイトへの同時対応

セットアップ

1. パッケージのインストール

pip install -r requirements.txt

2. 認証情報の設定

.env.example をコピーして .env を作成し、各項目を埋めてください。

cp .env.example .env

WordPress の「ユーザー → プロフィール → アプリケーションパスワード」から発行した
アプリケーションパスワードを 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 WP_BLOG_*
app WP_APP_*

動作確認環境

  • Python 3.11+
  • Xserver レンタルサーバー(Apache / PHP 8.x)
  • WordPress 6.x
  • Claude Code Desktop

ライセンス

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured