Skip to main content
The jhansi SDK includes a built-in MCP server, letting AI agents (Claude Code, Cursor, Windsurf) create and run sandboxes directly.

Start the server

python -m jhansi.mcp_server
Configure the endpoint via environment variable:
export JHANSI_BASE_URL=http://localhost:8000

Claude Code

claude mcp add jhansi --scope user \
  --env JHANSI_BASE_URL=http://localhost:8000 \
  -- python -m jhansi.mcp_server

Tools

ToolDescription
create_sandboxCreate a new isolated sandbox. Returns the sandbox ID.
exec_codeExecute a command in a sandbox. Returns the output.
delete_sandboxDelete a sandbox and free its resources.