# Ratchet MCP server

Your agent asks before it acts, so the same real-world action is attempted at most once.

## Facts

- Endpoint: https://ratchetgate.com/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: B (85/100, scanned 2026-09-12) · report https://gateturbo.com/report/0c59041e-5c81-4740-aeb5-9fb156cfb364
- Tools: 15
- Category: Dev tools · source: registry
- Repository: https://github.com/thearchitect0x-glitch/ratchet
- Last probed: 2026-09-03 · first listed: 2026-09-01
- Directory page: https://gateturbo.com/mcp/ratchet · this document: https://gateturbo.com/mcp/ratchet.md · JSON: https://gateturbo.com/api/directory/servers/ratchet

## Tools (15)

- `ratchet_get_circuit`: Call this when a begin returned "approval_required" or "denied" and the reason mentions a circuit breaker. A breaker opens when an effect ty
- `ratchet_begin_effect`: Call this IMMEDIATELY BEFORE performing any side effect that touches the outside world (sending a message, charging a card, creating a resou
- `ratchet_report_effect`: Call this IMMEDIATELY AFTER performing an action that ratchet_begin_effect authorised. Pass the lease_token you were given. Report "succeede
- `ratchet_extend_lease`: Call this periodically during a long action you were authorised to perform, before the lease expires. It tells Ratchet you are alive and ext
- `ratchet_get_effect`: Look up the recorded state of an action WITHOUT reserving a lease and without consuming your plan allowance. Use it to answer "did I already
- `ratchet_resolve_effect`: Use ONLY after you have checked the third-party system and now know what really happened to an effect that was left "indeterminate". Record 
- `ratchet_get_run`: Recall the work already gated under a run id, before doing anything that might repeat it. Call this FIRST when resuming a task — after a res
- `ratchet_list_effects`: Review recent effects for this workspace, optionally filtered by state or run. Use it to find unresolved work — filter by state "indetermina
- `ratchet_get_policy`: Shows how this workspace has configured a given effect type: whether it is allowed, how long a lease lasts, the attempt ceiling, spend limit
- `ratchet_unwind_group`: Call this when a multi-step workflow fails partway and the steps that already succeeded must be undone — a booking made but not paid for, a 
- `ratchet_get_group`: Shows every step in a multi-step unit of work: what succeeded, what can still be undone, what has already been undone, what is irreversible,
- `ratchet_get_usage`: Returns the current plan, remaining included effects for the month, prepaid credit balance, and today's declared external spend against each
- `ratchet_list_receipts`: Returns a signed receipt for every decision made about one effect, refusals included. Each signature is over the exact bytes in `body` and v
- `ratchet_reconcile_effects`: Given the idempotency keys for actions a vendor says actually happened, returns which ones went through Ratchet and which it has never seen.
- `ratchet_get_prevented_loss`: Counts duplicate actions refused in the last 30 days and what they would have cost. Only counts refusals where a cost was declared on the ef

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect Ratchet to your gate (https://gateturbo.com/login?next=/discovery?connect=ratchet).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/ratchet/claude · Claude Desktop → https://gateturbo.com/mcp/ratchet/claude-desktop · ChatGPT → https://gateturbo.com/mcp/ratchet/chatgpt · Codex → https://gateturbo.com/mcp/ratchet/codex · Cursor → https://gateturbo.com/mcp/ratchet/cursor · Windsurf → https://gateturbo.com/mcp/ratchet/windsurf · VS Code → https://gateturbo.com/mcp/ratchet/vscode · Gemini CLI → https://gateturbo.com/mcp/ratchet/gemini-cli · OpenClaw → https://gateturbo.com/mcp/ratchet/openclaw · n8n → https://gateturbo.com/mcp/ratchet/n8n · A script or server → https://gateturbo.com/mcp/ratchet/script

### Direct: Claude Code

Add Ratchet to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

```bash
claude mcp add --transport http ratchet https://ratchetgate.com/mcp
```

### Direct: Cursor

Add Ratchet to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

```json
{
  "mcpServers": {
    "ratchet": {
      "url": "https://ratchetgate.com/mcp"
    }
  }
}
```

### Direct: VS Code

Add Ratchet to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

```json
{
  "servers": {
    "ratchet": {
      "type": "http",
      "url": "https://ratchetgate.com/mcp"
    }
  }
}
```

### Direct: Codex

Add Ratchet to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.ratchet]
url = "https://ratchetgate.com/mcp"
```

### Direct: Claude

Add Ratchet as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "Ratchet" and paste the URL below.
3. Save; the tools appear in new chats.

```
https://ratchetgate.com/mcp
```

### Direct: ChatGPT

Add Ratchet as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "Ratchet" with the URL below.
3. Set authentication to none.

```
https://ratchetgate.com/mcp
```

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
