Skip to content
Cursor

WordPress Headless for Cursor

io.github.aj-ua/wp-headless-mcp

Read WordPress content, ACF fields, and Yoast SEO data, and safely edit drafts.

client:Cursor transport:stdio runtime:npm

Install WordPress Headless in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "wp-headless-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "wp-headless-mcp"
      ],
      "env": {
        "WP_URL": "<WP_URL>",
        "MCP_PROFILE": "<MCP_PROFILE>",
        "WP_USER": "<WP_USER>",
        "WP_APP_PASSWORD": "<WP_APP_PASSWORD>",
        "WP_CACHE_TTL": "<WP_CACHE_TTL>",
        "ACF_JSON_PATH": "<ACF_JSON_PATH>",
        "MCP_CPTS": "<MCP_CPTS>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

WordPress Headless in other clients