Command Palette

Search for a command to run...

Весь каталог
MCP-сервер № 40589

Op Injection Scanner

An MCP server for prompt injection boundary enforcement that scans URL content using a tiered LLM model strategy.

Бесплатно
GitHubEmbed

Установка Op Injection Scanner

Сборка из исходников

У сервера нет опубликованного npm/PyPI-пакета — склонируй репозиторий и собери по его README, затем добавь получившуюся команду в свой клиент.

Открыть репозиторий
github.com/ethereum-optimism/op-injection-scanner

Описание

An MCP server for prompt injection boundary enforcement that scans URL content using a tiered LLM model strategy.

README

An MCP server for prompt injection boundary enforcement. AI agents call scan_url(url) instead of fetching URLs directly. The server fetches the URL (with SSRF protection), strips HTML to plain text, and scans the content for prompt injection using a three-tier model escalation strategy (Haiku → Sonnet → Opus). Results are cached by URL and TTL bucket so repeated calls within the cache window incur no additional LLM cost.

Installation

git clone https://github.com/ethereum-optimism/op-injection-scanner
cd op-injection-scanner
bun install

Claude Code MCP config

Add to ~/.claude.json or your project's .claude/settings.json:

{
  "mcpServers": {
    "op-injection-scanner": {
      "command": "bun",
      "args": ["run", "/absolute/path/to/op-injection-scanner/src/server.ts"]
    }
  }
}

The server requires ANTHROPIC_API_KEY in the environment.

Usage

Agents call scan_url with a URL instead of fetching it directly:

scan_url({ url: "https://some-external-docs.example.com/page" })

Clean response — status 200, tool returns:

{
  "status": "clean",
  "content": "The stripped page text...",
  "url": "https://some-external-docs.example.com/page",
  "scanned_at": "2026-03-08T12:00:00.000Z",
  "model_used": "claude-haiku-4-5",
  "escalated": false
}

Blocked response — tool returns isError: true so the calling agent receives a tool error:

{
  "status": "blocked",
  "reason": "Content contains instructions attempting to override agent behaviour",
  "url": "https://malicious.example.com/page",
  "scanned_at": "2026-03-08T12:00:00.000Z",
  "model_used": "claude-haiku-4-5",
  "escalated": false
}

When the tool returns isError: true, the calling agent should not process the URL further.

Environment variables

Variable Default Purpose
ANTHROPIC_API_KEY (required) Anthropic API key — read automatically by the SDK
CACHE_MAX_ENTRIES 500 Maximum number of cached scan results
CACHE_TTL_SECONDS 3600 Cache entry lifetime in seconds (1 hour)
CONFIDENCE_THRESHOLD 0.8 Minimum confidence for a verdict — below this, escalate to next tier
FETCH_TIMEOUT_MS 10000 HTTP request timeout in milliseconds
MAX_RESPONSE_BYTES 2097152 Maximum response body size (2 MB)
MAX_REDIRECTS 5 Maximum number of HTTP redirects to follow
MAX_URL_LENGTH 2048 Maximum URL length in characters

Design decisions

Why MCP, not a hook

A Claude Code hook fires automatically on every tool call, but it cannot be selectively invoked or tested in isolation. An MCP server is explicit — agents opt in to scanning, the interface is testable, and it can be extended (new tools, new scan types) without touching hook infrastructure.

v1 scope

This version detects prompt injection only. Malicious intent detection (e.g. phishing, credential harvesting) is a future iteration. The clean verdict means "no injection attempt detected" — not "content is safe in all respects."

Tiered model strategy

  • Haiku — fast, cheap, handles the majority of clear-cut cases
  • Sonnet — escalated when Haiku returns uncertain or confidence < 0.8
  • Opus — final arbiter, called only when Sonnet also cannot reach a confident verdict; schema enforces a definitive clean or blocked verdict (no uncertain allowed); parse failure defaults to blocked

No auth or rate limiting

This is internal dev tooling. Network isolation is the access control. Auth and per-session rate limiting are noted as future work in the source.

DNS rebinding (known v1 limitation)

The SSRF guard resolves DNS once before the request and checks all returned IPs. A sophisticated attacker controlling a low-TTL DNS record could return a public IP on the initial check and re-resolve to a private IP at TCP connection time, bypassing the guard. Full mitigation requires a custom DNS-pinning HTTP client. This is acceptable for internal tooling but must be addressed before any public or shared deployment.

from github.com/ethereum-optimism/op-injection-scanner

FAQ

Op Injection Scanner MCP бесплатный?

Да, Op Injection Scanner MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Op Injection Scanner?

Нет, Op Injection Scanner работает без API-ключей и переменных окружения.

Op Injection Scanner — hosted или self-hosted?

Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.

Как установить Op Injection Scanner в Claude Desktop, Claude Code или Cursor?

Открой Op Injection Scanner на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

№ 51449

Opencode Omniroute Plugin

GitHub ActionsGitHub Actions100

OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc

omnirouteopencodeopencode-plugin
Установить
№ 86305

Roblox Studio

paralovparalov

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

Установить
№ 18019

Antigravity Drawio

S-SUJAN-SS-SUJAN-S

MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.

Установить
№ 65027

Fetch

Community

Web content fetching and conversion for efficient LLM usage.

fetchreferenceservers
ПровереноУстановить
№ 42339

Mcp

mcpflow.iomcpflow.io

ModelContextProtocol server for enhancing JSON Resumes

mcpllmmcpflow
Установить
№ 39599

Vault

agbergsmannagbergsmann

Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write

mcpmcp-serverbitwarden
Установить
№ 98017

AWS KB Retrieval

modelcontextprotocolmodelcontextprotocol

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

awsretrievalarchived
ПровереноУстановить
№ 04328

Spring AI MCP Server

Community

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

springmcpserver
ПровереноУстановить
№ 06196

llm-analysis-assistant

xuzexin-hzxuzexin-hz

A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also

llmanalysisassistant
ПровереноУстановить
№ 50527

MCP-Agent

lastmile-ailastmile-ai

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

mcpagentfor
ПровереноУстановить

Сравнить Op Injection Scanner с

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai