wpagent-mcp

v1.1.4
dev.wpagent/wpagent-mcp Checked 1 day ago Published 3 months ago

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

Values you need

VariableWhat it is
WP_SITE_URLrequired Base URL of your WordPress site, no trailing slash
WP_API_KEY_IDrequired API key id shown by the WpAgent plugin
WP_API_SECRETrequired secret API key secret, displayed once at generation
WP_SITE_LABELoptional Friendly name for the site; defaults to the hostname

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add wpagent-mcp -e 'WP_API_KEY_ID=<WP_API_KEY_ID>' -e 'WP_API_SECRET=<WP_API_SECRET>' -e 'WP_SITE_URL=<WP_SITE_URL>' -- npx -y wpagent-mcp@1.1.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "wpagent-mcp": {
      "args": [
        "-y",
        "wpagent-mcp@1.1.4"
      ],
      "command": "npx",
      "env": {
        "WP_API_KEY_ID": "<WP_API_KEY_ID>",
        "WP_API_SECRET": "<WP_API_SECRET>",
        "WP_SITE_URL": "<WP_SITE_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "wpagent-mcp": {
      "args": [
        "-y",
        "wpagent-mcp@1.1.4"
      ],
      "command": "npx",
      "env": {
        "WP_API_KEY_ID": "<WP_API_KEY_ID>",
        "WP_API_SECRET": "<WP_API_SECRET>",
        "WP_SITE_URL": "<WP_SITE_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "WP_API_KEY_ID",
      "id": "wp-api-key-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "WP_API_SECRET",
      "id": "wp-api-secret",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "WP_SITE_URL",
      "id": "wp-site-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "wpagent-mcp": {
      "args": [
        "-y",
        "wpagent-mcp@1.1.4"
      ],
      "command": "npx",
      "env": {
        "WP_API_KEY_ID": "${input:wp-api-key-id}",
        "WP_API_SECRET": "${input:wp-api-secret}",
        "WP_SITE_URL": "${input:wp-site-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.wpagent-mcp]
command = "npx"
args = ["-y", "wpagent-mcp@1.1.4"]
env = { "WP_API_KEY_ID" = "<WP_API_KEY_ID>", "WP_API_SECRET" = "<WP_API_SECRET>", "WP_SITE_URL" = "<WP_SITE_URL>" }

For AI agents

  1. Ask the user for: WP_SITE_URL, WP_API_KEY_ID, WP_API_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: wp_site_info, wp_site_health, wp_list_plugins, wp_search_plugins, wp_install_plugin, wp_activate_plugin, wp_deactivate_plugin, wp_delete_plugin, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json