How to connect Claude Desktop to your WordPress site
Claude Desktop connects to a WordPress site through Cowboy MCP in one of two ways: a public HTTPS site connects with one click on Add to Claude, while a local site (Local, Studio, MAMP, DevKinsta, wp-env) connects through a small mcp-remote bridge. Both use one-click sign-in — no API key to copy, store, or lose. Both take minutes; this guide covers each. New to MCP? Start with the WordPress MCP server guide.
Which path do you need: public site or local site?
The Claude apps connect from Anthropic's cloud, so the only question is whether that cloud can reach your site. A public HTTPS address can be reached — use the one-click connector. A site on your own computer can't — use the bridge. The plugin works this out for you: when the site address looks local (localhost, a .local or .test hostname, a private IP), the Connections tab badges each client Works locally or Needs public URL and shows the bridge for Claude Desktop first.
| Where your site runs | How Claude connects | Credential |
|---|---|---|
| Public HTTPS site on any host | Claude Desktop → one-click Add to Claude (one-click sign-in) | No key to copy — approve once in the browser |
| Local site — Local, Studio, MAMP, DevKinsta, wp-env, any localhost | Claude Desktop → mcp-remote bridge on your computer | No key to copy — the bridge opens the same one-click sign-in (an API key is the headless fallback) |
| claude.ai in the browser | Custom connector (same OAuth flow) | Public HTTPS only — a local site needs a tunnel |
Either way, install the free plugin first: Plugins → Add New, search for Cowboy MCP, Install and Activate, then open Settings → Cowboy MCP. Custom connectors work on every Claude plan (Free is limited to one); on Team and Enterprise an organization owner adds the connector first, then members click Connect.
Connect a public WordPress site to Claude Desktop (one-click)
On a public HTTPS site there is no key to generate and no config file. Cowboy MCP includes its own OAuth 2.1 server, so your site is what Claude signs in to — two steps, and the second is one click.
- 1
Click Add to Claude
On the Connections tab pick Claude Desktop and click Add to Claude — there's no setting to switch on first. It opens claude.ai in a new tab with your site already filled in — check the address is your /wp-json/cowboy-mcp/v1/endpoint URL, then click Continue and Add. The connector shows up in the Claude desktop app too. Rather do it in the app? Open Add it by hand instead on the same panel, copy the connection link, and in Claude go to Customize → Connectors, click + Add → Add custom connector, paste it, then click Continue and Add.
- 2
Approve access
Claude opens a sign-in page on your site. Log in as an administrator, choose an access level, and click Approve. The Connections tab confirms the moment Claude connects; switch the connector on under + → Connectors in a chat and you're done.
What the consent screen shows
The approval page is served by your own site, not by Anthropic. It names the app (“Claude wants to connect”), says what it gets — “It will be able to read and manage your site through the MCP server, acting with your administrator permissions” — and which account you're authorizing as. Under Access level pick Full access — read and manage the site or Read-only — inspect the site, make no changes, then Approve or Deny. Only administrators can approve; no token exists until one does.
Approved apps then appear in a Connected apps table on the Connections tab. Open the ⋯ menu on its row and choose Edit access to switch between Full access, Read-only, Drafts only and Custom… (a checklist of individual tools), or Revoke to cut it off immediately. Each approval is its own row: reconnecting adds a new entry with the access you choose, and the earlier one stays listed until it expires.
Connect a local WordPress site to Claude Desktop (mcp-remote bridge)
A site on your computer can't be reached from Anthropic's cloud — but Claude Desktop runs on that same computer and can start a local helper. The bridge is the standard open-source mcp-remote package, started on demand via npx; it connects only from your computer to the site. Nothing is exposed to the internet, no tunnel involved.
- 1
Add the bridge to Claude Desktop
On the Connections tab pick Claude Desktop — on a local site it opens the bridge flow. Copy the one-line setup command and run it in Terminal (macOS) or PowerShell (Windows): it adds the bridge to claude_desktop_config.json for you, with your site already filled in. Then fully quit and reopen the Claude app.
- 2
Approve access
On first start the bridge opens a sign-in page on your site in your browser. Pick the access level and click Approve — no key to copy.
- 3
Check it worked
Open a new chat in Claude Desktop, click + and open Connectors — your site (named after its hostname, e.g. mysite-local) should be listed. The first start can take a moment while the bridge downloads.
Rather edit the file yourself? Open Edit the config file instead under the command and add the block above. macOS: ~/Library/Application Support/Claude/claude_desktop_config.json — Windows: %APPDATA%\Claude\claude_desktop_config.json
The bridge requires Node.js on your computer — npx fetches mcp-remote the first time. Headless, or a machine that can't open a browser? Open Use an API key instead on the same panel: generate a key (shown once) and run the variant command, which passes it as "--header", "Authorization:${AUTH_HEADER}" with "env": { "AUTH_HEADER": "Bearer YOUR_API_KEY" } — the env variable keeps the space in “Bearer <key>” intact through Claude Desktop's argument handling on Windows. Because that key sits in plain text in the file, prefer a read-only key, and revoke it when you stop using it.
Getting a certificate error? Local sites usually use a self-signed certificate that AI tools reject. Since the site runs on this same computer, use the plain http:// address instead — the connection never leaves your machine. The tab offers that variant only for loopback-shaped hosts (localhost, 127.0.0.1, .local, .test), never for a bare private IP that could be another machine. Avoid the NODE_TLS_REJECT_UNAUTHORIZED=0 workaround seen online: it disables certificate checks for everything that tool connects to.
What can Claude Desktop do once connected?
The same 203 tools every client gets: content and media, plugins and themes, users, the block editor, WooCommerce, Wordfence, ACF, Elementor, Beaver Builder, SiteOrigin Page Builder, diagnostics, and a per-change undo journal with database checkpoints. The WordPress MCP guide has the full map.
Troubleshooting: Claude says it can't reach the server
Start with the Connection Doctor at the bottom of the Connections tab: click Run checks, then Copy report for a plain-text diagnosis you can paste to Claude or your host. It names the likely cause for each failure below; the same engine runs as wp cowboy-mcp doctor.
The connector needs a public hostname. The “Hostname publicly reachable” check warns when your site address is localhost, a .local/.test name, or a private IP — the Claude apps cannot reach those from Anthropic's cloud. Use the bridge for Claude Desktop, or a tunnel or staging URL for claude.ai.
HTTPS is required for the connector. A plain-http address fails the “Site uses HTTPS” check whenever the connector is on. Install an SSL certificate and update the WordPress Site Address — the OAuth discovery documents live at your site root under /.well-known/ (or under /wp-json/ on a subfolder site or a host that blocks that path, which the plugin works out by itself since 1.7.7), and pretty permalinks must be on for /wp-json/ to resolve.
Host bot-filters and Cloudflare. If Cloudflare is challenging the request, add a WAF skip rule (or disable Bot Fight Mode) for /wp-json/cowboy-mcp/* and /.well-known/oauth-*. A ModSecurity-style firewall blocking JSON POSTs needs your host to allowlist POST /wp-json/cowboy-mcp/v1/endpoint; server-level Basic Auth must exclude /wp-json/cowboy-mcp/ and /.well-known/ (MCP clients can't send two Authorization headers); and a page cache returning HTML instead of JSON should exclude /wp-json/cowboy-mcp/.
The bridge needs Node.js. If Connectors never lists your site, confirm Node.js is installed, that you fully quit and relaunched Claude Desktop after running the command (or editing the file), that you approved the sign-in page it opened, and that the JSON still parses. A certificate error means the note above applies. And if a tool seems missing, check the credential's scope — a read-only key or connection hides every write tool by design.
Keeping an agent on a leash — safe mode, dry runs, undo, checkpoints, the audit log — is covered on the security page and in Is it safe to give AI access to WordPress?
Questions, answered.
Do I need an API key for Claude Desktop?
No. On a public HTTPS site, click Add to Claude (or add the endpoint URL as a custom connector) and approve once on your own site. On a local site, the mcp-remote bridge opens the same one-click sign-in. Either way there's no key to copy, store, or lose. An API key remains as a fallback for headless setups; because the bridge stores it in plain text in claude_desktop_config.json, make it read-only unless it needs to make changes.
Does this work with claude.ai in the browser?
Yes, for a public HTTPS site — claude.ai uses the same custom-connector flow and the same consent screen on your site. It cannot reach a local site, because it connects from Anthropic's cloud. A tunnel works for temporary testing, but it exposes your whole dev site while it runs, and the WordPress Site Address must be set to the tunnel URL for the sign-in to work.
Can I use Claude Desktop with a site on Local or Studio?
Yes. Local, Studio, MAMP, DevKinsta, wp-env, and any other localhost setup work through the mcp-remote bridge — a small helper on your computer, so nothing is exposed to the internet and no tunnel is needed. The Connections tab detects a local site and shows a one-line setup command; if the self-signed certificate causes an error, use the plain http address it offers.
Is the OAuth connector safe?
It is designed to be. Your own site is the OAuth 2.1 authorization server — no third-party service in between — and no token is issued until a logged-in administrator clicks Approve. Tokens act as that administrator, stop working if they lose the role, are stored as hashes, and can be revoked from the Connected apps table. Browser sign-in is off until you connect an app, and Claude can never change the plugin's own settings through it.
Can I limit what Claude can do?
Yes. Every credential has a scope: choose Read-only on the consent screen (or when generating a fallback key), or Custom… for a hand-picked list of tools, and change it later from the Connections tab. On top of that, safe mode asks before destructive actions, writes can be previewed as a dry run, every change lands in an undo journal, and an audit log records every call.
Where is claude_desktop_config.json?
On macOS it is at ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows at %APPDATA%\Claude\claude_desktop_config.json. The quickest way to open it is Claude Desktop → Settings → Developer → Edit Config. You only need the file for a local site, where the bridge lives; the setup command on the Connections tab writes the entry for you. A public site uses a connector instead and never touches this file.
How do I add a remote MCP server to Claude Desktop?
Through a custom connector, not the config file. In Claude Desktop (or claude.ai) open Customize → Connectors, click + Add → Add custom connector, paste your site's endpoint URL (https://your-site.com/wp-json/cowboy-mcp/v1/endpoint), then Continue and Add. Claude opens a sign-in page on your site; approve it and the server is connected. The Add to Claude button on the Connections tab does the same with the URL pre-filled. The server must be public and on HTTPS; for a local site use the mcp-remote bridge instead.
What are Claude Desktop connectors, and do I need the Developer settings?
Connectors are remote MCP servers that Claude signs in to over the web — your WordPress site becomes one when Cowboy MCP is installed. They live under Customize → Connectors and sync between claude.ai and the desktop app. The Developer settings (Edit Config) are only for local MCP servers started on your own computer, which is what the mcp-remote bridge is. So: public site → Connectors; local site → Developer config.
Ready to connect Claude Desktop to your WordPress site?
Install the free, open-source Cowboy MCP plugin, pick your path on the Connections tab, and Claude Desktop is working your site minutes later. It runs on any self-hosted WordPress site on version 6.2 or newer with PHP 8.0+. Prefer a different client? The same site connects to claude.ai and the Claude apps, Claude Code in the terminal, and Cursor too.