Skip to main content
Glama

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

アプリケーションパスワードの生成

  1. WordPress 管理画面 → ユーザー → プロフィール に移動

  2. 「アプリケーションパスワード」までスクロール

  3. 名前を入力(例:「MCP Server」)

  4. 「新しいアプリケーションパスワードを追加」をクリック

  5. 生成されたパスワードをコピー

使い方

サーバーの実行

# Development
npm run dev

# Production
npm start

MCP クライアントとの統合

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"
      }
    }
  }
}

利用可能なツール

サイト操作

ツール

説明

get_site_info

サイト名、説明、URL を取得

get_site_settings

サイト設定を取得

get_site_health

ヘルス診断を取得

get_performance

パフォーマンス指標を取得

search_site

サイト全体のコンテンツを検索

投稿操作

ツール

説明

list_posts

フィルタリング付きで投稿を一覧表示

get_post

ID で単一の投稿を取得

create_post

新規投稿を作成

update_post

既存の投稿を更新

delete_post

投稿を削除(確認が必要)

publish_post

下書き投稿を公開

固定ページ操作

ツール

説明

list_pages

フィルタリング付きで固定ページを一覧表示

get_page

ID で単一の固定ページを取得

create_page

新規固定ページを作成

update_page

既存の固定ページを更新

delete_page

固定ページを削除(確認が必要)

メディア操作

ツール

説明

list_media

メディアライブラリのアイテムを一覧表示

upload_media

メディアファイルをアップロード

delete_media

メディアを削除(確認が必要)

ユーザー操作

ツール

説明

list_users

フィルタリング付きでユーザーを一覧表示

get_user

ID で単一のユーザーを取得

create_user

新規ユーザーを作成

update_user

既存のユーザーを更新

タクソノミー操作

ツール

説明

list_categories

カテゴリーを一覧表示

create_category

新規カテゴリーを作成

list_tags

タグを一覧表示

create_tag

新規タグを作成

プラグイン操作

ツール

説明

list_plugins

インストール済みプラグインを一覧表示

activate_plugin

プラグインを有効化(確認が必要)

deactivate_plugin

プラグインを無効化(確認が必要)

テーマ操作

ツール

説明

list_themes

インストール済みテーマを一覧表示

activate_theme

テーマを有効化(確認が必要)

メニュー操作

ツール

説明

get_menus

ナビゲーションメニューを取得

update_menu

メニューを更新

WooCommerce 操作

ツール

説明

get_woocommerce_products

商品を一覧表示

create_woocommerce_product

商品を作成

update_woocommerce_product

商品を更新

get_woocommerce_orders

注文を一覧表示

get_woocommerce_customer

顧客を一覧表示

セキュリティ

  • 認証情報は環境変数に保存(出力に決して露出しない)

  • 破壊的操作は明示的な確認が必要

  • 読み取り専用操作は自動的に実行

  • すべての保護されたリソースに対する認証

開発

# 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

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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

View all MCP Connectors

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/abdulsammad-lgtm/WordPress-MCP-'

If you have feedback or need assistance with the MCP directory API, please join our Discord server