MCP WordPress CrunchTools
MCP WordPress CrunchTools
WordPress コンテンツ管理のためのセキュアな MCP (Model Context Protocol) サーバー。自身の作業について公開する開発者向けに設計されています。
概要
この MCP サーバーは以下のように設計されています:
デフォルトでセキュア - 包括的な入力検証、資格情報の保護、SSRF 防止
サードパーティサービスなし - stdio 経由でローカル実行され、資格情報がマシンから流出することはありません
クロスプラットフォーム - Linux、macOS、Windows で動作
自動更新 - GitHub Actions が CVE を監視し、依存関係を更新
コンテナ化 -
quay.io/crunchtools/mcp-wordpressで利用可能
Related MCP server: TypeScript WordPress MCP Server
命名規則
コンポーネント | 名前 |
GitHub リポジトリ | |
コンテナ |
|
Python パッケージ (PyPI) |
|
CLI コマンド |
|
モジュールインポート |
|
機能
30 のツール - 投稿、ページ、メディア、コメント用
セキュリティ重視: 資格情報の保護、入力検証、SSRF 防止
開発者ワークフロー: 予約投稿、リビジョン、検索
簡単な統合: Claude Code やその他の MCP クライアントと連携
インストール
uvx を使用 (推奨)
uvx mcp-wordpress-crunchtoolspip を使用
pip install mcp-wordpress-crunchtools
mcp-wordpress-crunchtoolsコンテナを使用
# Create a shared upload directory (required before first run)
mkdir -p ~/.local/share/mcp-uploads-downloads
podman run -v ~/.local/share/mcp-uploads-downloads:/tmp/mcp-uploads:z \
-e WORDPRESS_URL=https://example.com \
-e WORDPRESS_USERNAME=admin \
-e WORDPRESS_APP_PASSWORD='xxxx xxxx xxxx xxxx' \
quay.io/crunchtools/mcp-wordpressSELinux に関する注意:
:Z(大文字、プライベート) ではなく:z(小文字、共有) を使用してください。 MCP サーバーは長時間実行される stdio プロセスとして動作します。:Zを使用すると、コンテナ起動後に ディレクトリにコピーされたファイルにはコンテナのプライベートな MCS ラベルが付与されず、 コンテナ内から見えなくなります。:zフラグは共有のcontainer_file_tコンテキストを設定し、すべてのコンテナとホストが読み書きできます。ヒント: 複数の MCP コンテナサーバー (例: mcp-wordpress と mcp-gemini) 間で同じ共有ディレクトリ (
~/.local/share/mcp-uploads-downloads/) を使用すると、生成されたファイルがコピーなしで すぐにアップロードに利用できます。
ソースから
git clone https://github.com/crunchtools/mcp-wordpress.git
cd mcp-wordpress
uv sync --all-extras
uv run mcp-wordpress-crunchtools設定
以下の環境変数を設定します:
変数 | 説明 | 例 |
| WordPress サイトの URL |
|
| WordPress ユーザー名 |
|
| アプリケーションパスワード |
|
| コンテナ内のアップロードディレクトリ (オプション) |
|
アプリケーションパスワードの作成
WordPress 管理画面にログイン
ユーザー → プロフィール に移動
アプリケーションパスワード までスクロール
名前 (例: "MCP Server") を入力し、新規追加 をクリック
生成されたパスワードをコピー (一度だけ表示されます)
Claude Code での使用
uvx を使用 (推奨)
claude mcp add mcp-wordpress-crunchtools \
--env WORDPRESS_URL=https://example.com \
--env WORDPRESS_USERNAME=admin \
--env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
-- uvx mcp-wordpress-crunchtoolspip を使用
pip install mcp-wordpress-crunchtools
claude mcp add mcp-wordpress-crunchtools \
--env WORDPRESS_URL=https://example.com \
--env WORDPRESS_USERNAME=admin \
--env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
-- mcp-wordpress-crunchtoolsコンテナを使用
# Create a shared upload directory (required before first run)
mkdir -p ~/.local/share/mcp-uploads-downloads
claude mcp add mcp-wordpress-crunchtools \
--env WORDPRESS_URL=https://example.com \
--env WORDPRESS_USERNAME=admin \
--env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
-- podman run -i --rm \
-v ~/.local/share/mcp-uploads-downloads:/tmp/mcp-uploads:z \
-e WORDPRESS_URL \
-e WORDPRESS_USERNAME \
-e WORDPRESS_APP_PASSWORD \
quay.io/crunchtools/mcp-wordpress利用可能なツール
サイトツール
ツール | 説明 |
| サイトのタイトル、説明、URL、タイムゾーンを取得 |
| API 資格情報が機能するか確認 |
投稿ツール
ツール | 説明 |
| フィルタリング付きで投稿を一覧表示 (ステータス、カテゴリ、検索) |
| ID で単一の投稿を取得 (全文含む) |
| キーワードで投稿を検索 |
| 新しい投稿を作成 (予約投稿対応) |
| 既存の投稿を更新 |
| 投稿を削除/ゴミ箱へ移動 |
| 投稿のリビジョンを一覧表示 |
| 特定のリビジョンの内容を取得 |
| 利用可能なカテゴリを一覧表示 |
| 利用可能なタグを一覧表示 |
ページツール
ツール | 説明 |
| フィルタリング付きでページを一覧表示 |
| ID で単一のページを取得 |
| 新しいページを作成 |
| 既存のページを更新 |
| ページを削除/ゴミ箱へ移動 |
| ページのリビジョンを一覧表示 |
メディアツール
ツール | 説明 |
| メディアアイテムを一覧表示 |
| メディアアイテムの詳細を取得 |
| ローカルパスからファイルをアップロード |
| メディアのメタデータを更新 |
| メディアアイテムを削除 |
| メディアの公開 URL を取得 |
コメントツール
ツール | 説明 |
| フィルタリング付きでコメントを一覧表示 |
| 単一のコメントを取得 |
| 投稿にコメントを追加 |
| コメントの内容/ステータスを更新 |
| コメントを削除 |
| 承認、保留、スパム、ゴミ箱へ移動 |
例
下書き投稿を作成
Create a new WordPress post titled "My Technical Article" with the content below. Keep it as a draft.投稿を予約
Update post ID 123 to publish on December 25, 2024 at 10:00 AM.画像をアップロード
Upload this image to WordPress and set the alt text to "Architecture diagram".コメントを検索してモデレート
List all comments in "hold" status and approve the legitimate ones.セキュリティ
資格情報の保護: すべての資格情報は
SecretStrとして保存され、ログに記録されることはありませんSSRF 防止: REST API パスはハードコードされており、上書きできません
入力検証: すべての入力は Pydantic モデルで検証されます
レート制限: WordPress のレート制限を適切に処理します
TLS 強制: すべてのリクエストは証明書検証付きの HTTPS を使用します
サイズ制限: メモリ問題を防ぐため、レスポンスサイズは 10MB に制限されます
タイムアウト: すべてのリクエストは 30 秒でタイムアウトします
開発
# Install dev dependencies
uv sync --all-extras
# Run tests
uv run pytest
# Run linting
uv run ruff check src tests
# Run type checking
uv run mypy src
# Format code
uv run ruff format src testsライセンス
AGPL-3.0-or-later
クレジット
crunchtools.com によって構築されました
Available Tools
33 toolswordpress_create_commentWordpress Create CommentC
Create a new comment on a WordPress post.
Inputs: post (required), content (required), parent, author_name, +1 more. Returns: object
wordpress_create_pageWordpress Create PageC
Create a new WordPress page.
Inputs: title (required), content (required), date, slug, +6 more. Returns: object
wordpress_create_postWordpress Create PostC
Create a new WordPress post.
Inputs: title (required), content (required), date, slug, +6 more. Returns: object
wordpress_delete_commentWordpress Delete CommentB
Delete or trash a WordPress comment.
Inputs: comment_id (required), force. Returns: object
wordpress_delete_mediaWordpress Delete MediaC
Delete a WordPress media item.
Inputs: media_id (required), force. Returns: object
wordpress_delete_pageWordpress Delete PageC
Delete or trash a WordPress page.
Inputs: page_id (required), force. Returns: object
wordpress_delete_postWordpress Delete PostC
Delete or trash a WordPress post.
Inputs: post_id (required), force. Returns: object
wordpress_edit_draftWordpress Edit DraftA
Replace text in a draft or pending WordPress post's source. Refuses any other status.
Inputs: post_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object
wordpress_edit_pageWordpress Edit PageA
Replace text in a WordPress page's source, without resending the page.
Inputs: page_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object
wordpress_edit_postWordpress Edit PostA
Replace text in a WordPress post's source, without resending the post.
Inputs: post_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object
wordpress_get_commentWordpress Get CommentBRead-only
Get a single WordPress comment by ID.
Inputs: comment_id (required). Returns: object
wordpress_get_mediaWordpress Get MediaBRead-only
Get a single WordPress media item by ID.
Inputs: media_id (required). Returns: object
wordpress_get_media_urlWordpress Get Media UrlBRead-only
Get the public URL for a WordPress media item.
Inputs: media_id (required), size. Returns: object
wordpress_get_pageWordpress Get PageBRead-only
Get a single WordPress page by ID with its saved source.
Inputs: page_id (required). Returns: object
wordpress_get_postWordpress Get PostARead-only
Get a single WordPress post by ID with its saved source.
Inputs: post_id (required). Returns: object
wordpress_get_revisionWordpress Get RevisionCRead-only
Get a specific revision of a WordPress post.
Inputs: post_id (required), revision_id (required). Returns: object
wordpress_get_site_infoWordpress Get Site InfoARead-only
Get WordPress site information.
Returns site title, description, URL, timezone, and other settings.
Inputs: no named parameters. Returns: object
wordpress_list_categoriesWordpress List CategoriesCRead-only
List available WordPress categories.
Inputs: page, search, per_page. Returns: object
wordpress_list_commentsWordpress List CommentsCRead-only
List WordPress comments with filtering.
Inputs: page, post, order, search, +3 more. Returns: object
wordpress_list_mediaWordpress List MediaCRead-only
List WordPress media items with filtering.
Inputs: page, order, search, orderby, +3 more. Returns: object
wordpress_list_page_revisionsWordpress List Page RevisionsBRead-only
List revisions for a WordPress page.
Inputs: page_id (required). Returns: object
wordpress_list_pagesWordpress List PagesCRead-only
List WordPress pages with filtering and pagination.
Inputs: page, order, parent, search, +3 more. Returns: object
wordpress_list_postsWordpress List PostsCRead-only
List WordPress posts with filtering and pagination.
Inputs: page, tags, order, search, +4 more. Returns: object
wordpress_list_revisionsWordpress List RevisionsBRead-only
List revisions for a WordPress post.
Inputs: post_id (required). Returns: object
wordpress_list_tagsWordpress List TagsCRead-only
List available WordPress tags.
Inputs: page, search, per_page. Returns: object
wordpress_moderate_commentWordpress Moderate CommentC
Moderate a WordPress comment by changing its status.
Inputs: action (required), comment_id (required). Returns: object
wordpress_search_postsWordpress Search PostsARead-only
Search WordPress posts by keyword in title and content.
Inputs: keyword (required), page, per_page. Returns: object
wordpress_test_connectionWordpress Test ConnectionARead-only
Test connection to WordPress REST API.
Verifies API credentials and returns connection status.
Inputs: no named parameters. Returns: object
wordpress_update_commentWordpress Update CommentC
Update an existing WordPress comment.
Inputs: comment_id (required), status, content. Returns: object
wordpress_update_mediaWordpress Update MediaC
Update WordPress media item metadata.
Inputs: media_id (required), title, caption, alt_text, +1 more. Returns: object
wordpress_update_pageWordpress Update PageA
Update an existing WordPress page. To change part of the content, use edit_page.
Inputs: page_id (required), date, slug, title, +8 more. Returns: object
wordpress_update_postWordpress Update PostB
Update an existing WordPress post. To change part of the content, use edit_post.
Inputs: post_id (required), date, slug, tags, +8 more. Returns: object
wordpress_upload_mediaWordpress Upload MediaA
Upload a media file to WordPress from a local file path.
The file is read directly from disk, avoiding large base64 payloads over the MCP protocol. Provide an absolute path to the file.
CONTAINER NOTE: When running as a container, the file path refers to the container filesystem, not the host. Files must be placed in ~/.local/share/mcp-wordpress/uploads/ on the host (mounted to /tmp/mcp-uploads/ inside the container) to be accessible.
Inputs: file_path (required), title, caption, alt_text, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Most tools map cleanly to a distinct resource and action, especially across posts, pages, media, and comments. The main ambiguity is among update_post/edit_post/edit_draft and update_page/edit_page, which all modify content, though the descriptions distinguish full updates from source-text replacement.
All tools consistently use the wordpress_ prefix followed by snake_case verb_noun naming, such as list_posts, create_page, delete_comment, and moderate_comment. Names are predictable and readable throughout the set.
At 33 tools, the surface is heavy for a single MCP server and exceeds the rubric's 25+ threshold for too many tools. The broad WordPress content domain justifies many operations, but the set could likely consolidate overlapping post/page edit variants and media helpers.
Core content lifecycle coverage is strong for posts, pages, media, and comments, including revisions and comment moderation. Remaining gaps include no get-page-revision operation, read-only categories/tags, and no broader WordPress admin tools such as users or settings.
Maintenance
Related MCP Connectors
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.
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
WordPress MCP server: AI agents edit pages, builders, WooCommerce and SEO, every change recorded.
Related MCP Servers
- AlicenseCqualityDmaintenanceA lightweight MCP server that connects to WordPress via REST API, enabling content management (posts, pages, categories, etc.) and site configuration through natural language commands.49Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for WordPress content management that provides a secure interface for AI assistants to interact with WordPress sites, enabling content creation, editing, and media management without destructive operations.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables safe reconnaissance, mutation, and verification of WordPress sites through guarded, typed verbs with dry-run previews and change-packet audit records.MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that bridges AI assistants to WordPress, enabling natural-language management of posts, pages, media, comments, users, plugins, and settings across multiple sites simultaneously.1-