MCPCloud.sh — Product and API reference
All clients

Connect Claude Code

Claude Code speaks the MCP HTTP transport natively, so a single `claude mcp add` command registers your deployed server — no config file editing required.

TransportStreamable HTTPConfigTerminal command

How do I connect an MCP server to Claude Code?

Run `claude mcp add <name> --transport http <server-url>` in your terminal — Claude Code speaks the MCP streamable HTTP transport natively, so one command registers a deployed server with no config-file editing. If the server is protected, Claude Code opens a browser OAuth prompt the first time it connects.

Setup

  1. Install Claude Code and sign in if you have not already.
  2. Run the command below, swapping in your own server URL from the deployment Connect panel.
  3. Protected server? Claude Code opens your browser to authorize (OAuth) on first connect — approve once and the connection refreshes itself.
  4. Start a new Claude Code session — the server’s tools are now available.
Terminal commandbash
claude mcp add --transport http my-server https://my-server.mcp.cloud/mcp

Verify the connection

Run `claude mcp list` and confirm your server appears with a connected status.

Troubleshooting

The server shows as failed in `claude mcp list`.

Confirm the URL ends in `/mcp` and that the deployment status is active in MCPCloud.

Authentication errors on first tool call.

If the server requires runtime auth, complete the OAuth prompt Claude Code surfaces, then retry.

Claude Code MCP documentation

Connect another client