01Connecting an AI app
The AI app cannot connect to my WordPress site
- Open HandyMCP › Connection and click Check again under Connection check. It tests the server, sign-in and your host.
- Make sure the site uses HTTPS and Settings › Server › MCP server is on.
- Security plugins and firewalls (Wordfence, Cloudflare WAF, Sucuri, your host) can block the REST API. Allow
/wp-json/handymcp/and the/oauth/URLs. - The check names what blocks it. See Cloudflare, a plugin that turns off the REST API, other firewalls and approved but still not connected.
Claude or ChatGPT says the connector failed to register
Claude shows this as "Couldn't register with your site's sign-in service" with a reference like ofid_.... The app could not find or reach the sign-in details on your site.
- Turn on Settings › Server › OAuth sign-in and Automatic app registration. Both are needed by Claude and ChatGPT connectors. You still approve every app.
- Click Check again on the Connection screen. If OAuth discovery fails, your host answers
/.well-known/addresses itself (common on SiteGround and some nginx hosts). HandyMCP 1.0.3 and later detects this and fixes it automatically. On older versions, see the .well-known addresses return 404. - If the check names a firewall or captcha, allow the HandyMCP paths in it (see the firewall answers below).
- Remove the connector in the AI app and add it again, so it does not reuse an old failed registration.
My site is on SiteGround
SiteGround sites can block AI apps in two ways. The connection check recognises both and shows a SiteGround panel with the exact fix.
- Sign-in addresses return 404: SiteGround's server answers
/.well-known/itself, before WordPress. HandyMCP 1.0.3 and later handles this automatically. Nothing to do. - Anti-bot captcha: requests from Claude or ChatGPT get a captcha (HTTP 202 or 403) instead of an answer. Copy the support ticket text from the Connection screen and send it to SiteGround support. It asks them to exclude
/wp-json/handymcp/,/.well-known/oauth-authorization-server,/.well-known/oauth-protected-resourceand/handymcp/oauth/authorizefrom bot protection. - SG Optimizer cache: under Speed › Caching › Exclude URLs, add the same paths, then purge the cache.
The .well-known addresses return 404 or Not found
AI apps read your sign-in details from /.well-known/oauth-authorization-server and /.well-known/oauth-protected-resource. Some hosts answer these addresses themselves.
- HandyMCP 1.0.3 and later: detects this and fixes it automatically. Click Check again to confirm.
- Static files: the Connection screen shows the exact content of both files and where to put them. HandyMCP Pro can create them with one click (Create the files for me).
- Plain permalinks are not supported. Pick any other structure under Settings › Permalinks.
Sign-in is blocked and I need to connect now
Connect with an access token instead of OAuth. On the Connection screen, click Connect with an access token instead. HandyMCP creates the token and shows the ready-made setup for Claude Code (claude mcp add) and for Claude Desktop through mcp-remote. Fix the sign-in issue later; the token keeps working meanwhile. Available in 1.0.3 and later.
The sign-in page shows "Not found" or a 404
- Go to Settings › Permalinks and click Save changes without changing anything.
- Plain permalinks (
?p=123) are not supported. Pick any other structure.
Error 401 or "Unauthorized"
- The sign-in expired, or the token was paused, revoked or expired. Resume it, or disconnect and connect again.
- Some hosts strip the
Authorizationheader. Ask your host to pass it through, or use OAuth instead of a token.
Error 403 or "Forbidden"
- A firewall blocked the request. Allow
/wp-json/handymcp/and the/oauth/URLs. - The user who approved the app has a role that is not in Settings › Access › Allowed roles, or lacks permission for that task. Connect with an administrator.
The connection check says the site is not on HTTPS
Claude and ChatGPT only connect to sites on HTTPS.
- Install an SSL certificate. Most hosts offer a free one (Let's Encrypt) in their control panel.
- Then set both addresses in Settings › General to
https://. - Local test sites on
http://work with Cursor, VS Code and Claude Code through an access token.
A firewall or cache blocks the MCP endpoint
- In your security plugin or firewall (Wordfence, Sucuri, Cloudflare WAF, your host), allow
/wp-json/handymcp/and the/oauth/URLs. - In your cache plugin or CDN, exclude
/wp-json/handymcp/from caching. The MCP endpoint must never be cached. - Click Check again on the Connection screen to confirm. It names the firewall that answered: see Cloudflare or Sucuri, Wordfence or the host firewall.
Cloudflare blocks the connection
The connection check says Cloudflare answered, shows a browser challenge ("Just a moment...") or a Cloudflare error code. AI apps connect from servers and cannot solve challenges, so Cloudflare must let these paths through. Work through the steps in this order.
- Find what blocks it. Open Security › Analytics › Events and open the newest Managed Challenge or Block. Service and Rule ID name the cause: Rule ID
iuamis Under Attack mode, Service Security level is a Security Level setting or rule, Bot fight mode and Custom rules name themselves. - Rules › Configuration Rules and Page Rules: a rule that sets Security Level (for example to I'm Under Attack for every country except yours) turns Under Attack on even when the switch on the Overview page is off, and a Skip rule cannot override it. Edit that rule and add to the end of its expression:
and not starts_with(http.request.uri.path, "/wp-json/handymcp/") and not starts_with(http.request.uri.path, "/.well-known/oauth") and not starts_with(http.request.uri.path, "/handymcp/oauth/") and not http.request.uri.path in {"/register" "/token" "/authorize" "/wp-cron.php"}
Your rule keeps protecting the rest of the site. Excluding/wp-cron.phpalso lets WordPress run its scheduled tasks. - Overview › Quick Actions: Under Attack Mode must be off.
- Security › Settings › Bot traffic: turn off Bot Fight Mode. On the Free plan it ignores Skip rules and blocks AI app servers.
- Security › Settings › Configure AI bot policies (or AI Crawl Control): set Agent to Allow, so
Claude-UserandChatGPT-Userget through. - Security › Security rules › Create rule › Edit expression, paste:
(starts_with(http.request.uri.path, "/wp-json/handymcp/") or starts_with(http.request.uri.path, "/.well-known/oauth") or starts_with(http.request.uri.path, "/handymcp/oauth/") or http.request.uri.path in {"/register" "/token" "/authorize"})
Action Skip. Tick All remaining custom rules, All rate limiting rules, All managed rules and All Super Bot Fight Mode Rules, then open More components to skip and tick everything except Hotlink Protection (Zone Lockdown, User Agent Blocking, Browser Integrity Check, Security Level and the previous-version rules). Set the order to First and deploy. This rule skips the firewall and Browser Integrity Check, but not Configuration Rules, Page Rules or Bot Fight Mode: those need steps 2 to 4. - Run Check again on the Connection screen.
Cloudflare error codes: 1020 a WAF custom rule, 1010 Browser Integrity Check, 1015 a rate limiting rule, 1006 to 1009 an IP or country block. Security › Events, filtered by path /wp-json/handymcp, shows the exact rule.
Requests from AI apps are blocked as bots
The connection check passes for normal requests but fails for requests that identify as Claude. A rule aimed at AI bots blocks Claude and ChatGPT.
- Cloudflare: AI Crawl Control or Block AI bots: allow
Claude-UserandChatGPT-User. Turn off Bot Fight Mode. - Security plugins: look for "block bad bots", "block AI crawlers" or user agent lists in Wordfence, Shield, All-In-One Security or BBQ, and remove Claude and ChatGPT from them.
- Host: Imunify360 or SiteGround anti-bot can block them too. Ask your host to allow the HandyMCP paths.
A plugin turns off the REST API
The connection check names the plugin under REST API blocked by. AI apps are never logged in with a browser cookie, so a plugin that only allows the REST API for logged-in users blocks them.
- All-In-One Security: WP Security › Miscellaneous › WP REST API: turn off "Disallow unauthorized REST requests" or allow the
handymcpnamespace. - Solid Security: Security › Settings › Advanced › WordPress Tweaks › REST API: choose Default Access.
- Perfmatters: General › Disable REST API: choose Default.
- WP Cerber: Hardening › Disable WordPress REST API: add
handymcpto the allowed namespaces. - Disable REST API, Clearfy, WP Hide, Hide My WP: allow the
handymcp/v1namespace, or turn the option off.
If it says rest_no_route, a plugin hides the HandyMCP routes: allow the handymcp/v1 namespace in it.
A security plugin setting blocks AI apps
The connection check reads the settings of common security plugins and names the one that blocks AI apps.
- Wordfence: Firewall › Rate Limiting: set "If a crawler's page views exceed" to Unlimited. Tools › Live Traffic shows blocked requests; use Add Param to Firewall Allowlist.
- All-In-One Security: the 5G/6G firewall rules can block JSON requests. Allow the paths or turn them off and test again.
- NinjaFirewall, Shield, Defender, SecuPress: check the plugin firewall log for
/wp-json/handymcp/and allow it.
Sucuri, Wordfence or the host firewall blocks the endpoint
The connection check says which firewall answered.
- Sucuri Website Firewall: Firewall › Access Control › Allowlist URL Paths: add
/wp-json/handymcp/,/.well-known/oauth-protected-resource,/.well-known/oauth-authorization-server,/register,/tokenand/handymcp/oauth/authorize, then clear the Sucuri cache. - Wordfence: Firewall › All Firewall Options › Allowlisted URLs: add
/wp-json/handymcp/v1/mcp. - Imunify360 (cPanel or Plesk): allow the paths above, or ask your host to turn off bot protection for them.
- ModSecurity (HTTP 406 or "Not Acceptable"): cPanel › Security › ModSecurity, or ask your host to whitelist the rule.
- SiteGround: its anti-bot system can answer with a captcha. Ask SiteGround support to exclude the paths above.
- nginx or Apache page: a host firewall or server rule refused it before WordPress ran. Ask your host to allow the paths above.
I approved the app but it still cannot connect
Look at Last sign-in attempt in the connection check. HandyMCP records how far each sign-in got.
- "Its server never came back to collect the sign-in token": your browser reached the site, but the AI app's servers did not. Cloudflare Bot Fight Mode, AI bot blocking, Under Attack mode or a host firewall blocks server traffic. See Cloudflare blocks the connection.
- "None of its requests to the MCP endpoint reached WordPress": the same block, on
/wp-json/handymcp/only. Allow that path. - "Was refused the sign-in token": remove the app on the Connection screen and connect again from scratch. Finish the sign-in within 10 minutes.
- "The sign-in page on your site was never opened": finish the sign-in in the window the app opens. If it shows a Cloudflare or firewall page, allow
/handymcp/oauth/authorize.
Application Passwords are turned off by a security plugin
This is only a note, not a problem. Claude and ChatGPT sign in with OAuth, and Cursor, VS Code and Claude Code use HandyMCP access tokens. Neither needs Application Passwords.
- If an app can only sign in with an Application Password, click Allow them for MCP only on the Connection screen. They then work for HandyMCP requests and stay off everywhere else.
- Or turn the option off in your security plugin, for example Wordfence › Login Security › Settings › Disable WordPress application passwords.
The site address and WordPress address do not match
Open Settings › General and make WordPress Address and Site Address the same, with the same www or no www and both on https://. Apps connect to the Site Address.
The connection check warns about the object cache
A persistent object cache (Redis or Memcached) is fine, but if sign-ins fail at random, flush it from your cache plugin or host panel and try again. HandyMCP does not need an object cache.
Cursor or VS Code connects but shows no tools
- Check the token is pasted with
Bearerin front, and that it has not expired. - Restart the app or reload its MCP servers. Most apps load tools when they start.
- Ask the AI to run
wp_site_info. From 1.0.3 it says why a connection has no tools: no scopes approved, every tool group switched off, read-only mode, or a role that is not allowed. The Connection screen shows the same reason next to the app.
Edits with scripts, iframes or code fail
The connection check has a Saving content with code test. If it warns, a firewall blocks requests that contain code-like text (scripts, iframes, embed codes, PHP or SQL). Normal edits work, but these fail.
- Wordfence: put the firewall in Learning Mode for a few minutes while you repeat the edit, or allowlist
/wp-json/handymcp/v1/mcpunder Firewall › Allowlisted URLs. - Cloudflare: the Skip rule in Cloudflare blocks the connection covers it.
- Sucuri: allowlist
/wp-json/handymcp/. - Imunify360, ModSecurity or your host (Hostinger, SiteGround and others): ask the host to whitelist the firewall rule for
/wp-json/handymcp/v1/mcp.
ChatGPT or Antigravity disconnects or says the response is invalid
These apps use the newer MCP protocol (version 2026-07-28). HandyMCP 1.0.3 and later supports it alongside the older version Claude and Cursor use. Update HandyMCP, then remove the connector in the app and add it again.
I want to start the sign-in from scratch
If apps keep failing with old or unknown client errors, open Settings and click Reset OAuth state (1.0.3 and later). It removes stale app registrations, pending sign-ins and expired tokens. Working connections and access tokens are kept. Then remove the connector in the AI app and add it again.


