# Shrike

> Shrike is a freemium MCP server for security. Policy checkpoint that scans agent tool calls, SQL and commands before they run. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API
- **Repository:** https://github.com/shrike-security/shrike-mcp
- **MCP Registry name:** io.github.Shrike-Security/shrike-mcp
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

Shrike sits in the path of an agent's actions. Before a SQL query, file write, shell command, web search or agent-to-agent message goes out, the agent hands it to a scan tool and gets back a verdict: allowed, flagged for human approval, or blocked.

The README describes a scan-sandwich pattern: inbound scans catch prompt injection, outbound scans catch leaked keys or PII, and action-specific scans catch things like SQL tautologies, path traversal and reverse shells. A nine-layer pipeline sits underneath, from regex and encoding-bypass checks to LLM semantic analysis and multi-turn session correlation. Most scans are said to finish in under 10 ms because the cascade exits early.

It runs through npx and works with no key, but anonymous use only gets the pattern-based layers L1 to L5. A free account adds a dashboard and higher limits, while the deeper layers L6 to L9 require a paid tier. The README is explicit that the package is npm only and that a PyPI package of the same name is unrelated.

## Features

- **Fifteen governance tools:** Nine scanners, a scope declaration, an outcome report and session and approval tools.
- **Allow, flag or block:** Each scan returns a verdict, and flagged actions can wait for human approval.
- **Tool-poisoning checks:** scan_mcp_schema inspects other MCP tool definitions for hidden instructions.
- **Agent-to-agent scanning:** Messages and AgentCards are scanned before an agent trusts them.
- **Tiered detection depth:** Anonymous and free tiers get L1 to L5, paid tiers add LLM analysis and session correlation.

## Good for

- Block a coding agent from running a destructive shell command
- Check generated SQL for injection before it hits a database
- Scan prompts and responses for leaked secrets or PII
- Vet an unfamiliar MCP server's tool descriptions
- Hold risky agent actions for human approval

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add shrike-mcp -- npx -y shrike-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add shrike-mcp -- npx -y shrike-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.shrike-mcp]
command = "npx"
args = ["-y", "shrike-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user shrike-mcp npx -- -y shrike-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "shrike-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shrike-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 15 tools changes data; 10 names don't say. From the server's own tool labels and tool names; not verified by us.

- `scan_prompt`: Scans user and system prompts before LLM processing.
- `scan_response`: Scans model outputs before they reach the user.
- `scan_sql_query` (name suggests: reads): Checks SQL queries before database execution.
- `scan_file_write` (name suggests: changes): Checks file paths and content before a write.
- `scan_command`: Checks CLI commands before shell execution.
- `scan_web_search` (name suggests: reads): Checks search queries before they run.
- `scan_a2a_message`: Scans agent-to-agent messages before processing.
- `scan_agent_card`: Scans A2A AgentCard metadata before it is trusted.
- `scan_mcp_schema`: Checks MCP tool definitions for tool poisoning.
- `check_approval` (name suggests: reads): Polls and submits decisions for flagged actions.
- `report_bypass`: Reports detections the scanner missed.
- `reset_session`: Clears session correlation state.
- `session_status` (name suggests: reads): Reads the current session risk state.
- `scan_declare_scope`: Declares allowed and forbidden tools and an expiry for a task-scoped agent.
- `report_outcome`: Reports whether an allowed action ran, failed or was skipped.

## FAQ

### Do I need an API key?

No. It works anonymously with pattern-based detection, and a free key adds a dashboard and higher limits.

### How is Shrike installed?

Run it with npx -y shrike-mcp; the README stresses there is no pip package under that name.

### What do the tiers limit?

Community allows 1,000 scans a month, Pro 25,000 and Enterprise 1,000,000, per the README table.

### Which clients does Shrike target?

The README lists Claude Desktop, Cursor, Windsurf and Cline.

### Is Shrike open source?

The README carries an Apache 2.0 licence badge.

### Is Shrike free?

Shrike has a free plan, with paid plans for more usage or features.

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

Run this command in your terminal: claude mcp add shrike-mcp -- npx -y shrike-mcp

### What are the best alternatives to Shrike?

The closest alternatives to Shrike are REA, AiSOC, x64dbg-mcp-server, redamon and Treasure Map.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [Treasure Map](https://ai-powered.com/mcp/treasure-map): Treasure Map is an open-source MCP server for security.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.
- [Runeward](https://ai-powered.com/mcp/runeward): Runeward is an open-source MCP server for developer tools.

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