WordPress MCP Server
WordPress MCP サーバー
WordPress 統合のためのプロダクションレディな Model Context Protocol (MCP) サーバー。AI エージェントが構造化されたツールを通じて WordPress サイトと対話できるようにします。
機能
39 の WordPress ツール:投稿、固定ページ、メディア、ユーザー、カテゴリー、タグ、プラグイン、テーマ、メニュー、WooCommerce をカバー
安全な認証:WordPress アプリケーションパスワードを使用
破壊的操作の保護:明示的な確認を要求
構造化されたエラーハンドリング:詳細なエラーコード付き
ページネーション対応:一覧操作に対応
環境ベースの設定:認証情報用
Related MCP server: WordPress MCP Server
前提条件
Node.js 18+
REST API が有効な WordPress サイト
認証用の WordPress アプリケーションパスワード
インストール
npm install
npm run build設定
プロジェクトルートに .env ファイルを作成します:
WORDPRESS_URL=https://your-wordpress-site.com
WORDPRESS_USERNAME=your-username
WORDPRESS_APP_PASSWORD=your-application-passwordアプリケーションパスワードの生成
WordPress 管理画面 → ユーザー → プロフィール に移動
「アプリケーションパスワード」までスクロール
名前を入力(例:「MCP Server」)
「新しいアプリケーションパスワードを追加」をクリック
生成されたパスワードをコピー
使い方
サーバーの実行
# Development
npm run dev
# Production
npm startMCP クライアントとの統合
MCP クライアント設定に追加:
{
"mcp": {
"wordpress": {
"type": "local",
"command": ["node", "/path/to/wordpress-mcp-server/dist/index.js"],
"environment": {
"WORDPRESS_URL": "https://your-site.com",
"WORDPRESS_USERNAME": "your-username",
"WORDPRESS_APP_PASSWORD": "your-app-password"
}
}
}
}利用可能なツール
サイト操作
ツール | 説明 |
| サイト名、説明、URL を取得 |
| サイト設定を取得 |
| ヘルス診断を取得 |
| パフォーマンス指標を取得 |
| サイト全体のコンテンツを検索 |
投稿操作
ツール | 説明 |
| フィルタリング付きで投稿を一覧表示 |
| ID で単一の投稿を取得 |
| 新規投稿を作成 |
| 既存の投稿を更新 |
| 投稿を削除(確認が必要) |
| 下書き投稿を公開 |
固定ページ操作
ツール | 説明 |
| フィルタリング付きで固定ページを一覧表示 |
| ID で単一の固定ページを取得 |
| 新規固定ページを作成 |
| 既存の固定ページを更新 |
| 固定ページを削除(確認が必要) |
メディア操作
ツール | 説明 |
| メディアライブラリのアイテムを一覧表示 |
| メディアファイルをアップロード |
| メディアを削除(確認が必要) |
ユーザー操作
ツール | 説明 |
| フィルタリング付きでユーザーを一覧表示 |
| ID で単一のユーザーを取得 |
| 新規ユーザーを作成 |
| 既存のユーザーを更新 |
タクソノミー操作
ツール | 説明 |
| カテゴリーを一覧表示 |
| 新規カテゴリーを作成 |
| タグを一覧表示 |
| 新規タグを作成 |
プラグイン操作
ツール | 説明 |
| インストール済みプラグインを一覧表示 |
| プラグインを有効化(確認が必要) |
| プラグインを無効化(確認が必要) |
テーマ操作
ツール | 説明 |
| インストール済みテーマを一覧表示 |
| テーマを有効化(確認が必要) |
メニュー操作
ツール | 説明 |
| ナビゲーションメニューを取得 |
| メニューを更新 |
WooCommerce 操作
ツール | 説明 |
| 商品を一覧表示 |
| 商品を作成 |
| 商品を更新 |
| 注文を一覧表示 |
| 顧客を一覧表示 |
セキュリティ
認証情報は環境変数に保存(出力に決して露出しない)
破壊的操作は明示的な確認が必要
読み取り専用操作は自動的に実行
すべての保護されたリソースに対する認証
開発
# Run in development mode
npm run dev
# Build for production
npm run build
# Run tests
npm testプロジェクト構造
wordpress-mcp-server/
├── src/
│ ├── index.ts # Entry point
│ ├── server.ts # MCP server setup
│ ├── client/
│ │ └── wordpress.ts # WordPress API client
│ ├── tools/
│ │ ├── index.ts # Tool registration
│ │ ├── definitions.ts # Tool schemas
│ │ ├── site.ts # Site tools
│ │ ├── posts.ts # Post tools
│ │ ├── pages.ts # Page tools
│ │ ├── media.ts # Media tools
│ │ ├── users.ts # User tools
│ │ ├── taxonomies.ts # Taxonomy tools
│ │ ├── plugins.ts # Plugin tools
│ │ ├── themes.ts # Theme tools
│ │ ├── menus.ts # Menu tools
│ │ └── woocommerce.ts # WooCommerce tools
│ ├── validation/
│ │ └── schemas.ts # Zod validation schemas
│ ├── types/
│ │ └── index.ts # TypeScript type definitions
│ └── utils/
│ ├── config.ts # Environment configuration
│ └── logger.ts # Structured logging
├── package.json
├── tsconfig.json
└── .env.exampleライセンス
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.
Related MCP Servers
- Alicense-qualityFmaintenanceEnables AI assistants to interact with WordPress sites through the WordPress REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.24116MIT
- Alicense-qualityDmaintenanceEnables AI assistants to interact with WordPress sites through the REST API. Supports multiple WordPress sites with secure authentication, enabling content management, post operations, and site configuration through natural language.24MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with WordPress sites through REST APIs, allowing programmatic management of posts, users, comments, categories, and tags with secure authentication.2948MIT
- AlicenseCqualityBmaintenanceEnables AI agents to manage WordPress sites with 190+ tools for content management, theme/plugin customization, file system operations, WooCommerce, and complete site control through natural language.1003552MIT
Related MCP Connectors
Publish to self-hosted WordPress from AI agents: markdown, images, SEO, and Notion sync.
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
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/abdulsammad-lgtm/WordPress-MCP-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server