WordPress MCP Server

โœ… Server is running
๐Ÿ” Authentication Required
This API requires an API key for access.

About

This is a Model Context Protocol (MCP) server that provides comprehensive access to WordPress sites via the REST API and XML-RPC.

๐Ÿ“ง API Key Access
To request an API key for this service, please contact:
bartosz.dariusz.majewski@gmail.com

API Endpoint

POST requests to: https://wordpress.mcp.majewscy.tech/

๐Ÿ”‘ Required HTTP Headers

For MCP authentication:

x-api-key

Your server authentication key (contact us for access)

For WordPress access (choose one method):

Option 1: JWT Token (Recommended)

x-wordpress-url

Your WordPress site URL (e.g., https://yoursite.com)

x-jwt-token

Your JWT token from WordPress MCP plugin

Option 2: Application Password

x-wordpress-url

Your WordPress site URL (e.g., https://yoursite.com)

x-wordpress-username

Your WordPress username

x-wordpress-password

Your WordPress application password

๐Ÿงช Test Your Connection

1. List Available Tools

curl -X POST https://wordpress.mcp.majewscy.tech/ \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_SERVER_KEY" \
  -H "x-wordpress-url: https://yoursite.com" \
  -H "x-wordpress-username: YOUR_USERNAME" \
  -H "x-wordpress-password: YOUR_APP_PASSWORD" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/list",
    "id": 1
  }'

2. Get Recent Posts

curl -X POST https://wordpress.mcp.majewscy.tech/ \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_SERVER_KEY" \
  -H "x-wordpress-url: https://yoursite.com" \
  -H "x-wordpress-username: YOUR_USERNAME" \
  -H "x-wordpress-password: YOUR_APP_PASSWORD" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "get_posts",
      "arguments": {
        "per_page": 5
      }
    },
    "id": 2
  }'

Available Tools

๐Ÿ“ Content Management

  • get_posts - List WordPress posts
  • get_post - Get a specific post
  • create_post - Create a new post
  • update_post - Update an existing post
  • delete_post - Delete a post
  • get_pages - List WordPress pages
  • create_page - Create a new page

๐Ÿ–ผ๏ธ Media & Comments

  • get_media - List media items
  • upload_media - Upload new media
  • get_comments - List comments
  • create_comment - Create a new comment
  • update_comment - Update a comment
  • delete_comment - Delete a comment

๐Ÿ‘ฅ Users & Categories

  • get_users - List WordPress users
  • get_user - Get user details
  • get_categories - List categories
  • create_category - Create a new category
  • get_tags - List tags
  • create_tag - Create a new tag

โš™๏ธ Site Management

  • get_site_info - Get site information
  • get_plugins - List installed plugins
  • get_themes - List installed themes
  • search - Search content

Health Check

GET /health - Returns server status (no authentication required)