Skip to content
MCP server

Airlock: Permissions-Aware MCP Gateway

Permissions gateway that lets you allow, ask or deny AI agent tool calls via MCP

Runs locally

Airlock: Permissions-Aware MCP Gateway is an open-source MCP server for agent tooling. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, macOS, iOS
Runs
Locally
Version
0.4.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add airlock -- npx -y airlock-bot

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "airlock": {
      "command": "npx",
      "args": [
        "-y",
        "airlock-bot"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Airlock: Permissions-Aware MCP Gateway

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.

What it does

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

Pricing

Open source

Free and MIT licensed; self-hosted.

Prices change. Check airlock.bot before you buy.

Airlock: Permissions-Aware MCP Gateway 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.

How AIPoweredBot checks servers