MW
Tutorial 9 min read

Connect Cursor IDE to WordPress MCP Server

Drive WordPress from your editor — Cursor's agent calls your typed tools while you stay in code.

Cursor IDE MCP WordPress
Auto-cycle
1. The Cursor agent picks an MCP tool from your project config.

Click a node to step through

1. Overview

Cursor exposes MCP via its .cursor/mcp.json config — point it at your server and code + content workflows live side by side.

2. Install Cursor + MCP config

.cursor/mcp.json json
{
  "mcpServers": {
    "wp": {
      "command": "node",
      "args": ["./mcp-server/dist/server.js"],
      "env": { "WP_URL": "http://localhost:8080", "WP_AUTH": "${WP_AUTH}" }
    }
  }
}

3. Code-first workflows

Ask the Cursor agent: "Add a new tool that bulk-updates post tags, then test it against the local site." It writes the code AND runs it through MCP.

4. Inline edits & previews

Use Cursor's inline diff view to review tool source + the call's effect side by side before approval.

5. Tips & gotchas

Restart Cursor after editing mcp.json. Stdio servers don't hot-reload. Watch the MCP panel for spawn errors.

One MCP server. Three clients.

Claude. ChatGPT. Cursor. Same tools, every chat surface.

  • Multi-client
  • IDE-native
  • Composable