Skip to content
VS Code

wpagent mcp for VS Code

dev.wpagent/wpagent-mcp

Manage WordPress & WooCommerce from any MCP client — 58 tools over a signed REST API.

client:VS Code transport:stdio runtime:npm

Install wpagent mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "wp-site-url",
      "description": "WP_SITE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "wp-api-key-id",
      "description": "WP_API_KEY_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "wp-api-secret",
      "description": "WP_API_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "wp-site-label",
      "description": "WP_SITE_LABEL",
      "password": true
    }
  ],
  "servers": {
    "wpagent-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "wpagent-mcp"
      ],
      "env": {
        "WP_SITE_URL": "${input:wp-site-url}",
        "WP_API_KEY_ID": "${input:wp-api-key-id}",
        "WP_API_SECRET": "${input:wp-api-secret}",
        "WP_SITE_LABEL": "${input:wp-site-label}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

wpagent mcp in other clients