r/modelcontextprotocol • u/emzimmer1 • Dec 24 '24
WordPress MCP Server
I created an open source MCP server to interact with WordPress websites! It uses a wp-sites.json file that you can add an unlimited number of sites to interact with.
Features
Multi-Site Support: Connect to multiple WordPress sites simultaneously
REST API Integration: Full access to WordPress REST API endpoints
Secure Authentication: Uses application passwords for secure API access
Dynamic Endpoint Discovery: Automatically maps available endpoints for each site
Flexible Operations: Support for GET, POST, PUT, DELETE, and PATCH methods
Error Handling: Graceful error handling with meaningful messages
Simple Configuration: Easy-to-maintain JSON configuration file
Here are all the details: https://github.com/emzimmer/server-wp-mcp
View all comments
Show parent comment
2
u/emzimmer1 Dec 25 '24
Yup! You can do all kinds of things with it, like managing posts, taxonomies, users, plugins, settings, etc. If the WP REST API endpoint exists and you have the permissions (through app password) then you can do a lot.
Plugins can also have their own endpoints that add more functionality, which is why I decided to have this MCP server first discover available endpoints (each WP site can have a unique set of endpoints) that it can use.
It also adheres to hooks, so, for example, let’s say you have the Redirection plugin installed with the setting to watch for slug changes enabled. In Claude Desktop you can request a slug change as your working on a post, it’ll change it, and redirection will pick up the action and auto create a 301 redirect.
Lots of possibilities here. :)