Enables seamless integration with WordPress via Model Context Protocol, offering JSON-RPC 2.0 methods to create, retrieve, and update posts securely using the WordPress REST API.
Unlock the full potential of wordpress-mcp-server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
A Model Context Protocol (MCP) server for WordPress integration, compatible with Windows, macOS, and Linux.
This MCP server enables interaction with WordPress sites through the WordPress REST API. It provides tools for creating, retrieving, and updating posts using JSON-RPC 2.0 protocol.
npm install
npm run build
Add the server to your MCP settings file with environment variables for WordPress credentials:
{ "mcpServers": { "wordpress": { "command": "node", "args": ["path/to/build/index.js"], "env": { "WORDPRESS_SITE_URL": "https://your-wordpress-site.com", "WORDPRESS_USERNAME": "your-username", "WORDPRESS_PASSWORD": "your-app-password" } } } }
The environment variables are:
You can also provide these credentials in the request parameters if you prefer not to use environment variables.
Creates a new WordPress post.
Parameters:
Retrieves WordPress posts.
Parameters:
Updates an existing WordPress post.
Parameters:
For security, it's recommended to use WordPress application passwords instead of your main account password. You can generate an application password in your WordPress dashboard under Users → Security → Application Passwords.
Using environment variables:
{ "jsonrpc": "2.0", "id": 1, "method": "create_post", "params": { "title": "My New Post", "content": "Hello World!", "status": "draft" } }
Without environment variables:
{ "jsonrpc": "2.0", "id": 1, "method": "create_post", "params": { "siteUrl": "https://your-wordpress-site.com", "username": "your-username", "password": "your-app-password", "title": "My New Post", "content": "Hello World!", "status": "draft" } }
MIT License - See LICENSE file for details
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!