WordPress REST API icon

WordPress REST API

Createdmcp-wp

Implements a Model Context Protocol server using the WordPress REST API.

About

This WordPress plugin establishes a Model Context Protocol (MCP) server leveraging the WordPress REST API, focusing on the Streamable HTTP transport as described in the MCP specification. It utilizes the `logiscape/mcp-sdk-php` package to create a functional MCP server, exposing its capabilities through a dedicated `wp-json/mcp/v1/mcp` REST API endpoint. Primarily intended for use with tools such as the WP-CLI AI command, it facilitates integration of MCP functionality within WordPress environments.

Key Features

  • Implements the Streamable HTTP transport for MCP
  • 4 GitHub stars
  • Offers nightly builds for the latest version
  • Exposes MCP functionality via WordPress REST API
  • Uses `logiscape/mcp-sdk-php` package for MCP server setup
  • Provides a `wp-json/mcp/v1/mcp` REST API route

Use Cases

  • Experiment with Streamable HTTP transport in MCP
  • Integrate with WP-CLI AI command for enhanced functionality
  • Create an MCP server within a WordPress environment
Craft Better Prompts with AnyPrompt