# airgap

> airgap is an open-source MCP server for security. MCP server that runs coding agents' installs, builds and tests in disposable cloud. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows, API, Self-hosted
- **Website:** https://www.useairgap.dev
- **Repository:** https://github.com/dhruvil-codes/airgap
- **MCP Registry name:** dev.useairgap/airgap
- **Categories:** [security](https://ai-powered.com/categories/security), [agent sandbox](https://ai-powered.com/categories/agent-sandbox)
- **Listing updated:** 2026-11-27

## About

Coding agents often need to install packages, run builds or execute tests from untrusted pull requests, and doing that on a developer machine puts SSH keys and cloud tokens at risk. This server moves that work into a fresh Linux virtual machine hosted on GMI Cloud, sends only the files and commands passed in a tool call, and returns the output once the machine is deleted after the run.

Before execution, the server can scan issue and PR text for hidden instructions aimed at an agent, and audit package.json, requirements.txt or Cargo.toml for install scripts and alternate dependency sources. Logs and output are scrubbed of passwords, tokens and keys before the agent sees them, and each run returns an unsigned SHA-256 receipt.

It suits developers who use Claude Code, Cursor, VS Code or Factory Droid and want the agent to verify patches or run untrusted code away from their workstation. Sandbox runs need a GMI Cloud account and API key, while local scanners work without credentials.

## Features

- **Disposable microVM execution:** Installs, builds and tests run in a throwaway Linux virtual machine that is deleted after each run.
- **Pre-install supply audit:** Flags risky install scripts and alternate dependency sources in common manifest files before anything runs.
- **Prompt injection scanning:** Classifies issue, PR and log text as clean, suspicious or malicious before the agent acts on it.
- **Secret redaction:** Removes passwords, tokens and private keys from command output and arbitrary text locally.
- **Patch verification:** Applies a diff to a clean base snapshot and runs the test command to check the result.
- **Editor setup command:** A setup command registers the server with supported editors and writes agent routing rules.

## Good for

- Run a project's test suite without executing its install scripts on your laptop
- Verify a pull request diff against a clean base before merging
- Triage an issue safely by scanning its text for hidden agent instructions first
- Audit package.json or Cargo.toml for risky install-time commands
- Strip credentials from logs before an agent reads them

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add airgap -- npx -y airgap-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "airgap": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add airgap -- npx -y airgap-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.airgap]
command = "npx"
args = ["-y", "airgap-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user airgap npx -- -y airgap-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "airgap": {
      "command": "npx",
      "args": [
        "-y",
        "airgap-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 7 tools change data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `airgap_sandbox_run` (name suggests: changes): Runs a command against an explicit file snapshot in a remote sandbox.
- `airgap_verify_patch` (name suggests: changes): Applies a unified diff to a clean base snapshot and runs the test command.
- `airgap_scan_injection`: Classifies issue, PR, log or feedback text as clean, suspicious or malicious.
- `airgap_redact_secrets`: Scrubs private keys, token formats and credential assignments from text locally.
- `airgap_audit_supply`: Flags install-time scripts and alternate dependency sources in manifests.
- `airgap_configure`: Changes the default model and timeout for later calls.
- `airgap_audit_repo`: Runs a defensive static review of explicit files.

## FAQ

### Does airgap need Docker installed locally?

No. It needs no local Docker daemon, virtual machines or container runtime, and runs as a single native binary or through npx.

### What leaves my machine?

Only the files, commands and text passed explicitly in a tool call. Injection scan text and audit sources are redacted first.

### Which agents are supported?

Setup configures Claude Code, Cursor, VS Code and Factory Droid. Any other stdio MCP client can use the JSON configuration, and an HTTP mode is available for shared setups.

### What do I need to run sandboxes?

A GMI Cloud account and a compute-scoped AgentBox key. Injection scans and repo audits need an inference key, while local scanners need no credentials.

### Is airgap an official GMI Cloud product?

No. It is an independent open-source project that uses GMI Cloud AgentBox and GMI MaaS.

### Is airgap free?

Yes. airgap is open source, so you can use and self-host it for free.

### How do I add airgap to Claude Code?

Run this command in your terminal: claude mcp add airgap -- npx -y airgap-mcp

### What are the best alternatives to airgap?

The closest alternatives to airgap are Agent Runtime Guard, Sandscale, Dmcps, CyberAgents AI Security Firewall and MCP Sandbox Computer VM for AI.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent Runtime Guard](https://ai-powered.com/mcp/agent-runtime-guard): Agent Runtime Guard is an open-source MCP server for security.
- [Sandscale](https://ai-powered.com/mcp/sandscale): Sandscale is a freemium MCP server for agent sandbox.
- [Dmcps](https://ai-powered.com/mcp/dmcps): Dmcps is an open-source MCP server for security.
- [CyberAgents AI Security Firewall](https://ai-powered.com/mcp/cyberagents-ai-security-firewall): CyberAgents AI Security Firewall is a freemium MCP server for security.
- [MCP Sandbox Computer VM for AI](https://ai-powered.com/mcp/mcp-sandbox-computer-vm-for-ai): MCP Sandbox Computer VM for AI is an MCP server for developer tools.
- [Agent Guard MCP](https://ai-powered.com/mcp/agent-guard-mcp-2): Agent Guard MCP is an open-source MCP server for security.
- [Sandbox Env MCP](https://ai-powered.com/mcp/sandbox-env-mcp): Sandbox Env MCP is an open-source MCP server for developer tools.
- [kosa8](https://ai-powered.com/mcp/kosa8): kosa8 is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/airgap-2
