A MCP server that connects WordPress sites to AI agents. Enable Claude Desktop, Cursor, VS Code, and other MCP-compatible AI clients to manage your WordPress content through natural language commands.
- 🔗 Direct WordPress Integration - Connect to any WordPress site via REST API
- 🛠 Comprehensive Content Management - Create, read, update, and delete posts, pages, taxonomies, users and media
- 🔒 Secure Authentication - Uses WordPress Application Passwords
demo.mov
npm install @adi.lib/wp-mcp- Node.js v18 or higher
- WordPress site with REST API enabled
- WordPress Application Password
| Variable | Description | Example |
|---|---|---|
WP_BASE_URL |
WordPress site URL | https://mysite.com |
WP_USERNAME |
WordPress username | admin |
WP_APP_PASSWORD |
Application password | abc1 def2 ghi3 jkl4 |
- Go to your WordPress Admin Dashboard
- Navigate to Users → Your Profile
- Scroll down to Application Passwords
- Enter a name for your application (e.g., "MCP Server")
- Click Add New Application Password
- Copy the generated password and use it as
WP_APP_PASSWORD
{
"servers": {
"wp-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@adi.lib/wp-mcp"],
"env": {
"WP_BASE_URL": "https://your-site.com",
"WP_USERNAME": "admin",
"WP_APP_PASSWORD": "abc1 def2 ghi3 jkl4"
}
}
}
}
- Fork the repository
- Create a feature branch
- Add your improvements
- Test thoroughly with a WordPress site
- Submit a pull request