WordPress.com リモートMCPを VS Code にMCP接続する方法(設定手順)

Automattic のリモートMCPサーバーを VS Code に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。

🛡️ Official✓ VerifiedStreamable HTTPOAuth 2.1🛡️ A+~365 tok5 tools
Streamable HTTPhttps://public-api.wordpress.com/wpcom/v2/mcp/v1
Install in VS Code →

Or add to .vscode/mcp.json:

{
  "servers": {
    "wordpress": {
      "type": "http",
      "url": "https://public-api.wordpress.com/wpcom/v2/mcp/v1"
    }
  }
}

接続手順

  1. MCP 設定を開く — vscode: deeplink でワンクリックインストールするか、プロジェクトルートに .vscode/mcp.json を作成します。
  2. サーバーを追加 — { "servers": { "wordpress": { "type": "http", "url": https://public-api.wordpress.com/wpcom/v2/mcp/v1 } } } と記述します。
  3. 認証を完了 — 初回呼び出し時に Automattic の OAuth 認可画面が開きます。許可するとツールが有効になります。
  4. 検証 — Copilot Chat を再起動して Agent モードでツールを確認します。オンライン Inspector に https://public-api.wordpress.com/wpcom/v2/mcp/v1 を貼り付け、initialize と tools/list を実行して接続を確認します。

🧰 ツール一覧(5)

ToolSafetyDescriptionParameters
list_sites
~38 tok
🟢 ReadList WordPress.com sites accessible to your account.—
list_posts
~83 tok
🟢 ReadList posts on a site with status and search filters.siteId*: stringstatus: stringsearch: string
get_post
~70 tok
🟢 ReadGet the full content and metadata of a post or page.siteId*: stringpostId*: string
create_post_draft
~87 tok
🟠 WriteCreate a draft post or page on a site.siteId*: stringtitle*: stringcontent*: string
list_media
~67 tok
🟢 ReadList media library items on a site.siteId*: stringmediaType: string

その他の接続ガイド