S

Slotlock

by PILOTAAI · io.github.PILOTAAI/slotlock

Enables AI agents to query resource availability from weekly rules, place holds, and create bookings that PostgreSQL guarantees cannot overlap or double-book, with conflicts returned as data. Writes are idempotent, revision-checked, and tenant-scoped from the authenticated caller.

oci Unknown transport GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-pilotaai-slotlock": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRMATION_SECRET=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_METRICS_TOKEN=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_MIGRATE_DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRM_WRITES=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AVAILABILITY=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_REST_API=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_SHARED_LIMITS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_WEBHOOKS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_TENANT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_API_KEY=<YOUR_VALUE>",
        "ghcr.io/pilotaai/slotlock:0.12.3"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-pilotaai-slotlock": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRMATION_SECRET=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_METRICS_TOKEN=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_MIGRATE_DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRM_WRITES=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AVAILABILITY=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_REST_API=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_SHARED_LIMITS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_WEBHOOKS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_TENANT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_API_KEY=<YOUR_VALUE>",
        "ghcr.io/pilotaai/slotlock:0.12.3"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-pilotaai-slotlock": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRMATION_SECRET=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_METRICS_TOKEN=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_MIGRATE_DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRM_WRITES=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AVAILABILITY=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_REST_API=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_SHARED_LIMITS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_WEBHOOKS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_TENANT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_API_KEY=<YOUR_VALUE>",
        "ghcr.io/pilotaai/slotlock:0.12.3"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-pilotaai-slotlock": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRMATION_SECRET=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_METRICS_TOKEN=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_MIGRATE_DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRM_WRITES=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AVAILABILITY=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_REST_API=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_SHARED_LIMITS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_WEBHOOKS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_TENANT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_API_KEY=<YOUR_VALUE>",
        "ghcr.io/pilotaai/slotlock:0.12.3"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-pilotaai-slotlock": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRMATION_SECRET=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_METRICS_TOKEN=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_MIGRATE_DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRM_WRITES=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AVAILABILITY=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_REST_API=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_SHARED_LIMITS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_WEBHOOKS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_TENANT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_API_KEY=<YOUR_VALUE>",
        "ghcr.io/pilotaai/slotlock:0.12.3"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-pilotaai-slotlock": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRMATION_SECRET=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_METRICS_TOKEN=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_MIGRATE_DATABASE_URL=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_CONFIRM_WRITES=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_AVAILABILITY=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_REST_API=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_SHARED_LIMITS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_WEBHOOKS=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_TENANT=<YOUR_VALUE>",
        "-e",
        "SLOTLOCK_API_KEY=<YOUR_VALUE>",
        "ghcr.io/pilotaai/slotlock:0.12.3"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
DATABASE_URL secret Yes postgres:// URL of a PostgreSQL 16 or newer database the container can reach, as a role that is not a superuser and has no BYPASSRLS: serve refuses one, since row-level security would not confine it. Without SLOTLOCK_MIGRATE_DATABASE_URL this role also applies the schema, so it must be able to create it.
SLOTLOCK_AUTH_TOKEN secret No Bearer token required in the Authorization header for the self-hosted MCP endpoint at /mcp.
SLOTLOCK_CONFIRMATION_SECRET secret No Signs pending write confirmations: at least 32 random characters, different from the token. Required unless SLOTLOCK_CONFIRM_WRITES is none.
SLOTLOCK_METRICS_TOKEN secret No Bearer token for the Prometheus metrics endpoint; metrics are disabled without it.
PORT No Port the server listens on inside the container. Default: 8080
SLOTLOCK_MIGRATE_DATABASE_URL secret No postgres:// URL of the schema owner. When set, migration runs as this role and grants the DATABASE_URL role only what it needs at runtime.
SLOTLOCK_CONFIRM_WRITES No Writes that wait for a person to confirm them: none, all, or a comma-separated list of slotlock_create_event, slotlock_book_together, slotlock_book_pool, slotlock_update_event, slotlock_delete_event, slotlock_confirm_slot, slotlock_reschedule, slotlock_cancel. Listing one also guards the tool that makes the same write (slotlock_cancel with slotlock_delete_event, slotlock_reschedule with slotlock_update_event, slotlock_confirm_slot with slotlock_create_event). Clients without MCP 2026-07-28 form elicitation have guarded writes refused. Default: none
SLOTLOCK_AVAILABILITY No JSON array of weekly bookable-hours rules, e.g. [{"rrule":"FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR","startMinutes":540,"durationMinutes":480}]. Without rules no slot is ever offered.
SLOTLOCK_REST_API No on: also serve the tools as a REST API under /v1, and the application API (resources, bookable hours, holds, reservations, coverage, maintenance) for admin keys, described by an OpenAPI 3.1 document at /openapi.json. Writes that wait for confirmation answer 428 there. off: MCP and A2A only. Default: on
SLOTLOCK_RETENTION_DAYS No Days of history kept: the change feed (who made each change included) and how far back a cursor reaches, and ended waitlist entries; retried writes are answered for at least 30 days whatever it is. 1-3650; default 30.
SLOTLOCK_SHARED_LIMITS No on: tenant request budgets (SLOTLOCK_LIMITS' tenant_* and app_*) are shared by every server of a deployment through PostgreSQL, so N servers allow a tenant its rate once, not N times. off: each server keeps its own. Default: off
SLOTLOCK_WEBHOOKS No on: deliver each tenant's changes to its webhooks (POST /v1/webhooks), signed as Standard Webhooks; never to a private network address. private: those too, for testing. off: keep the change feed (GET /v1/changes), send nothing. Default: on
SLOTLOCK_TENANT No The tenant SLOTLOCK_AUTH_TOKEN acts in; API keys act in their own tenant. Default: default
SLOTLOCK_API_KEY No API key for Slotlock Cloud's hosted MCP endpoint.

Similar servers