SUNGLASSES
Local input firewall that scans text, files and MCP metadata for prompt injection
- Pricing
- Open source
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 0.6.24
- Listing updated
- 3 days ago
About SUNGLASSES
SUNGLASSES is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
Sunglasses sits at the point where content turns into model context. It scans prompts, files, repositories, web pages and MCP tool metadata for prompt injection, tool poisoning, credential exfiltration, encoding tricks and memory poisoning, using 1563 patterns across 117 categories. It runs locally with no cloud calls unless you pass a report-to option.
Since v0.4 it also ships an enforcing firewall: sunglasses init installs a Claude Code PreToolUse hook that blocks secrets leaving in outbound tool calls and enforces local policy rules, with audit receipts and descriptor pinning. The site states 97.4% recall on its own benchmark and notes limits, including that nothing is inspected automatically without the local proxy.
The community edition is free and MIT licensed; a fixed-price review is a separate paid offer.
Install
Run in a terminal
claude mcp add sunglasses -- uvx sunglassesAdd to claude_desktop_config.json
{
"mcpServers": {
"sunglasses": {
"command": "uvx",
"args": [
"sunglasses"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"sunglasses": {
"command": "uvx",
"args": [
"sunglasses"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"sunglasses": {
"type": "stdio",
"command": "uvx",
"args": [
"sunglasses"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"sunglasses": {
"command": "uvx",
"args": [
"sunglasses"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"sunglasses": {
"command": "uvx",
"args": [
"sunglasses"
]
}
}
}What it does
- Pattern scanning
- 1563 patterns across 117 attack categories.
- MCP metadata checks
- Scans tool descriptions and pins descriptor hashes.
- Enforcing hook
- Claude Code hook blocks secrets in outbound calls.
- Python API and CI
- Scan repos and pull requests in a pipeline.
- Audit receipts
- Records what the firewall decided.
Good for
- Scan a repo for prompt injection before an agent reads it
- Check an MCP server's tool descriptions
- Block secrets leaving in tool calls
- Run scans in CI
Pricing
Open source
Community edition free; Boundary Review $4,000 per workflow
Prices change. Check sunglasses.dev before you buy.
SUNGLASSES FAQ
Does it send data to a cloud?
No by default; only if you pass --report-to or install the optional audio extra.
How is it licensed?
MIT, free via pip install sunglasses.
What is the paid offer?
Boundary Review, $4,000 per workflow, with a $2,500 founding offer for the first five buyers.
Does it inspect everything automatically?
No; server responses are inspected only with the local proxy (beta).
Is SUNGLASSES free?
Yes. SUNGLASSES is open source, so you can use and self-host it for free.
How do I add SUNGLASSES to Claude Code?
Run this command in your terminal: claude mcp add sunglasses -- uvx sunglasses
What are the best alternatives to SUNGLASSES?
The closest alternatives to SUNGLASSES are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.
Alternatives to SUNGLASSES

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools
Agent Roast
MCP serverOffline review that flags agent changes which weaken tests, assertions or CI
Runs locally- Open source
- 4 Hacker News points
- Developer tools

Midplane
MCP serverPostgres gateway for AI agents with table grants, column masking and approval for writes
Runs locally- Open source
- 5 GitHub stars
- Databases

Leash
MCP serverReview what your AI touched, approve risky actions and undo supported changes
- 1 tool
- Remote
- Free
- 1 GitHub star
- Security
Zero-log MCP server with 49 tools for AI guardrails, secret scanning and EU compliance
- 49 tools
- Remote
- Freemium
- Security

SecureCloud
MCP serverSentinelOne and IT security catalog, prices, quotes and checkout links for Israel
- 7 tools
- Remote
- Free
- Security