Site icon CodeRevolution Knowledge Base

How To: Connect Claude to WordPress with Aiomatic + MCP

Tutorial Video:

What is MCP?

The Model Context Protocol (MCP) is the open standard Claude (and other AI assistants and models) uses to talk with external “tools”. An MCP server announces which tools it offers, and Claude can then call them over JSON-RPC.

With Aiomatic and the MCP Server Creator extension, your WordPress site itself becomes an MCP server. This means Claude can:

Important: Aiomatic’s MCP relies on a small Python relay script, packaged as a Windows executable called mcp.exe. This relay connects Claude to your WordPress site’s MCP endpoints.


1. Requirements

Before setting up Aiomatic MCP, make sure you have:

Optional:


2. Connect Claude to Aiomatic

Step 1: Enable MCP inside WordPress

  1. In your WP Admin, go to Aiomatic -> Settings -> MCP.

  2. Create a new API token (used to authenticate the MCP connection) – this is optional, but recommended.

Step 2: Configure the relay (mcp.exe)

  1. Locate the mcp.exe file bundled in the MCP Server Creator extension (under /relay/).

  2. Open Command Prompt or PowerShell in that folder.

  3. Run the following commands:

# Register your site with Claude:
mcp.exe add https://example.com TOKEN
# Test connection with verbose output
mcp.exe start example.com

Step 3: Launch Claude Desktop


3. Example Prompts to Try

Once connected, you can give Claude direct instructions that run in WordPress:


4. Troubleshooting


5. Useful mcp.exe Commands

# Register a new site
mcp.exe add https://yoursite.com TOKEN
# List all registered sites
mcp.exe list
# Start a readable relay for debugging
mcp.exe start example.com
# Run silent relay mode (used by Claude internally)
mcp.exe relay example.com
# Switch target site for Claude
mcp.exe claude example.com
# Send a raw RPC request
mcp.exe post example.com "{\"method\":\"tools/list\"}" <session_id>

6. Cleanup When Claude Quits

When Claude closes:


That’s it! With Aiomatic + MCP Server Creator Extension, your WordPress site becomes AI-ready, letting Claude generate, edit, and manage your content directly.

Exit mobile version