Connect your AI app to WordPress
Install MCPMate, copy your MCP URL, add it to your AI app, then approve the app in wp-admin. Pick your app below.
Pick your app
Claude
Chat in your browser or desktop app. Guide available; not tested end to end yet.
ChatGPT
Chat in your browser or desktop app. Guide available; not tested end to end yet.
Cursor
Code editor. Guide available; not tested end to end yet.
Claude Code
Terminal. Tested end to end with Claude Code 2.1.311.
Codex CLI
Command line. Guide available; not tested end to end yet.
Gemini CLI
Command line. Guide available; not tested end to end yet.
VS Code + Copilot
Code editor. Guide available; not tested end to end yet.
Windsurf
Code editor. Guide available; not tested end to end yet.
Antigravity
Code editor. Guide available; not tested end to end yet.
Zed
Code editor. Guide available; not tested end to end yet.
Cline
Code editor. Guide available; not tested end to end yet.
Continue
Code editor. Guide available; not tested end to end yet.
Amp
Command line. Guide available; not tested end to end yet.
No apps match these filters.
Client names and marks identify applications; MCPMate is independent and not affiliated with their makers.
Before you start
- WordPress 6.0 or later and PHP 7.4 or later.
- Your site on HTTPS.
- Permalinks set to anything but “Plain”.
- You’re an administrator.
- The setup wizard’s checks pass.
Your MCP URL
Copy yours from MCPMate → Connections. It looks like this:
https://your-site.com/wp-json/ mcpmate/ mcp
Sites on your own computer
AI apps on the same computer can connect directly. Web apps such as Claude.ai and ChatGPT can’t reach your computer, so give the site a public HTTPS address with a free Cloudflare Tunnel.
Install cloudflared
Cloudflare’s free tunnel tool.
Start a tunnel
Run this with your site’s local address, then copy the
https://address it prints:Terminalcloudflared tunnel --url http://your-site.local
Tell MCPMate the address
Add these lines to
wp-config.php, then run Site checks again:wp-config.phpdefine( 'MCPMATE_PUBLIC_URL', 'https://your-tunnel-address' ); define( 'WP_ENVIRONMENT_TYPE', 'local' );
Your WordPress address doesn’t change. A quick tunnel gets a new address each time you start it, and every AI app must then connect again; a named Cloudflare Tunnel keeps one address.
Troubleshooting
The usual fixes, each with the Site checks row in the plugin that spots it.
No approval page opened?
Your browser may have blocked a pop-up. Look for it in your AI app or your browser’s address bar.
The page said the link expired?
Approval links last 10 minutes. Start the connection again in your AI app.
Asked to log in?
Log in to your site in that browser; you’ll come back to the approval page.
Approving on a phone or another computer?
Approve there. The connection works wherever you approve it.
Your AI app says it can’t connect?
Run Site checks again on the MCPMate dashboard. The rows below name the usual causes.
A firewall or security plugin blocks the MCP URL
Site checks row: AI apps can reach your MCP URL. Allow these addresses in your security plugin or firewall: /wp-json/mcpmate/mcp, /mcpmate/, /.well-known/oauth-, /.well-known/openid-configuration. On Cloudflare, add a WAF custom rule that skips them; Bot Fight Mode on the free plan can’t be skipped, so turn it off instead.
Sign-in details don’t reach WordPress
Site checks row: Sign-in details reach WordPress. Some servers drop the Authorization header. On Apache or LiteSpeed, save Settings → Permalinks once, or add SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 to .htaccess. On nginx, add fastcgi_param HTTP_AUTHORIZATION $http_authorization;.
AI apps can’t find how to sign in
Site checks row: AI apps can find how to sign in. Your server keeps addresses under /.well-known to itself. On nginx, add location ^~ /.well-known/oauth- { try_files $uri /index.php?$args; } (and the same for openid-configuration); on Apache, RewriteRule ^\.well-known/(oauth-|openid-configuration) index.php [L].
A cache stores sign-in answers
Site checks row: Caches don’t store sign-in answers. In your cache plugin, host or CDN, add /wp-json/mcpmate/mcp, /mcpmate/, /.well-known/oauth-, /.well-known/openid-configuration to the pages never to cache, then clear the cache.
Requests stop before they finish
Site checks row: Requests have enough time to finish. Raise PHP’s max_execution_time to 120 seconds or more, and any proxy’s read timeout with it.
First prompts to try
They only read, so nothing on your site changes.
-
Prompt
Give me a health summary of my WordPress site.
-
Prompt
Which theme and plugins does my site use, and are any out of date?
-
Prompt
Read my homepage and suggest three ways to make it clearer.
Try it on your own site
Install the plugin, paste one address into your AI app, and approve it in WordPress. Pause or revoke access any time.