# Hyperlight MCP server

> Runs Python code in a local, hardware-isolated micro-VM that maintains state between calls for secure and fast execution.

- Repository: https://github.com/hyperlight-dev/hyperlight-unikraft
- Page: https://hostedmcp.org/servers/hyperlight-dev/mcp-server-hyperlight
- Transport: stdio
- Stars: 50
- License: Apache-2.0
- Latest version: 0.1.1

## Install

### Claude Code

```sh
claude mcp add mcp-server-hyperlight -- uvx mcp-server-hyperlight
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp-server-hyperlight": {
      "command": "uvx",
      "args": [
        "mcp-server-hyperlight"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp-server-hyperlight": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-hyperlight"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server-hyperlight","type":"stdio","command":"uvx","args":["mcp-server-hyperlight"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp-server-hyperlight": {
      "command": "uvx",
      "args": [
        "mcp-server-hyperlight"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server-hyperlight -- uvx mcp-server-hyperlight
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-server-hyperlight]
command = "uvx"
args = ["mcp-server-hyperlight"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-server-hyperlight uvx -- mcp-server-hyperlight
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp-server-hyperlight": {
      "command": "uvx",
      "args": [
        "mcp-server-hyperlight"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `RUN_ALL` | no | no |  |

## Tools (2)

- `run_python`
- `reset_sandbox`

## FAQ

### Does the Python environment keep state between calls?

Yes, variables, imports, and functions stay for the next call, similar to a notebook environment.

### Does this server require an account or API key?

No, it requires no account, no daemon, and no API key, and all data stays on your local machine.

### Can the Python guest access the internet?

By default, the guest has no network access unless you explicitly allow specific hosts using the --net-allow option.

### How fast does the micro-VM start?

After the initial setup, the guest can start from a warm snapshot in approximately 40 ms on Linux using KVM.
