Troubleshooting a live site usually means switching between multiple tabs. I open cPanel File Manager to pull a PHP script, paste it into an AI chat, copy the revised code, and paste it back into the file editor. The friction multiplies when debugging a MySQL database issue that needs table schemas and query runs.
The Model Context Protocol (MCP) provides an open standard for AI clients to speak with external environments. I built cpanel-mcp-bridge to link Claude directly to cPanel shared hosting without adding external dependencies.
The Friction of Manual cPanel Maintenance
Managing shared hosting accounts with external AI tools is slow and error-prone. You download logs, grab snippet files, sanitize connection strings, and feed them manually into Claude. Each step introduces chances to misplace code or miss subtle database constraints.
Most existing MCP servers expect local environments or modern container setups running Node.js or Python daemons. Standard shared hosting environments do not provide persistent background processes. They provide Apache or LiteSpeed, PHP, and MySQL.
cPanel MCP Bridge solves this by running as a single, lightweight PHP application right inside your hosting space. It requires no Composer installations, no Node runtimes, and no complex framework stacks.
What the Bridge Can and Cannot Touch
The bridge operates with distinct permission boundaries across files and databases. Claude can only perform operations you explicitly allow through configured permission levels.
- Read level: Claude can browse folders, search text, read files, and execute SELECT or SHOW queries against databases.
- Write level: Claude can write new files, edit existing lines, move files, send items to trash, and execute INSERT, UPDATE, or DELETE statements.
- Manage level: Claude can create or drop databases and manage database users via the cPanel API.
Hard restrictions protect your hosting core. Claude can never inspect the bridge's own deployment folder, run arbitrary shell commands, change MySQL server-wide variables, or step outside the directory root you configure. Sensitive files matching the hide list, such as wp-config.php and .env files containing credentials, are strictly off-limits.
Built-In Safety Controls
Granting write access to an AI model requires immediate recovery options. Every destructive action in cPanel MCP Bridge includes an automatic fallback mechanism.
Whenever Claude overwrites an existing file, the system archives a version before saving changes. Deleting a file does not purge it permanently; it moves the item into a trash directory that you can restore manually. A dedicated activity log records every operation.
Supported Clients and Requirements
The bridge requires standard cPanel or shared hosting running PHP 8.1 or higher, served over HTTPS. Running the script on an isolated subdomain, such as mcp.yourdomain.com, is recommended to separate it from your public sites.
It connects to claude.ai via custom connector using OAuth, to Claude Desktop, and to Claude Code using bearer tokens. The source code is open source under the GPL-3.0 licence and available in the cpanel-mcp-bridge GitHub repository.
Current Release Limits
Version 0.1.0 is an early release tested against 224 automated checks, including live MariaDB tests. However, claude.ai OAuth authentication and raw cPanel API calls for creating and dropping users have been verified on one hosting provider so far. Check your own host's cPanel API behaviors, keep your own backups, and inspect docs/SECURITY.md before running modifications.