Airlock
Allows the agent to perform web searches and fetch pages from a single configured domain (default Google). The agent can search and fetch pages, but is restricted to that domain.
Drives a real Google Chrome browser over CDP to access web content, allowing logged-in sessions and bypassing bot detection.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Airlocksearch for latest AI news"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ฌ Airlock โ a deterministic egress gate for locked-down LLM agents
Give an LLM agent internet access without letting it roam or exfiltrate.
The usual options are bad: either you prompt the model "please don't leak data / only search Google" (unenforceable โ one clever prompt and it's gone), or you hand it a raw browser tool (it can navigate anywhere and POST anything out). Airlock is the third option:
The agent can reason and ask Airlock to look something up โ but the guarantees live in deterministic code the model cannot override. The LLM literally cannot widen the aperture.
Airlock is a small MCP server that enforces:
Guarantee | How |
Single egress | Only ever navigates to ONE configured domain. Result URLs are read, never followed. |
Fail-closed | If the browser/egress is down, no outbound call is made โ period. |
One-way | Only the sanitized query goes out; raw results come back; nothing else leaves. |
Status-only audit | Logs |
And it's self-healing: it drives a real, logged-in Chrome over CDP (survives the bot-walls headless scrapers hit), relaunches that Chrome if it dies, runs stateless (a restart never strands the client), and ships with a launchd plist for crash/reboot resilience.
The threat model it actually addresses
An autonomous agent with internet access is an exfiltration risk: prompt-injected content, a confused plan, or a jailbreak can turn "research this" into "POST our secrets to attacker.com." Airlock makes that structurally impossible for the agent โ the only thing that ever leaves is a query string to one pre-approved domain, and the only thing that comes back is read-only result text. The locked-down agent holds no credentials and has no other network path.
locked-down LLM agent โโ(asks)โโโบ Airlock (deterministic MCP) โโโบ ONE allowed domain
โฒ โ
โโโโโโโโโโโ raw results โโโโโโโโโโโโ (one-way; status-only audit)Related MCP server: Crawl4AI+SearXNG MCP Server
Quickstart
pip install -r requirements.txt
playwright install chromium # or use your system Chrome (default)
# 1. Launch the dedicated, logged-in Chrome ONCE (sign in to whatever you need, then leave it):
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
--remote-debugging-port=9222 --user-data-dir="$HOME/airlock-chrome-profile"
# 2. Run Airlock
python airlock.pyRegister it with your MCP client (e.g. an OpenClaw/Claude agent) as a streamable-http server at
http://host.docker.internal:9100/mcp/ (or localhost if not containerized), and scope it to the one
agent allowed to do research. Tools: gate_status, search, fetch_page.
Configuration (env)
Var | Default | Notes |
|
| the only domain Airlock will navigate to |
|
| how a query is run on that domain |
|
| what to read back |
|
| allow |
|
| |
|
| the Chrome Airlock drives |
|
| dedicated logged-in profile |
See .env.example. Always-on via launchd: com.airlock.gate.plist.
Hard-won lessons baked in
Stateless MCP is mandatory. Streamable-HTTP MCP ties sessions to the process; restart the gate and the client dies with
Session not found(-32600). Fix:mcp.run(..., stateless_http=True)โ and pass it torun(), not theFastMCP(...)constructor (constructor kwargs are deprecated and crash older versions โ a nasty silent footgun).Self-heal your dependency. A gate whose browser quit is just "down." Airlock relaunches its own Chrome (
subprocess.Popen(start_new_session=True)) so a closed window recovers with no human.Drive a real logged-in browser, not headless. Real profile over CDP sails past the bot-walls that block headless scrapers โ and keeps you logged in to whatever you need.
Put guarantees in code, not prompts. "Don't exfiltrate" in a system prompt is a suggestion. A single hard-coded egress domain + fail-closed checks is a guarantee.
Built by
Built by KodeKing ยท author Fazal Shah. We build local, private, multi-agent AI systems for teams who can't send their data to the cloud. Issues and PRs welcome.
License
MIT โ see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fazalrshah/airlock'
If you have feedback or need assistance with the MCP directory API, please join our Discord server