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.
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
- Install Claude Code and sign in if you have not already.
- Run the command below, swapping in your own server URL from the deployment Connect panel.
- Protected server? Claude Code opens your browser to authorize (OAuth) on first connect — approve once and the connection refreshes itself.
- Start a new Claude Code session — the server’s tools are now available.
claude mcp add --transport http my-server https://my-server.mcp.cloud/mcpVerify 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.
Connect another client
Claude Desktop
Connect Claude Desktop to a remote MCP server over a stdio bridge.
Cursor
Point Cursor at a remote MCP server.
VS Code
Add a remote MCP server to VS Code.
Windsurf
Connect Windsurf to a remote MCP server.
Antigravity
Add a remote MCP server to Antigravity.
Codex
Add a remote MCP server to the Codex CLI and IDE extension.
ChatGPT
Add your MCP server to ChatGPT as a custom connector.
Gemini CLI
Add a remote MCP server to the Gemini CLI.