01 / Easiest
A .cursor/mcp.json entry
Signs in with a WordPress application password, sent as a Basic header.
- In wp-admin open WP MCP, Connection and create an application password. The screen shows the Cursor block with your site and credential filled in.
- Paste it into .cursor/mcp.json in the project, or ~/.cursor/mcp.json to make it available everywhere.
- Open Cursor's MCP settings and check that wpmcp is listed and enabled.
.cursor/mcp.json
{
"mcpServers": {
"wpmcp": {
"type": "http",
"url": "https://your-site.com/wp-json/mcp/wpmcp-server",
"headers": {
"Authorization": "Basic BASE64_OF_username:application-password"
}
}
}
}encode the credential
echo -n "your-username:xxxx xxxx xxxx xxxx xxxx xxxx" | base64