# Recall MCP Gateway

> Open-source governance gateway that sits between AI agents and MCP tool servers to add visibility, risk detection, and block/approve/rate-limit controls.

Recall MCP Gateway is an open-source governance gateway from ControlisAI that sits between AI agents and upstream MCP tool servers. It gives real-time visibility into every tool call, detects risky behavior, and enforces rules such as block, require approval, and rate-limit. The repository marks it as beta and licenses it under AGPL-3.0.

## What It Is

The gateway is a single Go binary that agents connect to at a local MCP endpoint instead of reaching MCP servers directly. It proxies calls to upstream servers such as databases, APIs, and SaaS tools. A built-in dashboard lets users add MCP servers, create agents, and set rules without a config file. The README lists compatibility with Claude Desktop/Code, Cursor, Windsurf, LangChain/LangGraph, CrewAI, n8n, ServiceNow, Salesforce Agentforce, Microsoft Copilot Studio, and any MCP client.

## Detection and Rules

Without configuration, the gateway classifies tool risk from schema analysis (CRITICAL/HIGH/MEDIUM/LOW) and detects PII, credentials in arguments, destructive SQL patterns, and suspicious sequences such as data exfiltration or bulk deletes. EWMA-based behavioral baselines raise alerts on anomalies. Rules can target specific tools or agents, use wildcard patterns, and apply cron-based schedules, for example blocking outside business hours. Rules can be defined from the dashboard, via the admin API, or in YAML.

## Approvals and Agent Management

High-risk calls can be held for approval. Supported approval paths include MCP-native consent elicitation, HMAC-signed admin approval URLs via webhook or Slack buttons, delegated approval to the acting user, and MCP Tasks for async approval. Agents are auto-discovered from the MCP handshake, authenticated by bearer token or JWT, and can be scoped per server and per rule. Audit logs use a SHA-256 hash chain, and credentials are redacted in logs.

## Setup and Deployment

Install options are npx, Homebrew, Docker, or building from source. The same binary runs standalone with SQLite, with PostgreSQL, or in a multi-pod setup with PostgreSQL and Redis. Docker Compose profiles and a Helm chart are provided for Kubernetes. The dashboard has Discover, Control, Understand, Settings, and Docs tabs, and an admin API plus Prometheus metrics endpoint are exposed.

## Relationship to the Recall Platform

The gateway can optionally connect to the separate, commercial Recall Platform for centralized policy management, fleet-wide compliance scoring, and aggregated audit. Standalone features continue to work without it.

## Features
- Real-time tool call monitoring dashboard
- Zero-config tool risk classification
- PII and credential detection in tool arguments
- Destructive SQL detection
- Suspicious sequence detection
- EWMA behavioral baselines and anomaly alerts
- Rules engine: block, require approval, rate-limit, schedule
- Hold-connection and delegated approval workflows
- Slack and webhook approvals
- Per-agent identity, tokens, and server access control
- JWT validation with JWKS
- Tamper-proof SHA-256 hash-chain audit logs
- Admin API and Prometheus metrics
- Standalone, PostgreSQL, and multi-pod deployment
- Helm chart and Docker Compose support

## Integrations
Claude Desktop, Claude Code, Cursor, Windsurf, LangChain, LangGraph, CrewAI, n8n, ServiceNow AI Agent Studio, Salesforce Agentforce, Microsoft Copilot Studio, Slack, PostgreSQL, Redis, Prometheus, Docker, Kubernetes Helm

## Platforms
WINDOWS, MACOS, LINUX, WEB, API, CLI

## Pricing
Open Source

## Version
v1.0.0-beta.7

## Links
- Website: https://controlis.ai/#/gateway
- Documentation: https://github.com/controlisai/recall-mcp-gateway/blob/main/docs/client/usage-guide.md
- Repository: https://github.com/controlisai/recall-mcp-gateway
- EveryDev.ai: https://www.everydev.ai/tools/recall-mcp-gateway
