mcp-wp-remote
Enables communication with WordPress sites via the websamurai plugin, forwarding JSON-RPC requests to the WordPress REST API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-wp-remotelist my recent WordPress posts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@websamurai/mcp-wp-remote
A STDIO bridge for connecting to WordPress sites via the Model Context Protocol (MCP). This package enables communication between MCP clients and WordPress installations running the websamurai plugin.
Overview
mcp-wp-remote acts as a bridge between MCP clients and WordPress REST API endpoints. It reads JSON-RPC requests from STDIN, forwards them to a WordPress site's MCP endpoint, and returns responses via STDOUT.
Related MCP server: wp-mcp
Installation
npm install -g @websamurai/mcp-wp-remoteOr use directly with npx:
npx @websamurai/mcp-wp-remote <url> <api-key>Requirements
Node.js (ES modules support required)
WordPress site with websamurai plugin installed
Valid API key from your WordPress installation
Usage
Command Line
mcp-wp-remote <url> <api-key>Parameters:
<url>- Your WordPress site URL (e.g.,https://example.com)<api-key>- API key for authentication (Bearer token)
The endpoint path /wp-json/websamurai/v1/mcp is automatically appended to the URL if not present.
Example
mcp-wp-remote https://mysite.com my-secret-api-keyOr with the full endpoint:
mcp-wp-remote https://mysite.com/wp-json/websamurai/v1/mcp my-secret-api-keyAs MCP Server Configuration
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"wordpress": {
"command": "mcp-wp-remote",
"args": ["https://yoursite.com", "your-api-key"]
}
}
}How It Works
Accepts JSON-RPC 2.0 formatted messages via STDIN
Authenticates with WordPress using Bearer token authorization
Forwards requests to the WordPress MCP endpoint
Returns responses via STDOUT in JSON-RPC 2.0 format
Communication Flow
MCP Client → STDIN → mcp-wp-remote → WordPress REST API
← STDOUT ← ←JSON-RPC Protocol
The bridge expects and returns JSON-RPC 2.0 formatted messages:
Request:
{
"jsonrpc": "2.0",
"method": "method_name",
"params": {},
"id": 1
}Response (Success):
{
"jsonrpc": "2.0",
"result": {},
"id": 1
}Response (Error):
{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "Error description"
},
"id": 1
}Error Handling
The bridge handles various error scenarios:
Invalid URL: Exits with code 1 if URL is malformed
HTTP Errors: Returns JSON-RPC error with HTTP status code
Network Errors: Returns JSON-RPC error with code -32000
Invalid Arguments: Shows usage message and exits
Features
Automatic endpoint path normalization
Bearer token authentication
Multi-line JSON input support
Graceful shutdown handling (SIGINT, SIGTERM)
JSON-RPC 2.0 compliant error responses
WordPress Setup
Install the websamurai plugin on your WordPress site
Generate an API key in the plugin settings
Ensure the REST API endpoint is accessible at
/wp-json/websamurai/v1/mcp
Development
# Clone repository
git clone <repository-url>
# Install dependencies (if any)
npm install
# Run locally
node index.js https://example.com your-api-keyLicense
MIT
Keywords
MCP (Model Context Protocol)
WordPress
JSON-RPC
STDIO Bridge
REST API
Author
websamurai Team
Support
For issues and questions:
WordPress Plugin: WebSamurai
GitHub Issues: Report issues in the repository
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for Web3TV creators — manage your account over MCP.
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
Related MCP Servers
AlicenseNot gradedqualityAmaintenanceActs as a bridge between local MCP clients and WordPress websites, enabling communication with WordPress through simple REST API requests rather than keeping open connections.6,652 npm183MIT- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that turns WordPress sites into AI-operable surfaces by exposing CRUD primitives for posts, users, comments, and settings. It supports both local STDIO and remote HTTP transports, allowing AI assistants to manage content and site configuration directly.40 npm9MIT

sombra-mcpofficial
AlicenseNot gradedqualityDmaintenanceA stdio-to-HTTP bridge for connecting to Sombra's remote MCP server, enabling AI agents to save, search, and organize web content.4 npmMIT- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that bridges AI assistants to WordPress, enabling natural-language management of posts, pages, media, comments, users, plugins, and settings across multiple sites simultaneously.-