MCP Server for WordPress
by mcp-wp
This WordPress plugin implements the Streamable HTTP transport from the Model Context Protocol (MCP) specification. It exposes MCP server functionality through a WordPress REST API route.
Last updated: N/A
What is MCP Server for WordPress?
The MCP Server for WordPress is a WordPress plugin that implements the Streamable HTTP transport as described in the Model Context Protocol (MCP) specification. It leverages the logiscape/mcp-sdk-php
package to create a fully functional MCP server and exposes it through a new wp-json/mcp/v1/mcp
REST API route in WordPress.
How to use MCP Server for WordPress?
- Install and activate the plugin via
wp plugin install --activate https://github.com/mcp-wp/mcp-server/archive/refs/heads/main.zip
. 2. Install and activate theai-services
plugin. 3. Install themcp-wp/ai-command
WP-CLI package:wp package install mcp-wp/ai-command:dev-main
. 4. Add a server usingwp mcp server add "mysite" "https://example.com/wp-json/mcp/v1/mcp"
(replace example.com with your site). 5. Use thewp ai
command, e.g.,wp ai "Greet my friend Pascal"
.
Key features of MCP Server for WordPress
Implements Streamable HTTP transport for MCP
Exposes MCP functionality via WordPress REST API
Uses
logiscape/mcp-sdk-php
for MCP server setupIntegrates with WP-CLI AI command
Use cases of MCP Server for WordPress
Integrating WordPress with AI services using MCP
Testing and experimenting with the Streamable HTTP transport
Developing MCP-compatible applications with WordPress as a backend
Providing a WordPress-based MCP server for AI command interactions
FAQ from MCP Server for WordPress
Is the Streamable HTTP transport fully implemented?
Is the Streamable HTTP transport fully implemented?
No, the Streamable HTTP transport is not fully implemented yet and there are no tests. It might not work 100% as expected.
What is the recommended way to use this plugin?
What is the recommended way to use this plugin?
This plugin works best in companion with the WP-CLI AI command.
Do I need a specific WordPress version?
Do I need a specific WordPress version?
It is recommended to use the latest version of WordPress.
Where can I find the MCP specification?
Where can I find the MCP specification?
You can find the MCP specification at https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http.
Where can I find the mcp-sdk-php package?
Where can I find the mcp-sdk-php package?
You can find the mcp-sdk-php package at https://github.com/logiscape/mcp-sdk-php.