Skip to content
MCP server

SUNGLASSES

Local input firewall that scans text, files and MCP metadata for prompt injection

Runs locallyStatus and history
Install
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 sunglasses

Add to claude_desktop_config.json

{
  "mcpServers": {
    "sunglasses": {
      "command": "uvx",
      "args": [
        "sunglasses"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "sunglasses": {
      "command": "uvx",
      "args": [
        "sunglasses"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

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

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Agent Roast

    MCP server

    Offline review that flags agent changes which weaken tests, assertions or CI

    Runs locally
    • Open source
    • 4 Hacker News points
    • Developer tools
  3. Midplane

    MCP server

    Postgres gateway for AI agents with table grants, column masking and approval for writes

    Runs locally
    • Open source
    • 5 GitHub stars
    • Databases
  4. Leash

    MCP server

    Review what your AI touched, approve risky actions and undo supported changes

    • 1 tool
    • Remote
    • Free
    • 1 GitHub star
    • Security
  5. SecureCloud

    MCP server

    SentinelOne and IT security catalog, prices, quotes and checkout links for Israel

    • 7 tools
    • Remote
    • Free
    • Security