WordPress-to-MCP-Server

WordPress-to-MCP-Server

3.4

WordPress MCP is an open-source plugin that transforms a WordPress site into a Model Context Protocol server, enabling integration with LLMs and AI applications.

WordPress MCP is a powerful plugin designed to convert your WordPress site into a fully functional Model Context Protocol (MCP) server. This open-source tool allows seamless integration with Large Language Models (LLMs) and AI applications, facilitating the connection of your content, tools, and workflows without the need for coding. The plugin features a modern, responsive admin UI, API key management for secure access, and is available in both open-source and enterprise versions. It is ideal for exposing content to AI, building AI-powered search functionalities, automating workflows, and standardizing AI responses. The plugin also supports API key authentication, rate limiting, and usage tracking, ensuring secure and scalable operations.

Features

  • {'name': 'MCP REST API', 'description': 'Provides standardized endpoints for LLM integration.'}
  • {'name': 'API Key Management', 'description': 'Allows generation and deletion of API keys through the admin UI.'}
  • {'name': 'Rate Limiting', 'description': 'Prevents abuse by limiting the number of requests per minute.'}
  • {'name': 'Prompt Templates', 'description': 'Enables the definition of reusable prompts for LLM workflows.'}
  • {'name': 'Tools Endpoint', 'description': 'Exposes custom tools for LLMs to trigger.'}

Usage with Different Platforms

Python

python
import requests

url = 'https://your-wordpress-site.com/wp-json/henjii/v1/resources'
headers = {'X-Henjii-API-Key': 'YOUR_API_KEY'}
response = requests.get(url, headers=headers)
print(response.json())

JavaScript

javascript
fetch('https://your-wordpress-site.com/wp-json/henjii/v1/resources', {
  method: 'GET',
  headers: {
    'X-Henjii-API-Key': 'YOUR_API_KEY'
  }
})
.then(response => response.json())
.then(data => console.log(data));

cURL

bash
curl -X GET 'https://your-wordpress-site.com/wp-json/henjii/v1/resources' \
-H 'X-Henjii-API-Key: YOUR_API_KEY'