Cursor + WordPress
Use Cursor to edit WordPress safely with Respira: duplicate-before-edit, review-first approvals, rollback, audit log, and security validation.
Setup modes
- Open Cursor and open your project folder.
- In that project, create a folder named
.cursorif it does not exist. - Create a file named
.cursor/mcp.json. - Paste the config below.
- Replace
WORDPRESS_SITE_URLwith your real site andWORDPRESS_API_KEYfrom WordPress Admin → Respira → API Keys. - Save the file and restart Cursor.
- Ask Cursor: “List WordPress pages from respira-wordpress MCP.”
{
"mcpServers": {
"respira-wordpress": {
"command": "npx",
"args": ["-y", "@respira/wordpress-mcp-server"],
"env": {
"WORDPRESS_SITE_URL": "https://yoursite.com",
"WORDPRESS_API_KEY": "respira_your_api_key"
}
}
}
} Optional: install MCP package first
npm i @respira/wordpress-mcp-server First 3 prompts to try
- "Inspect the Home page structure and summarize opportunities. No edits yet."
- "Duplicate the Home page and only update the main CTA copy."
- "Validate this duplicate, then give me an approval checklist and rollback note."
Troubleshooting in 60 seconds
node -v(Node 18+)npx -y @respira/wordpress-mcp-server --helpnpx @respira/wordpress-mcp-server --test- Re-check API key and site URL in
.cursor/mcp.json - Restart Cursor