MagicWP Docs
For developersMCPAI

Connect your assistant

Sign in from Claude, ChatGPT or the Claude Code plugin, or add MagicWP with an API token to Cursor, Codex, Gemini CLI and others

The server address is:

https://mcp.magicwp.io/mcp

There are two ways to connect:

  • Sign in with MagicWP (OAuth): Claude on the web, desktop and mobile, ChatGPT and Claude Code. No token to copy.
  • An API token in the assistant's config: Cursor, Codex, Gemini CLI and other clients that send an Authorization header. See Connect with an API token.

Sign in with MagicWP

When you connect, your browser opens the MagicWP dashboard. Sign in, then:

  1. Check which app is asking. Claude and ChatGPT are shown by name with a check mark. Any other app is shown with the domain it comes from; only continue if you started connecting it yourself.
  2. Pick the workspace the app may use.
  3. Pick Full access or Read-only.
  4. Click Allow. You go back to the app, and it's connected.
AccessThe assistant canTools
Read-onlyLook at your sites, backups, updates, settings and activity. It changes nothing.21
Full accessAlso create and change sites, take and restore backups, apply updates, manage staging, plugins, PHP, caching, domains, redirects, Cloudflare settings and disk quotas, send test emails and make one-time Magic Login links. Destructive actions still need your confirmation.60
  • You need two-factor authentication on your account, and the workspace's plan must include MCP.
  • The app can never do more than your own role in the workspace.
  • The app gets a short-lived key that it renews by itself. A connection lasts until you disconnect it; one that isn't used for 90 days ends by itself.
  • IP address limits don't apply to signed-in apps: Claude and ChatGPT connect from their own servers, not your computer.
  • See and disconnect your apps under MCP → Connected apps in the dashboard.

On claude.ai (the desktop and mobile apps use the same connectors):

  1. Open Customize → Connectors and choose Add custom connector.
  2. Name it MagicWP, enter https://mcp.magicwp.io/mcp and click Add.
  3. Click Connect, sign in to MagicWP and approve.

On a Team or Enterprise plan, an Owner adds the connector first under Organization settings → Connectors; then each member clicks Connect. The Free plan allows one custom connector.

Connect with an API token

1. Create a token for MCP

Open MCP in the dashboard and click one of its token buttons, or go to Settings → API tokens → Create token and pick an MCP preset:

PresetThe assistant canTools
For MCP (read-only)Look at your sites, backups, updates, settings and activity. It changes nothing.21
For MCP (full)Also create and change sites, take and restore backups, apply updates, manage staging, plugins, PHP, caching, domains, redirects and Cloudflare settings, and make one-time Magic Login links. Destructive actions still need your confirmation.58

The email tools and changing a disk quota also need the Email and Billing permissions, which the full preset leaves out; tick them if you want those.

You can also tick permissions yourself: the assistant then sees exactly the tools those permissions allow (see Tools).

  • Two-factor authentication is required to create a token. If you turn 2FA off later, your tokens stop working.
  • Expiry: 1 to 365 days, 90 by default.
  • Only from these addresses (optional): limit the token to your own IP addresses. This works through MCP too: MagicWP checks the address of the computer the assistant runs on.
  • Copy the token when it is shown: it appears only once.

A token can never do more than your own role in the workspace. More about tokens: API tokens.

2. Add the token to your assistant

The server uses Streamable HTTP, and your token goes in the Authorization header. Replace mwp_your_token_here with your token.

Signing in (above) is simpler. With a token:

claude mcp add --transport http --scope user magicwp https://mcp.magicwp.io/mcp \
  --header "Authorization: Bearer mwp_your_token_here"

--scope user makes MagicWP available in every directory, not just the current project. Check the connection with /mcp inside Claude Code.

Keep the token out of shared files

The token is a password for your workspace. Don't commit a project config file that contains it; prefer the user-level config shown above, or an environment variable where the client supports one.

Check it works

Ask your assistant "Which MagicWP workspace am I connected to?". It answers with the workspace, your role and what the token may do. Then try one of the example prompts.

Change or remove access

  • Different permissions: create a new token and replace it in your assistant's config, then revoke the old one.
  • Remove access: revoke the token under Settings → API tokens, or disconnect a signed-in app under MCP → Connected apps (or all of them with Disconnect all). The assistant loses access at once.
  • Signed-in app, other workspace or access level: disconnect it, then connect again and choose differently.

On this page

Try MagicWP free
  • Temporary sites
  • Free templates
  • Staging sites
  • Offsite backups
  • Team access
  • API tokens
  • PHP 8.5
Go to your dashboardManage your sites, backups and team