# scamgate

> scamgate is an open-source MCP server for security. Offline allow, ask or deny check for links and payments an AI agent is about to act on. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Website:** https://odaiameera.github.io/scamgate/
- **Repository:** https://github.com/odaiameera/scamgate
- **MCP Registry name:** io.github.odaiameera/scamgate
- **Categories:** security
- **Listing updated:** 2026-11-15

## About

Scamgate scores a link or a payment with deterministic rules and returns allow (under 25 points), ask (25 to 69) or deny (70 or more), with a plain-English reason for each rule that fired. There is no language model in the loop and no network call during a check, so the same input always gets the same verdict. Link rules cover known-bad feeds, brand look-alikes and homoglyphs, addresses hidden before an @, raw IP hosts, punycode and pages asking for a seed phrase. Payment rules look at new payees plus urgency, changed bank details and irreversible methods such as crypto or gift cards.

Its distinctive claim is enforcement. Over MCP the agent chooses whether to ask, and an injected prompt could tell it not to, so a hook for Claude Code and Hermes runs the check in the harness before every gated tool call and blocks on deny. The hook fails closed if it crashes and blocks edits to its own files. Payee history is stored locally as salted hashes.

The README says it is advisory and can miss scams. Python 3.11 or newer is required, feeds are downloaded on request, and automatic refresh is off by default.

## Features

- **Deterministic scoring:** Rules add points and the total maps to allow, ask or deny.
- **Link checks:** Detects look-alike brands, hidden hosts, raw IPs and credential prompts.
- **Payment checks:** Flags new payees, changed bank details and irreversible methods.
- **Enforcing hook:** Runs in the harness so the agent cannot skip the check.
- **Fails closed:** A crash or malformed input blocks the call.
- **Local payee history:** Remembers who you have paid, stored as salted hashes.

## Good for

- Stop an agent opening a typosquatted login page
- Gate payments to a payee that changed bank details
- Add a safety hook to Claude Code or Hermes
- Review why a link scored deny

## Install

### Claude Code (Terminal)

```sh
claude mcp add scamgate --env SCAMGATE_URLHAUS_AUTH_KEY='<SCAMGATE_URLHAUS_AUTH_KEY>' -- uvx scamgate
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "scamgate": {
      "command": "uvx",
      "args": [
        "scamgate"
      ],
      "env": {
        "SCAMGATE_URLHAUS_AUTH_KEY": "<SCAMGATE_URLHAUS_AUTH_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "scamgate": {
      "command": "uvx",
      "args": [
        "scamgate"
      ],
      "env": {
        "SCAMGATE_URLHAUS_AUTH_KEY": "<SCAMGATE_URLHAUS_AUTH_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "scamgate": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "scamgate"
      ],
      "env": {
        "SCAMGATE_URLHAUS_AUTH_KEY": "<SCAMGATE_URLHAUS_AUTH_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "scamgate": {
      "command": "uvx",
      "args": [
        "scamgate"
      ],
      "env": {
        "SCAMGATE_URLHAUS_AUTH_KEY": "<SCAMGATE_URLHAUS_AUTH_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "scamgate": {
      "command": "uvx",
      "args": [
        "scamgate"
      ],
      "env": {
        "SCAMGATE_URLHAUS_AUTH_KEY": "<SCAMGATE_URLHAUS_AUTH_KEY>"
      }
    }
  }
}
```

## Tools

- `check_url`: Scores a link and returns allow, ask or deny with reasons.
- `check_payment`: Scores a payment and returns allow, ask or deny with reasons.

## FAQ

### Does it call the network when checking?

No. The site says there are no network calls while checking, and no LLM judging.

### What are the score thresholds?

Under 25 allow, 25 to 69 ask, 70 or more deny.

### Is it reliable?

The README calls it advisory: it can miss scams and flag legitimate actions.

### How is it licensed?

Open source under the MIT licence and self-hosted.

### What does it need?

Python 3.11 or newer; install from PyPI or a clone.

### Is scamgate free?

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

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

Run this command in your terminal: claude mcp add scamgate --env SCAMGATE_URLHAUS_AUTH_KEY='<SCAMGATE_URLHAUS_AUTH_KEY>' -- uvx scamgate

### What are the best alternatives to scamgate?

The closest alternatives to scamgate are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

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