Skip to main content

Connect Claude Code, Cursor and Codex over MCP

Add Sandscale's MCP server to Claude Code, Cursor, Codex, VS Code or Windsurf.

S
Written by Sanjay Senthilkumar

MCP lets your coding agent start, use and stop Sandscale sandboxes itself, with your own sign-in and inside your policy. The agent gets no credential of its own and can do only what you can.

Remote server

Sandscale's remote MCP server is at:

https://mcp.sandscale.dev/mcp

The first time your agent connects, it opens a Sandscale sign-in and then acts as you.

Cursor

Add this to ~/.cursor/mcp.json:

{ "mcpServers": { "sandscale": { "url": "https://mcp.sandscale.dev/mcp" } } }

Codex, VS Code and Windsurf

Add a remote MCP server with the same address, https://mcp.sandscale.dev/mcp.

Claude Code

Signing in to the remote server from Claude Code is coming soon. Today, connect it through sandscale mcp, the local server that comes with the CLI:

sandscale login
claude mcp add sandscale -- sandscale mcp

Install the CLI first: see Install the sandscale CLI and sign in. sandscale mcp connect prints how to add Sandscale to each tool.

What the local server offers

sandscale mcp offers 13 tools: list, show, start and stop workspaces; list, show, start, run commands in and stop sandboxes; and list build host pools, leases and lab hosts. Signing in, Vault and deleting anything are not offered as tools, and Vault values never go to a model.

If it does not connect

  • Check that you are signed in: run sandscale whoami.

  • Make sure the sandbox you want is allowed by your plan and your organization's policy; a refusal comes back with the API's own error code.

Docs: MCP tools. Still stuck? Email [email protected] with the sandbox ID, the region, what you expected and what happened, and the time (with a time zone). Never send secrets, keys or tokens.

Did this answer your question?