RM

ressl/mcp-firewall

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

21 stars 9 forks 품질 79 트렌드 8AGPL-3.0

AI Agent의 오픈 소스 보안 게이트웨이. 정책 시행, 위협 탐지 및 MCP 및 AI 에이전트 프레임 워크에 대한 준수 보시 감사 로깅. ₢ 킹

개요

mcp-firewall는 MCP 클라이언트와 서버 사이에서, 기업 급료 정책 시행, 순간 위협 탐지 및 수락 읽힌 감사 로깅을 가진 각 공구 호출을 방해합니다. AI Agent는 이제 도구를 실행할 수 있습니다 - 파일, 명령 실행, 쿼리 데이터베이스, HTTP 요청을합니다. 난간 없이, 단 하나 신속한 주입은 당신의 자격 증명을 exfiltrate 할 수 있고, arbitrary 부호를 실행하고, 특권 신장을 위한 사슬 공구. 검토 된 통합은 v0.2.0a1 GitHub prerelease로 제공됩니다. 릴리스 지침에 설명 된대로 휠을 다운로드하고 검증하십시오. 이 사전 릴리스는 PyPI에 게시되지 않습니다. 변화와 실험 회복 한계에 대한 변경을 참조하십시오. 모든 도구 호출은 7 inbound 보안 단계 (선택적 인 승인 플러스) 및 2 아웃 바운드 스캐너를 통과합니다. (요구 검열): 1. 킬 스위치 - 비상사태 deny-all 2. 비율 Limiter — Per-agent, per-tool, 세계적인 3. 주입 발견자 — 본 근거한, 감도 구성 (낮은/중/높은) 4.

개요(AI 번역)

**AI 에이전트를위한 오픈 소스 보안 게이트웨이. **

mcp-firewall는 MCP 클라이언트와 서버 사이에서, 기업 급료 정책 시행, 순간 위협 탐지 및 수락 읽힌 감사 로깅을 가진 각 공구 호출을 방해합니다.

왜

AI Agent는 이제 도구를 실행할 수 있습니다 - 파일, 명령 실행, 쿼리 데이터베이스, HTTP 요청을합니다. 난간 없이, 단 하나 신속한 주입은 당신의 자격 증명을 exfiltrate 할 수 있고, arbitrary 부호를 실행하고, 특권 신장을 위한 사슬 공구.

mcp-firewall는 AI 대리인을 위한 WAF입니다.

빠른 시작

검토 된 통합은 v0.2.0a1 GitHub prerelease로 제공됩니다. 릴리스 지침에 설명 된대로 휠을 다운로드하고 검증하십시오. 이 사전 릴리스는 PyPI에 게시되지 않습니다. 변화와 실험 회복 한계에 대한 변경을 참조하십시오.

특징

# # # # 방사형 파이프 라인

모든 도구 호출은 7 inbound 보안 단계 (선택적 인 승인 플러스) 및 2 아웃 바운드 스캐너를 통과합니다.

**인바운드 ** (request screening):

  1. 킬 스위치 - 비상 사태
  2. Rate Limiter — Per-agent, per-tool, 글로벌
  3. 사출 검출기 - 패턴 기반, 감도 설정 가능 (낮 / 중간 / 높은)
  4. 명세.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

🛡️ mcp-firewall

The open-source security gateway for AI agents.

mcp-firewall sits between your MCP client and server, intercepting every tool call with enterprise-grade policy enforcement, real-time threat detection, and compliance-ready audit logging.

AI Agent ←→ mcp-firewall ←→ MCP Server
               ↕
         Policy Engine
         Audit Trail
         Threat Feed

Why

AI agents can now execute tools — read files, run commands, query databases, make HTTP requests. Without guardrails, a single prompt injection can exfiltrate your credentials, execute arbitrary code, and chain tools for privilege escalation.

mcp-firewall is the WAF for AI agents.

Quick Start

The reviewed integration is available as the v0.2.0a1 GitHub prerelease. Download and verify its wheel as described in release instructions; this prerelease is not published to PyPI. See the changelog for changes and experimental recovery limits.

pip install mcp-firewall

# Wrap any MCP server with zero config
mcp-firewall wrap -- npx @modelcontextprotocol/server-filesystem /tmp

# Generate a starter policy
mcp-firewall init

Features

🔒 Defense-in-Depth Pipeline

Every tool call passes through 7 inbound security stages (plus optional human approval) and 2 outbound scanners:

Inbound (request screening):

  1. Kill Switch — Emergency deny-all
  2. Rate Limiter — Per-agent, per-tool, global
  3. Injection Detector — Pattern-based, sensitivity configurable (low/medium/high)
  4. Egress Control — Block SSRF, private IPs, cloud metadata
  5. Threat Feed — Known attack patterns (built-in community rules)
  6. Policy Engine — YAML policies + per-agent RBAC
  7. Chain Detector — Dangerous tool sequences

When a rule requires approval, an interactive prompt asks the user; non-interactive sessions fail closed (deny).

Outbound (response scanning):

  1. Secret Scanner — API keys, tokens, private keys
  2. PII Detector — Email, phone, SSN, IBAN, credit cards

📋 Policy-as-Code

Simple YAML for common rules:

agents:
  claude-desktop:
    allow: [read_file, search]
    deny: [exec, shell, rm]
    rate_limit: 100/min

rules:
  - name: block-credentials
    match: { arguments: { path: "**/.ssh/**" } }
    action: deny

See Policy Reference for the full rule schema.

📊 Real-Time Dashboard

mcp-firewall wrap --dashboard -- python my_server.py
# → Dashboard at http://localhost:9090

Live event feed and statistics.

🔏 Signed Audit Trail

Enable audit.sign: true to sign every event with Ed25519 in addition to the hash chain. Export to SIEM (CEF/LEEF), Syslog, CSV, or JSON.

mcp-firewall audit    # Verify chain integrity
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "filesystem": { "command": "mcp-firewall", "args": ["wrap", "--", "npx", "@modelcontextprotocol/server-filesystem", "/home"] } } }