Skip to content
AI and automation4 min read

Claude Code over SSH or MCP: which suits your site?

Short answer

If your project is a Node.js, Python or Laravel app that needs commands, builds and tests on the server itself, run Claude Code on the server over SSH, on an account with 4 GB of RAM or more. If your site is WordPress or PHP and you want Claude to manage files, databases, email and the domain, run it on your computer and connect the hosting over MCP: it works on any plan, needs no SSH, and every change waits for your approval.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. The two ways in two lines
  2. The comparison
  3. When to choose SSH
  4. When to choose MCP
  5. Using both
  6. Common mistakes when choosing
  7. On ArabyHost

Claude Code can work on your site in two very different ways. The difference isn’t intelligence; it’s where it runs and what it can touch. Picking the wrong way causes most of the trouble we see: a session killed because memory is small, or a tool that can’t run a command because it has no terminal.

The two ways in two lines

  • Over SSH: you sign in to the server and run claude there. It reads files and runs any command in your account: npm, composer, php artisan, tests, git.
  • Over MCP: Claude Code (or the Claude app, or Cursor) stays on your computer and connects to the hosting panel with a key. It has no terminal on the server, but defined tools: read and edit files, the error log, databases, email, the domain, the PHP version, deploying from Git.

The comparison

Over SSH Over MCP
Where Claude runs On the server On your computer
What your account needs SSH and 4 GB of RAM or more Any plan, no SSH
Build and test commands Yes, all of them No, panel tools only
Domain, email, databases Through commands, where they exist Ready tools in the panel
Reach Everything your user can do Only the key’s tools; can be read-only
Approving changes Claude Code’s permission settings Every change tool waits for you
Connection drops The session ends; resume with claude --continue Unaffected, it runs on your computer

When to choose SSH

  • A Node.js or Python app that needs npm install, a build and a restart.
  • A Laravel project where you want it to run composer, php artisan migrate and the tests, and read the result.
  • You want Claude to fix an error and then try the fix itself on the server.

Mind the memory: Claude Code needs at least 4 GB of RAM, and the commands it runs need more on top. On a small account you’ll see Killed or out of memory. Setup steps are in Claude Code on a server.

When to choose MCP

  • A WordPress or PHP site on regular hosting without SSH.
  • You want Claude to read the error log, edit a file or .env, and show you the result.
  • You want it to set up a domain, a mailbox, a database or a subdomain without opening the panel.
  • You want a read-only key for an assistant that explains a problem without changing anything.

Connecting is one command in Claude Code:

claude mcp add --transport http arabyhost https://panel.arabyhost.com/mcp --header "Authorization: Bearer YOUR_KEY"
claude mcp list

If the connection doesn’t show ✔ Connected, see MCP server not connecting. The full walk-through is in Connect Claude to your hosting over MCP.

Using both

For a real project the best setup is often both together:

  1. Claude Code on the server over SSH to run the app, builds and tests.
  2. MCP from your computer for what surrounds the app: the domain, the SSL certificate, email, databases and backups.

That way Claude on the server doesn’t need powers it has no business with, and you don’t need to open the panel for every small task.

Common mistakes when choosing

  • Running Claude Code on shared hosting with 1 GB: it works for minutes, then gets killed. Use MCP or a bigger plan.
  • Giving an MCP key change permission for an assistant that doesn’t need it: start with read-only.
  • One key for every site: a key belongs to one hosting account, on purpose, to protect you.
  • An SSH session on a live site without Git: keep every change in Git so you can undo it easily.

On ArabyHost

Both ways are ready without manual setup:

  • Araby MCP on every plan: on the Connect your AI page in the panel you create a key for one account, choose read-only or read-and-change and an expiry, and revoke it whenever you like. Before any tool edits a file, the original is saved.
  • AI and Developer plans for SSH: 4 GB of RAM or more, Node.js 24 and Python 3.12, npm install -g installs inside your account without root, and every account is isolated in CageFS.

Pay in Egyptian pounds by card, wallet or InstaPay, and start in minutes.

FAQ

Do I need SSH to connect Claude to my hosting?

Not with MCP. Claude connects to the hosting panel over the internet with a key of its own, so it works on any plan. SSH is only needed to run Claude Code on the server itself.

Which is safer?

MCP is narrower: defined tools, a key for one hosting account, and it can be read-only. SSH gives Claude Code a full terminal inside your account, so it needs more care with permission settings and reviewing commands.

Can I use both?

Yes, and it's common: Claude Code on the server to run the app and builds, and MCP from your computer for the domain, email, databases and backups.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.