Install
$ agentstack add mcp-latchagent-latch ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Latch
Security guardrails for AI agents. Safe actions run automatically. Risky actions wait for approval.
What is Latch?
Latch is an open-source proxy for MCP (Model Context Protocol) servers. It sits between your AI agent and its tools, enforcing policies on what the agent can do:
- Safe actions (reads, internal writes) → Pass through automatically
- Risky actions (shell commands, external sends) → Require human approval
- Forbidden actions (payments, destructive ops) → Blocked entirely
Quick Start
# Start Latch with Docker
git clone https://github.com/latchagent/latch
cd latch
docker compose up -d
Open the dashboard at http://localhost:3000, create an account, and get your API key.
# Wrap an MCP server through Latch
npx @latchagent/cli@latest run \
--api-key "latch_YOUR_KEY" \
--upstream "my-server" \
--upstream-command "npx" \
--upstream-args "-y,@modelcontextprotocol/server-filesystem,/tmp"
How It Works
AI Agent → Latch CLI → Latch Server → MCP Server
- Agent makes a tool call
- Latch CLI intercepts and classifies the action
- Policy is evaluated (allow / deny / require approval)
- If allowed, call is forwarded to the MCP server
- Everything is logged for audit
Action Classes
| Class | Default | Examples | |-------|---------|----------| | READ | Allow | File reads, API queries | | WRITE | Allow | File writes, updates | | SEND | Approval for external | Emails, messages | | EXECUTE | Require approval | Shell commands | | SUBMIT | Require approval | PRs, form submissions | | TRANSFER_VALUE | Deny | Payments, transfers |
Features
- Policy engine — Rules based on action class, upstream, and tool
- LLM-evaluated policies — Write conditions in plain English
- Approval workflow — Single-use tokens, argument-bound
- Audit log — Full history of all tool calls with redacted secrets
- Telegram notifications — Approve from your phone
- Self-hosted — Your data stays on your infrastructure
Documentation
Full documentation at latch.mintlify.app
Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) for development setup and guidelines.
License
MIT — see [LICENSE](./LICENSE)
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: latchagent
- Source: latchagent/latch
- License: MIT
- Homepage: https://latch.mintlify.app
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.