Skip to main content
Glama
Shubhbhangoo

agent-firewall

by Shubhbhangoo

Agent Firewall

Уровень безопасности на основе политик для ИИ-агентов и MCP-инструментов.

Agent Firewall располагается между ИИ-агентом и инструментами, к которым он может получить доступ. Каждый запрос к инструменту оценивается на соответствие политикам безопасности, прежде чем ему будет разрешено выполниться.

Что он делает

  • Разрешает доверенные действия инструментов

  • Запрещает опасные действия

  • Требует одобрения человека для чувствительных действий

  • Проверяет аргументы инструментов

  • Остаётся закрытым при отсутствии совпадающей политики

  • Разрешает конфликты политик, применяя самое строгое ограничение

  • Журналирует решения по безопасности

  • Защищает реальные вызовы MCP-инструментов

Related MCP server: NORNR MCP Control

Архитектура

AI Agent
   |
   v
MCP Client
   |
   v
Agent Firewall
   |
   +-- ALLOW ------+
   |               |
   +-- DENY        |
   |               v
   +-- APPROVAL -> MCP Server
                       |
                       v
                    External Tool

The firewall evaluates a request before the MCP tool is called.

Example Policy

Policies are defined in policies.yaml.

rules:
  - tool: github.get_file_contents
    action: allow


  - tool: github.delete_file
    action: deny


  - tool: payments.send
    amount_gt: 100
    action: approval


  - tool: payments.send
    amount_gte: 1000
    action: deny

The firewall uses the strongest applicable restriction:

allow < approval < deny
Security Behavior

The firewall fails closed when no matching policy exists.

Invalid payment values are rejected, including:

Negative values
Zero
Strings
Missing amounts
NaN
Infinity
Booleans
Lists
Dictionaries
MCP Integration

Agent Firewall has been tested against a real GitHub MCP server.

Tested behavior:

github.get_file_contents
        |
        +--> ALLOW
        |
        v
GitHub MCP Server
        |
        v
README.md

A protected operation is blocked before the MCP server receives the request:

github.delete_file
        |
        v
Agent Firewall
        |
        +--> DENY
        |
        X
MCP tool is never called
Installation

Clone the repository and create a virtual environment:

python -m venv .venv

Activate it on Windows:

.venv\Scripts\Activate.ps1

Install dependencies:

pip install -r requirements.txt
Running Tests

Run the complete test suite:

pytest

The current test suite includes unit, policy, security, and real MCP integration tests.

Project Structure
agent-firewall/
├── firewall/
│   └── engine.py
├── tests/
│   └── test_engine.py
├── policies.yaml
├── mcp_firewall.py
├── mcp_test_client.py
├── test_attacks.py
├── test_firewall.py
├── test_github_mcp.py
├── test_policy_attacks.py
├── test_policy_conflicts.py
├── requirements.txt
└── README.md
Status

This is an early v0.1 prototype.

The project is currently focused on policy enforcement, MCP integration, security testing, and establishing a reliable authorization layer for AI agents.

Security

This project is experimental software. Do not use it as the sole security control for production systems without independently reviewing and testing the implementation.

License

License to be added.



Then save it and run:


```powershell
pytest

If 16 passed, commit it:

git add README.md
git commit -m "Improve project documentation"
git push
F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    A transparent proxy and execution firewall that intercepts and audits AI agent tool calls against configurable security policies before forwarding them to downstream MCP servers. It provides safe execution environments with features like data redaction, anti-loop protection, and unified alert dispatching.
  • A
    license
    Not graded
    quality
    D
    maintenance
    A governance and control layer for MCP tools that manages tool requests as intents through policy-based approval, queuing, or blocking. It enables secure human oversight and audit trails for consequential agent actions across platforms like Claude Desktop and Cursor.
    1
    MIT No Attribution
  • A
    license
    Not graded
    quality
    A
    maintenance
    A zero-trust security gateway for MCP tool calls, inspecting tool identity, arguments, execution decisions, and returned content before risk reaches your coding agent.
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP server that provides a security gateway for AI agents, enforcing allow/confirm/deny policies on tool calls and requiring human approval for risky operations, with full audit logging.

View all related MCP servers

Related MCP Connectors

  • Runtime permission, approval, and audit layer for AI agent tool execution.

  • Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.

  • See, price, and control every tool call your AI agents make: policy checks, cost, and audit tools.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Shubhbhangoo/agent-firewall'

If you have feedback or need assistance with the MCP directory API, please join our Discord server