MCP integration

Using Model Context Protocol with Aimogen Pro - connecting to external MCP servers, and exposing your WordPress site as one.

Model Context Protocol is a standard for giving AI models access to tools and data. Aimogen Pro works in both directions: it can connect to MCP servers, and it can be one.

Advanced Tools › AI MCP Integration

MCP Support Comes to Aimogen - MCP server + MCP clientBoth directions of the MCP integration.Watch on YouTube

Connecting to an MCP server#

Aimogen Pro as an MCP client: your chatbot or agent gains the tools an external MCP server exposes.

Connect To A MCP Server

Add a server with its URL and any credentials. Configured servers are stored in the aiomatic_mcp_servers option.

Enable them per chatbot with Enabled MCP Server Connections (AI Chatbot › MCP Server Connection), or per placement:

[aimogen-chat-form mcp_servers="my-server"]

The connected tools then appear alongside the built-in extensions.

Exposing your site as an MCP server#

Aimogen Pro as an MCP server: external clients — Claude, ChatGPT, Cursor, or any MCP-capable application — connect to your WordPress site and use it as a tool. For Claude and ChatGPT, see Connect Claude and ChatGPT: they sign in instead of using a token.

Create Your MCP Server

Endpoints#

EndpointUsed for
/wp-json/aiomatic-mcp/v1/httpStreamable HTTP: one URL for every request. Claude, ChatGPT, Cursor and Claude Code connect here
/wp-json/aiomatic-mcp/v1/sse and /messagesThe legacy SSE transport, for clients set up against it earlier
/wp-json/aiomatic-mcp/v1/aiomatic-toolsThe tool list

Which transport endpoints exist is set by Transport. With Sign-in (OAuth) on, the server also answers the OAuth routes clients discover by themselves: /wp-json/aiomatic-mcp/v1/oauth/register, /authorize, /token and /revoke, plus the metadata documents under /wp-json/aiomatic-mcp/v1/.well-known/ and at the site root under /.well-known/.

Settings#

Stored in the aiomatic_mcp_settings option.

SettingWhat it does
enable_sseEnable MCP server: the master switch
bearer_tokenBearer Token: the token clients must present. Set a long random value
enable_debugVerbose logging
mcp_transportTransport: both (default), streamable or legacy. Claude and ChatGPT need Streamable HTTP
mcp_oauthSign-in (OAuth): lets clients sign in through an administrator's approval instead of a token. Required by the Aimogen Pro connector
mcp_roleAccess Level: admin, readwrite or readonly. Applies to every connected client
mcp_activity_logActivity Log: records each tool call under Recent AI Activity
tuned_coreCore WordPress functionality. On by default
tuned_pluginsPlugin-related functionality
tuned_themesTheme-related functionality
dynamic_restDynamic REST API access
tuned_woocommerceWooCommerce functionality
session_memorySession storage across calls
embeddings_sseEmbeddings access
advanced_sseAdvanced tooling
config_toolsAimogen Configuration: lets the AI propose Aimogen settings changes for your approval
config_directLets the AI save configuration changes without asking. Needs the Administrator access level

Version 2.6.0 added MCP tools for session storage, Gutenberg block generation, embeddings, Amazon, scraping, internet search, YouTube and email.

Aimogen Pro > Advanced Tools > AI MCP Integration, Create Your MCP Server tab

Security#

Firewall configuration#

Web application firewalls frequently block these routes. The settings screen includes vendor-specific instructions — for Cloudflare, that means Security › Security Rules › Create Rule › Custom Rules, matching URI /wp-json/aiomatic-mcp/v1/* with the action set to Skip, with all WAF components (including the additional ones under "More components to skip") selected, then Deploy.

See Plugin and server conflicts.

Connecting a client#

Once the server is running, the How to connect an AI agent section of the screen gives the endpoint URL and the header to send, Authorization: Bearer <token>, with setup steps for ChatGPT, Claude Desktop, Claude Code and Cursor. Clients with no place for headers can append ?token= to the URL instead.

Claude and ChatGPT do not need the token: with Sign-in (OAuth) on, they send you to an approval screen on your site. The Connect Claude or ChatGPT box shows the URL to give them, and Connect Claude and ChatGPT walks through it, including the Aimogen Pro connector listed in Claude's directory.

Before connecting anything, click Run Self-Test under Connection Self-Test. It calls the site the way an AI client would and reports when a firewall, CDN or security plugin answers instead of WordPress.

When MCP is worth it#

Connecting to servers is worth it when a capability you need already exists as an MCP server — a database, an internal API, a SaaS tool. Building it as an MCP server once makes it available to every MCP-capable AI you use, not just this plugin.

Exposing your site is worth it when you want to work with your WordPress content from an AI client — asking Claude Desktop about your site, or having it draft content in place.

For automation that runs on your site, OmniBlocks and agents are simpler and need no external client.

Common problems#

The MCP server settings are missing. The extension plugin is not active.

A client cannot connect. A firewall is blocking /wp-json/aiomatic-mcp/v1/*, or the bearer token does not match. Run Self-Test shows which.

Claude or ChatGPT cannot sign in. See the troubleshooting list for every message the sign-in can show, including ModSecurity's "Not Acceptable" page.

Connected tools do not appear in the chatbot. The server is not enabled for that chatbot in Enabled MCP Server Connections.

Tools never fire. The model does not support function calling. See Selecting models.

Still stuck? Open a support ticket and include the diagnostics from Aimogen Pro › System & Logs › System Info.