wordpress-mcp-server
WordPress MCP サーバー
Windows、macOS、Linux と互換性のある、WordPress 統合用のモデル コンテキスト プロトコル (MCP) サーバー。
概要
このMCPサーバーは、WordPress REST APIを介してWordPressサイトとのやり取りを可能にします。JSON-RPC 2.0プロトコルを使用して投稿を作成、取得、更新するためのツールを提供します。
Related MCP server: wp-cli-mcp
インストール
リポジトリをクローンする
依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run build構成
WordPress 資格情報の環境変数を使用して、サーバーを MCP 設定ファイルに追加します。
{
"mcpServers": {
"wordpress": {
"command": "node",
"args": ["path/to/build/index.js"],
"env": {
"WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_PASSWORD": "your-app-password"
}
}
}
}環境変数は次のとおりです。
WORDPRESS_SITE_URL: WordPressサイトのURL
WORDPRESS_USERNAME: WordPressユーザー名
WORDPRESS_PASSWORD: WordPressアプリケーションのパスワード
環境変数を使用したくない場合は、リクエストパラメータでこれらの資格情報を提供することもできます。
利用可能な方法
投稿を作成
新しい WordPress 投稿を作成します。
パラメータ:
siteUrl: (env で設定されている場合オプション) WordPress サイトの URL
ユーザー名: (envで設定されている場合オプション) WordPressユーザー名
パスワード: (env で設定されている場合オプション) WordPress アプリケーションのパスワード
タイトル: 投稿タイトル
コンテンツ: 投稿内容
ステータス: (オプション)「下書き」 | 「公開」 | 「非公開」(デフォルト:「下書き」)
get_posts
WordPress の投稿を取得します。
パラメータ:
siteUrl: (env で設定されている場合オプション) WordPress サイトの URL
ユーザー名: (envで設定されている場合オプション) WordPressユーザー名
パスワード: (env で設定されている場合オプション) WordPress アプリケーションのパスワード
perPage: (オプション) ページあたりの投稿数 (デフォルト: 10)
ページ: (オプション) ページ番号 (デフォルト: 1)
更新投稿
既存の WordPress 投稿を更新します。
パラメータ:
siteUrl: (env で設定されている場合オプション) WordPress サイトの URL
ユーザー名: (envで設定されている場合オプション) WordPressユーザー名
パスワード: (env で設定されている場合オプション) WordPress アプリケーションのパスワード
postId: 更新する投稿のID
タイトル: (オプション) 新しい投稿のタイトル
コンテンツ: (オプション) 新しい投稿の内容
ステータス: (オプション)「下書き」 | 「公開」 | 「非公開」
セキュリティに関する注意事項
セキュリティのため、メインアカウントのパスワードではなく、WordPressアプリケーションパスワードを使用することをお勧めします。アプリケーションパスワードは、WordPressダッシュボードの「ユーザー」→「セキュリティ」→「アプリケーションパスワード」で生成できます。
使用例
環境変数の使用:
{
"jsonrpc": "2.0",
"id": 1,
"method": "create_post",
"params": {
"title": "My New Post",
"content": "Hello World!",
"status": "draft"
}
}環境変数なし:
{
"jsonrpc": "2.0",
"id": 1,
"method": "create_post",
"params": {
"siteUrl": "https://your-wordpress-site.com",
"username": "your-username",
"password": "your-app-password",
"title": "My New Post",
"content": "Hello World!",
"status": "draft"
}
}要件
Node.js 20.0.0以上
REST API が有効になっている WordPress サイト
認証用のWordPressアプリケーションのパスワード
ライセンス
MITライセンス - 詳細はLICENSEファイルを参照
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
- AlicenseNot gradedqualityDmaintenanceA 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.361ISC
- AlicenseBqualityDmaintenanceMCP server that gives AI tools full WordPress management via WP-CLI. 30+ tools for themes, plugins, posts, menus, users, database, scaffolding, and cache. Works locally or over SSH.34204MIT
- FlicenseBqualityDmaintenanceLocal MCP server for Codex/Claude to query and edit WordPress content through the WordPress REST API.26
- 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.
Related MCP Connectors
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
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
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/stefans71/wordpress-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server