# Connect cPanel to Claude Code with MCP
Source: https://docs.webgee.com/en/hosting/connect-cpanel-to-mcp



cPanel's **MCP connection** exposes your account to an AI coding tool through
the Model Context Protocol, so the tool can deploy a website and perform account
maintenance for you rather than telling you which buttons to press. Claude Code
is the supported client.

Applies to cPanel accounts using the
[Meridian theme](/en/hosting/the-meridian-theme). You need a WebPros account to
link to, and Claude Code installed on your own computer.

## Link your WebPros account [#link-your-webpros-account]

1. In cPanel, open **Account Preferences**.
2. Find the **MCP Connection** section.
3. Select **Link WebPros Account** and sign in when prompted.

The link is what authorises the connection. Unlinking later disconnects your
WebPros account from cPanel, and you have to authenticate again before using MCP
from that machine.

## Add the server to Claude Code [#add-the-server-to-claude-code]

Still in the **MCP Connection** section, either download `mcp.json` or copy the
connection configuration shown. Then put it in one of two places, depending on
who should have access:

| File                               | Scope                                        |
| ---------------------------------- | -------------------------------------------- |
| `~/.claude.json`                   | Just you, on this computer, in every project |
| `.mcp.json` in the repository root | Everyone working in that repository          |

Use the repository file when a team shares the project and each member links
their own WebPros account. Use the home-directory file for your own machine.

<Callout type="warn">
  `.mcp.json` is committed with the repository. Check what the configuration
  contains before adding it to a repository other people can read, and never
  commit an access token to a public repository.
</Callout>

## Connect [#connect]

1. Restart Claude Code so it reads the new configuration.
2. Run `/mcp`.
3. Choose the authentication option. A browser window opens to complete
   verification.

Once verification finishes, the cPanel tools are available in that session.

## What you can do with it [#what-you-can-do-with-it]

The connection is built for deploying websites and routine account maintenance.
A deployment request reads much like a sentence:

```
Deploy this Node.js app to my cPanel account and give me the live HTTPS URL.
```

That flow is also available from the Websites hub — see
[Deploy a Node.js app](/en/development/deploy-a-nodejs-app-in-meridian), which
lists **Deploy via WebPros MCP** as one of its three code sources.

## Disconnect [#disconnect]

Return to **Account Preferences** → **MCP Connection** and unlink the WebPros
account. Do this when you stop using the machine you configured, or when someone
who had access to a shared `.mcp.json` should no longer have it.

## Related [#related]

* [Deploy a Node.js app](/en/development/deploy-a-nodejs-app-in-meridian)
* [The Meridian theme](/en/hosting/the-meridian-theme)
* [Use the AI Assistant](/en/hosting/cpanel-ai-assistant)
