Get the FREE Ultimate OpenClaw Setup Guide →

WordPress-to

henjii instantly turns your WordPress site into a full-featured Model Context Protocol (MCP) server.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio stuffyoushouldautomate-wordpress-to-mcp-server npx -y wordpress-to-mcp-server

How to use

WordPress MCP – The WordPress-to-MCP-Server plugin turns your WordPress site into an MCP (Model Context Protocol) server. It exposes a standardized REST API for your content (posts, pages, media) and provides API key-based authentication, usage dashboards, and endpoint controls so you can safely share data with language models and automation tools. The plugin supports prompts, templates, and tools endpoints to trigger custom actions from AI and automation platforms. You can manage API keys, enable/disable resources, and control which post types are exposed, making it easy to integrate WordPress content into AI workflows while keeping security and governance in check.

To use it, install the MCP server package and run it according to the configured command. Once running, you can access the REST API (e.g., list resources, fetch content, or call tools) and manage credentials from the admin UI. Use the provided prompts and templates to standardize AI interactions and tailor responses to your brand and use cases. The server is designed to be extended with custom tools and endpoints, enabling AI-powered search, automated content workflows, and secure data sharing with external applications.

How to install

Prerequisites:

  • Node.js (LTS) and npm installed on your system
  • Access to a WordPress installation where the plugin will be deployed

Option A: Run via npx (no local install)

  1. Ensure you have Node.js and npm installed
  2. Start the MCP server with:
npx -y wordpress-to-mcp-server
  1. The command will install and run the WordPress-to-MCP-Server package and expose the MCP API endpoints as configured by the plugin.

Option B: Install globally (local development environment)

  1. Install the package globally:
npm install -g wordpress-to-mcp-server
  1. Run the server (adjust path or command if the package provides a bin script):
wordpress-to-mcp-server
  1. Verify the MCP REST API is reachable (e.g., GET /wp-json/henjii/v1/resources).

Option C: Docker (if available)

  1. Pull and run the image (if provided by the project maintainers):
docker run -i wordpress-to-mcp-server:latest
  1. Ensure environment variables for API keys and WordPress connection are set as needed.

Additional notes

Environment and configuration tips:

  • API Keys: Use the admin UI to generate and manage API keys. Pass them in requests using the X-Henjii-API-Key header.
  • Rate Limiting: Configure rate limits in settings to prevent abuse.
  • Content exposure: Use Content Type Control to decide which post types are exposed (posts, pages, media).
  • Prompts and templates: Create reusable prompts for LLM workflows and fetch them via the /prompts endpoint.
  • Tools and endpoints: Expose custom tools for AI-driven actions (e.g., /tools/search) and sampling flows (/sampling).
  • Documentation and troubleshooting: Refer to the in-app Documentation Tab for API guides and troubleshooting steps.

Common issues:

  • API keys not being accepted: Ensure the key is active and has proper scope in the admin UI.
  • Unable to access content: Check WordPress REST API permissions and CORS settings.
  • Performance: Enable rate limiting and consider caching frequently requested resources.

Related MCP Servers

Sponsor this space

Reach thousands of developers