Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Wp Remote

БесплатноНе проверен

A STDIO bridge for connecting to WordPress sites via the Model Context Protocol (MCP), enabling communication between MCP clients and WordPress installations ru

GitHubEmbed

Описание

A STDIO bridge for connecting to WordPress sites via the Model Context Protocol (MCP), enabling communication between MCP clients and WordPress installations running the websamurai plugin.

README

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.

Installation

npm install -g @websamurai/mcp-wp-remote

Or 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-key

Or with the full endpoint:

mcp-wp-remote https://mysite.com/wp-json/websamurai/v1/mcp my-secret-api-key

As 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

  1. Accepts JSON-RPC 2.0 formatted messages via STDIN
  2. Authenticates with WordPress using Bearer token authorization
  3. Forwards requests to the WordPress MCP endpoint
  4. 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

  1. Install the websamurai plugin on your WordPress site
  2. Generate an API key in the plugin settings
  3. 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-key

License

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

from github.com/WileySolutions/mcp-wp-remote

Установить Wp Remote в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install mcp-wp-remote

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add mcp-wp-remote -- npx -y @websamurai/mcp-wp-remote

FAQ

Wp Remote MCP бесплатный?

Да, Wp Remote MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Wp Remote?

Нет, Wp Remote работает без API-ключей и переменных окружения.

Wp Remote — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Wp Remote в Claude Desktop, Claude Code или Cursor?

Открой Wp Remote на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Wp Remote with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development