# Leash

> Leash is a free MCP server for security. Review what your AI touched, approve risky actions and undo supported changes. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, CLI
- **Website:** https://lea.sh
- **Repository:** https://github.com/open-leash/leash-plugin
- **GitHub stars:** 1
- **MCP Registry name:** io.github.open-leash/leash
- **Categories:** security
- **Listing updated:** 2026-11-14

## About

Leash sits between an AI assistant and your accounts so you can see and limit what the AI does there. The pitch is concrete: it can stop a spreadsheet being made public, block an email containing a password, and keep a way back for supported changes, such as restoring a file the AI moved to Google Drive Trash.

Access is set per AI, can be limited to reading, and is revoked by removing that connection. Audit history is kept for 90 days. When undo is enabled, recovery details are encrypted and kept up to 7 days. Protection checks may process request and response content with TypeSafe JEV. Only activity routed through Leash is covered, and a plugin cannot force every AI action through it.

The README covers installing the plugin in Gemini CLI, OpenClaw and Cursor-compatible clients, or adding the remote HTTP endpoint with OAuth elsewhere. A check_connection tool confirms the link works without touching personal accounts. The gateway and protection engine are private; the repository holds integration metadata.

## Features

- **Action approval:** Approve or block sensitive actions before they run.
- **Activity history:** See what the AI touched, kept for 90 days.
- **Per-AI access:** Give each AI its own rules and disconnect any time.
- **Supported undo:** Restore reversible changes while undo is enabled.
- **Content checks:** Stops items such as passwords in outgoing email.
- **Connection check:** check_connection verifies setup without personal data.

## Good for

- Stop an AI sharing a private file publicly
- Review what an assistant read in your accounts
- Undo a file move made by an assistant
- Give one AI read-only access to your files

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http leash https://secure.lea.sh/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://secure.lea.sh/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "leash": {
      "url": "https://secure.lea.sh/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "leash": {
      "type": "http",
      "url": "https://secure.lea.sh/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "leash": {
      "serverUrl": "https://secure.lea.sh/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "leash": {
      "type": "http",
      "url": "https://secure.lea.sh/mcp"
    }
  }
}
```

## Tools

- `check_connection`: Confirms Leash is connected without accessing personal accounts

## FAQ

### Is it free?

The README calls it free.

### How long is history kept?

Audit history is kept for 90 days; undo recovery details up to 7 days.

### Does it cover everything the AI does?

No. Only activity routed through Leash is covered.

### How do I remove it?

Uninstall the plugin and remove the connection in Your AIs; access is revoked immediately.

### Is Leash free?

Yes. Leash is free to use.

### How do I add Leash to Claude Code?

Run this command in your terminal: claude mcp add --transport http leash https://secure.lea.sh/mcp

### What are the best alternatives to Leash?

The closest alternatives to Leash are REA, Agent Roast, Midplane, Tinplate Edge AI Safety, Security & EU Compliance and SecureCloud.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.
- [signafAIde](https://ai-powered.com/mcp/signafaide): signafAIde is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/leash
