Skip to content
Grok

WordPress Headless for Grok

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

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

client:Grok transport:stdio runtime:npm

Install WordPress Headless in Grok

.mcp.json (in your project root)

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

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

WordPress Headless in other clients