# Preloop

> Preloop is an open-source MCP server for security. Open-source control plane that firewalls MCP tool calls and caps agent model spend. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, Web, API, CLI
- **Website:** https://preloop.ai
- **Repository:** https://github.com/preloop/preloop
- **MCP Registry name:** io.github.preloop/preloop
- **Categories:** security, developer tools, AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

Preloop sits between agents and everything they reach. Its MCP firewall allows, denies or holds a tool call for human approval using ordered YAML rules with CEL expressions that can inspect arguments, so a payment above 2000 can be denied and one above 100 held. Approvals can be answered on mobile, watch, Slack, Mattermost, email or a webhook, and an async mode lets the agent poll for the decision.

A model gateway compatible with OpenAI and Anthropic attributes tokens to agent, flow or API key and sets soft and hard budgets; usage it cannot price is labelled unpriced rather than $0.00. The `preloop agents discover` command backs up and rewrites configs for Claude Code, Codex CLI, Cursor, Gemini CLI, OpenClaw, Hermes and OpenCode to route through it with no SDK changes.

The README also describes a software factory that runs agents on events from GitHub, GitLab, Jira or webhooks, and an audit trail the site frames as evidence for EU compliance programs, not certification.

## Features

- **MCP firewall:** Rules allow, deny or require approval per tool call, including argument checks.
- **Model gateway:** Per-agent spend attribution with soft and hard budgets.
- **Human approvals:** Requests reach mobile, watch, Slack, Mattermost, email or webhook.
- **One-command onboarding:** agents discover rewrites existing agent configs after backing them up.
- **Audit trail:** Logs tool, inputs, rule, decision, approver and spend.

## Good for

- Require approval before an agent makes a large payment
- Cap spend per agent or flow
- Watch a session timeline across a fleet
- Collect evidence for compliance reviews

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http preloop https://preloop.ai/mcp/v1
```

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

```sh
https://preloop.ai/mcp/v1
```

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

```json
{
  "mcpServers": {
    "preloop": {
      "url": "https://preloop.ai/mcp/v1"
    }
  }
}
```

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

```json
{
  "servers": {
    "preloop": {
      "type": "http",
      "url": "https://preloop.ai/mcp/v1"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "preloop": {
      "serverUrl": "https://preloop.ai/mcp/v1"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "preloop": {
      "type": "http",
      "url": "https://preloop.ai/mcp/v1"
    }
  }
}
```

## FAQ

### Is it self-hostable?

Yes, it is open source and self-hostable.

### Does onboarding change agent code?

No SDK or code changes; configs are rewritten with backups.

### What do rules look like?

YAML with CEL expressions, ordered by priority.

### Is it legal advice?

No, the site states it is evidence, not a certification or legal advice.

### Is Preloop free?

Yes. Preloop is open source, so you can use and self-host it for free.

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

Run this command in your terminal: claude mcp add --transport http preloop https://preloop.ai/mcp/v1

### What are the best alternatives to Preloop?

The closest alternatives to Preloop are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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