Skip to content

Make your WordPress site into a simple MCP server, exposing functionality to LLMs and AI agents.

Notifications You must be signed in to change notification settings

Automattic/wordpress-mcp

Repository files navigation

WordPress MCP

Latest Release

A WordPress plugin that implements the Model Context Protocol (MCP) to expose WordPress functionality through a standardized interface. This plugin enables AI models and other applications to interact with WordPress sites in a structured and secure way.

Features

  • 🔒 Secure and standardized interface for WordPress interactions
  • 🤖 AI-friendly API endpoints
  • 🏗️ Extensible architecture for custom tools, resources and prompts
  • 🔌 Adapter for WordPress Feature API
  • ⚡ High-performance implementation

Installation

  1. Download the latest wordpress-mcp.zip from https://github.com/Automattic/wordpress-mcp/releases/
  2. Upload the plugin files to the /wp-content/plugins/wordpress-mcp directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Navigate to Settings > MCP and enable MCP functionality and features

Usage

This plugin is designed to work with wp-wordpress-remote, which provides the client-side implementation for interacting with the MCP interface. Please check the usage instructions.

Development

Extending the Plugin

You can extend the plugin's functionality by adding new components through the WordPress MCP API:

Adding New Tools

Check the tools defined on wp-content/plugins/wordpress-mcp/includes/Tools/ for examples

Adding Resources

Check the resources define on wp-content/plugins/wordpress-mcp/includes/Resources/ for examples

Adding Prompts

Check the prompts defined on wp-content/plugins/wordpress-mcp/includes/Prompts/ for axamples

Using the WordPress Feature API

Check the WordPress Feature API - a system for exposing WordPress functionality in a standardized, discoverable way for both server and client-side use. When enabled, this plugin will convert Features into MCP tools and resources.

Contributing

We welcome contributions!

Support

WordPress MCP has extensive documentation, please refer to the docs for more information.

For support, please:

  • Open an issue on GitHub
  • Contact the maintainers