Airlock logo

Airlock

Coordinates AI agents with local MCP locks, shared notes, presence tracking, events, and crash-safe task queues.

Install Airlock

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for airlock, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The airlock MCP server coordinates multiple AI agents sharing a repository through a local HTTP daemon. It stores locks, notes, presence data, events, and tasks in SQLite, with blocking waits for contended locks and leases that recover work after crashes. Install it when agents, terminals, or CI jobs need to share resources without relying on prompt instructions or retry loops. It runs on macOS and Linux at 127.0.0.1:27183 and supports Claude Code, Cursor, Windsurf, and other MCP clients.

Use cases

  • Coordinate concurrent agents editing one repository
  • Reserve shared resources such as migration names or package installs
  • Share short-lived state between terminal, IDE, and CI sessions
  • Signal handoffs without polling
  • Distribute recoverable tasks among workers

Key features

  • Named locks with blocking waits and TTLs
  • Atomic multi-resource lock acquisition
  • SQLite-backed notes, counters, and compare-and-swap state
  • Presence tracking with automatic lock release
  • Generation-counted events
  • Lease-based task queues with automatic requeue

Tools8

What Airlock lets your agent do. Expand a tool for its parameters.

Self-reported~146 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/19 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit22d agoMost recent push to the default branch.
Tools exposed8Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Airlock works

What the airlock MCP server does

The airlock MCP server gives agents a shared coordination layer for work on the same repository or host. Its primary mechanism is a named resource lock: an agent can acquire a lock, wait on a busy lock for up to 50 seconds, renew it, release it, or inspect current holders. Multiple resources can be acquired atomically, using a documented name ordering to avoid deadlocks.

Shared notes provide lightweight key-value state with optional authors and expiration. The newer conditional-update operation supports compare-and-swap behavior, while counters provide collision-free numeric increments under concurrent access. Agents can also register their presence, inspect active agents, and have locks released when a registration expires or is explicitly removed.

Generation-counted events support handoffs without polling. A waiting agent supplies the last generation it observed and can block until a newer signal arrives. The task queue adds priority, claims, leases, completion, failure, and inspection. Expired leases return tasks to the pending queue, allowing another worker to continue after a claimant crashes.

How it works

A single Go daemon runs as a background service and exposes MCP over HTTP on 127.0.0.1:27183. The daemon keeps connections open while supported operations wait, so a caller does not need to implement a retry loop for a contended lock or event. Lock and task tokens act as capabilities for subsequent release, renewal, completion, or failure operations.

State is stored in SQLite at ~/.airlock/state.db with WAL mode. The database uses transactions, supports concurrent readers, and has one writer. The implementation uses the pure-Go modernc.org/sqlite package, so it does not require cgo or an external database.

Setup and configuration

Install with go install github.com/adamorad/airlock/v2@latest, Homebrew using brew install adamorad/tap/airlock, or a source build. Run airlock install-service to register a launchd service on macOS or a systemd user unit on Linux. airlock status reports the local daemon status and current coordination state.

Configure Claude Code with claude mcp add --transport http airlock http://localhost:27183. Cursor, Windsurf, and other MCP clients can use an HTTP MCP entry pointing to http://127.0.0.1:27183.

On Linux and other multi-user hosts, authentication requires a bearer token because loopback is shared between users. The daemon creates ~/.airlock/token with restrictive permissions on first run. Set the token in an Authorization header, or use AIRLOCK_TOKEN to override the file on any operating system. macOS is loopback-only by default and does not require the token.

Tools and capabilities

The airlock MCP server exposes 22 tools across five areas:

  • Locks: acquire, release, renew, list, and atomically acquire multiple named resources.
  • Notes and state: save, read, list, delete, conditionally update notes, and increment counters.
  • Presence: register, unregister, and list agents.
  • Events: signal, wait for, and clear generation-counted events.
  • Tasks: enqueue work, claim it with a lease, complete or fail it, and list queue entries.

Lock and note lifetimes use TTL values. The ttl_minutes input is retained as a deprecated alias for lock and note operations that accept TTLs. Wait windows for locks and events are capped at 50 seconds.

Limitations and notes

The daemon is local rather than a hosted coordination service: clients connect to the loopback address, and the state database resides on the machine running it. The documented platform support is macOS and Linux. On Linux, loopback alone is not an authorization boundary, so the bearer-token configuration is required for multi-user safety.

The agent identity path for unlocking and renewing locks remains for version-one compatibility, but lock tokens are the preferred capability. Presence registrations must be renewed before their TTL expires if an agent needs its locks to remain held. Task claims also require completion or failure before their lease expires; otherwise the task is eligible for requeue.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Airlock

airlock is an MCP server that connects AI agents, terminals, IDE sessions, and CI jobs through a local HTTP daemon. Its main tools manage named locks, shared notes and counters, agent presence, generation-counted events, and lease-based task queues backed by SQLite for concurrent coordination.

Install it with Go, Homebrew, or a source build, then run `airlock install-service`. Go installation uses `go install github.com/adamorad/airlock/v2@latest`; Homebrew uses `brew install adamorad/tap/airlock`.

Run `claude mcp add --transport http airlock http://localhost:27183`. The daemon must be running locally, normally as the background service registered by `airlock install-service`.

Yes, airlock works with Cursor and Windsurf through their MCP configuration. Add an HTTP MCP server using `http://127.0.0.1:27183`; on Linux or a multi-user host, also send the bearer token from `~/.airlock/token`.

Airlock uses expiring presence registrations and task leases. An expired agent registration releases its locks, while an expired task lease makes the task available for requeue and another worker to claim.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAirlock AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/airlock?style=directory)](https://allmcps.com/mcp/airlock)
HTML Embed
<a href="https://allmcps.com/mcp/airlock"><img src="https://allmcps.com/api/badge/airlock?style=directory" alt="Airlock on AllMCPs" /></a>