WordPress-to
henjii instantly turns your WordPress site into a full-featured Model Context Protocol (MCP) server.
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)
- Ensure you have Node.js and npm installed
- Start the MCP server with:
npx -y wordpress-to-mcp-server
- 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)
- Install the package globally:
npm install -g wordpress-to-mcp-server
- Run the server (adjust path or command if the package provides a bin script):
wordpress-to-mcp-server
- Verify the MCP REST API is reachable (e.g., GET /wp-json/henjii/v1/resources).
Option C: Docker (if available)
- Pull and run the image (if provided by the project maintainers):
docker run -i wordpress-to-mcp-server:latest
- 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
drift
Codebase intelligence for AI. Detects patterns & conventions + remembers decisions across sessions. MCP server for any IDE. Offline CLI.
laravel
A Laravel package for implementing secure Model Context Protocol servers using Streamable HTTP and SSE transport, providing real-time communication and a scalable tool system for enterprise environments.
php
基于 PHP 实现的 MCP (Model Control Protocol) 服务器框架,通过注解优雅地定义 MCP 服务,支持 Tool、Prompt、Resource 三种处理器,支持Stdio、Sse 两种 transport。
mcp-profiler-bundle
The Symfony MCP Profiler Bundle mimics the WebProfiler Bundle. It bridges the gap between Profiler data and your favorite MCP-enabled AI-powered IDE.
elementor
Comprehensive Elementor MCP Server plugin.
mcp
Model Context Protocol for Hyperf