Imagine managing, drafting, and publishing your website content directly from your codebase. By combining the power of your favorite IDE with the Model Context Protocol (MCP), you can publish articles to WordPress using simple natural language instructions, bypassing the admin dashboard entirely.
Universal IDE and AI Agent Support
This publishing superpower isn’t tied to a single editor. Because MCP is an open standard, this setup works with virtually any IDE, AI coding assistant, or developer tool that supports MCP, including:
- Stand-alone CLI Tools: Claude Code, Codex
- VS Code Extensions: Cline, Continue, Kilo Code, and others
- Custom IDEs: Antigravity, Cursor, and more
🔗 Reference Repository
The official plugin and implementation can be found on GitHub:
Automattic/wordpress-mcp
Setup Instructions
1. WordPress Setup
- Download, install, and activate the WordPress MCP plugin on your WordPress site.
- Navigate to the WordPress dashboard, go to Settings, and configure the MCP settings:
- Go to
Settings > MCP > Authentication Tokensand generate new token - Enable the required permissions from the Settings tab.
- Go to
2. IDE Setup
Configure your IDE or AI assistant to connect to the WordPress MCP server by adding it to your MCP settings file (e.g., claude_desktop_config.json or your extension’s config):
{
"mcpServers": {
"wordpress-mcp": {
"command": "npx",
"args": ["-y", "@automattic/mcp-wordpress-remote@latest"],
"env": {
"WP_API_URL": "https://your-site.com/",
"JWT_TOKEN": "your-jwt-token-here"
}
}
}
}
Example Prompt
Once connected, you can interact with your website simply by instructing your AI agent. Try a prompt like this in your IDE chat:
“Publish a new post draft styled with a modern blue theme. Set the title to ‘Deploying Code Faster’ and include a three-step guide on continuous integration. Put it in the ‘Development’ category.”
This article was written, designed, and published completely using wordpress-mcp!