Connect to the MCP server
The MCP server operates through streamable HTTP at the sandbox’s base URL:metadata.url.
Connect to this MCP server like any other MCP server though the endpoint shown above. Instructions for some popular applications are provided below.
You must provide your Blaxel API key in the
Authorization header. If your user has access to multiple workspaces, include the workspace header as well.- Required:
Authorization: Bearer <APIKEY> - Optional (multi-workspace):
X-Blaxel-Workspace: <WORKSPACE_NAME_OR_ID>
Add to Cursor
Add the server to~/.cursor/mcp.json:
Add to Claude Code
Add the remote HTTP server to your Claude Code by running the following command:Add to Windsurf
Add to~/.codeium/windsurf/mcp_config.json:
Add to Goose
Add to~/.config/goose/config.yaml:
Tools available in the MCP server
Process management
Filesystem operations
Code search and navigation
Code editing
Using Blaxel SDK, you can retrieve the tools for a sandbox in any supported framework format by passing the sandbox’s name. For example, in LangGraph:
Example: Connect to a sandbox from Claude Agent SDK
Connect Claude Code to a Blaxel Sandbox
Build a Claude Agent SDK agent that connects to a Blaxel sandbox and operates it using the sandbox’s MCP server.
