# Airlock: Permissions-Aware MCP Gateway

> Airlock: Permissions-Aware MCP Gateway is an open-source MCP server for agent tooling. Permissions gateway that lets you allow, ask or deny AI agent tool calls via MCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, iOS, Self-hosted, API, Telegram
- **Website:** https://airlock.bot
- **Repository:** https://github.com/airlock-dev/airlock
- **MCP Registry name:** io.github.airlock-dev/airlock
- **Categories:** [agent tooling](https://ai-powered.com/categories/agent-tooling)
- **Listing updated:** 2026-11-27

## About

Airlock sits between an AI agent and the MCP servers, CLI tools and REST APIs it calls. Each agent gets its own policy, so it only sees the tools it is allowed to use, and calls that need a person's sign-off pause until someone approves them from the Command Center, an iOS or macOS companion, Telegram or a terminal UI.

Policies are written in one YAML file and can go down to individual arguments and CLI subcommands. Unmatched tools and commands are denied by default, and time-boxed grants let an operator widen a repetitive approval without opening access permanently. Every call is written to a SQLite audit log with secrets redacted.

It suits teams running coding agents or ops bots who want to keep write access, deploy steps and outbound messages under review while still letting read-only work run unattended.

## Features

- **Per-agent allow, ask, deny:** Each agent gets its own rules, and denied tools are removed from the tool list it sees.
- **Argument and command policies:** Constrain specific parameter values and CLI subcommands, with a default-deny fallback.
- **Human approval with grants:** Sensitive calls wait for approval, and approvals can be widened into revocable, time-limited grants.
- **Sandboxed tool variants:** Expose one capability under several names with different filesystem and network limits.
- **Audit log and credential health:** Calls are recorded to SQLite with redaction, and credential probes flag expired tokens.
- **Offline policy checks:** Validate configs in CI and trace which agents can call a given tool before deploying.

## Good for

- Letting a coding agent read a repo while git push and PR creation wait for approval
- Restricting an agent to specific repositories or branches using argument scopes
- Sending PagerDuty or GitHub events to an agent without granting it write tools
- Approving an agent's multi-step plan once from a phone instead of call by call
- Auditing which agent called which tool and with what decision

## Install

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

```sh
claude mcp add airlock -- npx -y airlock-bot
```

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": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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

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

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

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 airlock -- npx -y airlock-bot
```

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

```toml
[mcp_servers.airlock]
command = "npx"
args = ["-y", "airlock-bot"]
```

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

```json
{
  "mcpServers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user airlock npx -- -y airlock-bot

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

```json
{
  "mcpServers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

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": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
```

## FAQ

### How do I install Airlock?

Install the airlock-bot package with npm, which requires Node.js 22 or newer, then run it with a YAML config file.

### Which approval channels are supported?

Approvals can be handled in the Command Center dashboard, the iOS and macOS companion apps, Telegram, a terminal UI, OpenClaw, or a generic webhook.

### What happens to a call that needs approval?

In async mode the gateway returns a pending ID immediately, and the agent retries once the request is approved. Approval codes are never shown to the agent.

### Is Airlock: Permissions-Aware MCP Gateway open source?

Yes, the project is released under the MIT licence.

### Is Airlock: Permissions-Aware MCP Gateway free?

Yes. Airlock: Permissions-Aware MCP Gateway is open source, so you can use and self-host it for free.

### How do I add Airlock: Permissions-Aware MCP Gateway to Claude Code?

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

### What are the best alternatives to Airlock: Permissions-Aware MCP Gateway?

The closest alternatives to Airlock: Permissions-Aware MCP Gateway are mcp-airlock, Airlock, AgentGate, VariantGate and ScopeGate.

## 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

- [mcp-airlock](https://ai-powered.com/mcp/mcp-airlock): mcp-airlock is an open-source MCP server for agent tooling.
- [Airlock](https://ai-powered.com/mcp/airlock): Airlock is an open-source MCP server for agent tooling.
- [AgentGate](https://ai-powered.com/mcp/agentgate-4): AgentGate is an open-source MCP server for agent tooling.
- [VariantGate](https://ai-powered.com/mcp/variantgate): VariantGate is a freemium MCP server for agent tooling.
- [ScopeGate](https://ai-powered.com/mcp/scopegate): ScopeGate is a freemium MCP server for agent tooling.
- [Apex Dev](https://ai-powered.com/mcp/apex-dev): Apex Dev is a paid MCP server for agent tooling.
- [Neurouter Hub](https://ai-powered.com/mcp/neurouter-hub): Neurouter Hub is an open-source MCP server for agent tooling.
- [Gateway](https://ai-powered.com/mcp/gateway-2): Gateway is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/airlock-permissions-aware-mcp-gateway
