Skip to content

Cursor / Windsurf

Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global):

{
"mcpServers": {
"my-site": {
"url": "https://YOUR-SITE.com/wp-json/mcpwp/v1/mcp",
"headers": {
"X-API-Key": "mcpwp_YOUR_KEY"
}
}
}
}

Restart Cursor. The MCPWP tools appear in Agent mode.

Add to .windsurf/mcp.json:

{
"mcpServers": {
"my-site": {
"url": "https://YOUR-SITE.com/wp-json/mcpwp/v1/mcp",
"headers": {
"X-API-Key": "mcpwp_YOUR_KEY"
}
}
}
}

Both configs use header-based auth (X-API-Key) — the key stays out of the URL, which is the more secure connect method available today.

Once connected, call wp_introspect first for a machine-readable view of available tools, then wp_onboard for a full site briefing.