home / mcp / wordpress mcp server
Provides a WordPress-based MCP server exposing the MCP endpoint via the WordPress REST API for client interactions.
Configuration
View docs{
"mcpServers": {
"mcp-wp-mcp-server": {
"url": "https://example.com/wp-json/mcp/v1/mcp"
}
}
}You can run an MCP server on a WordPress site to enable the Model Context Protocol over the WordPress REST API. This lets you connect MCP clients to your site via a dedicated HTTP endpoint, enabling streaming-like interactions with your WordPress context.
You connect to the MCP server from an MCP client by pointing the client at your WordPress-based MCP endpoint. Use the HTTP URL provided for your WordPress site to access the MCP API route at wp-json/mcp/v1/mcp. Once connected, you can issue MCP requests through your client to interact with WordPress data and context.
Prerequisites: you need a WordPress site with WP-CLI access. Ensure you can install plugins and run WP-CLI commands on your site.
# Install and activate the MCP server plugin
wp plugin install --activate https://github.com/mcp-wp/mcp-server/archive/refs/heads/main.zip
# Install and activate the companion AI services package
wp plugin install --activate ai-services
# Install the MCP AI command extension for WP-CLI (dev channel is used here)
wp package install mcp-wp/ai-command:dev-main
# Add the MCP server endpoint configuration for your site
wp mcp server add "mysite" "https://example.com/wp-json/mcp/v1/mcp"
# Use the AI command to greet or interact through the MCP channel
wp ai "Greet my friend Pascal"This MCP server for WordPress implements the new Streamable HTTP transport and exposes an MCP route at wp-json/mcp/v1/mcp. The Streamable HTTP transport is still in development, and there are no tests yet, so features may behave differently across environments.
Adds an MCP HTTP endpoint configuration to the WordPress site, enabling clients to connect to the MCP server via the REST API route.
Provides a WP-CLI extension to issue MCP-related AI commands from the command line.