Conecta Cursor con tu sitio WordPress mediante el Model Context Protocol (MCP). Cursor se comunica con WordPress a través del plugin oficial MCP Adapter y una Contraseña de aplicación.
~/.cursor/mcp.json configured.Verify the endpoint responds with JSON (not the site homepage):
https://your-site.test/wp-json/mcp/mcp-adapter-default-server
xxxx xxxx xxxx xxxx xxxx xxxx. You cannot view it again.Important: WP_API_PASSWORD in Cursor must be this Application Password, not your WordPress login password.
Add a wordpress entry inside mcpServers:
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://your-site.test/wp-json/mcp/mcp-adapter-default-server",
"WP_API_USERNAME": "your-wordpress-username",
"WP_API_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx",
"OAUTH_ENABLED": "false"
}
}
}
}
| Variable | Descripción |
|---|---|
WP_API_URL |
Your site URL plus /wp-json/mcp/mcp-adapter-default-server. Replace your-site.test with your real domain. |
WP_API_USERNAME |
WordPress login username (e.g. root). |
WP_API_PASSWORD |
The Application Password from step 2. |
OAUTH_ENABLED |
Set to false when using username + Application Password. |
Reload MCP servers or restart Cursor. The WordPress server should appear as connected in MCP settings.
If you lost the admin login password, generate a hash with PHP (from your WordPress root):
php -r "require '/path/to/wordpress/wp-load.php'; echo wp_hash_password('YourNewPassword');"
Then run in MySQL:
UPDATE wp_users
SET user_pass = 'PASTE_HASH_HERE'
WHERE user_login = 'your-username';
Do not store plain-text passwords in user_pass. This resets wp-admin login only; it does not replace the Application Password used by MCP.