Secure Agent MCP Gateway
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Secure Agent MCP GatewayAs an operator, triage this alert and summarize the findings."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Secure Agent MCP Gateway
SOC alert triage with an MCP-to-MCP security gateway: the agent never
talks to real tools directly. Every tools/list / tools/call is scoped
and authorized by role (viewer | operator | admin).
main.py (agent) → gateway → mcp_server (tools)More detail: gateway/README.md.
Quick start (local)
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# edit .env — set LLM_API_KEY (never commit .env)Three role services (local)
# 1) Viewer — reputation lookups only
python main.py --mcp --role viewer --alert sample_alert.json
# 2) Operator — triage / summarize / notify (no block or escalate)
python main.py --mcp --role operator --alert sample_alert.json
# 3) Admin — full tool set through the gateway
python main.py --mcp --role admin --alert sample_alert.jsonDeterministic path (no MCP / no gateway):
python main.py --alert sample_alert.jsonPolicy-only check:
python -m gateway.policyRelated MCP server: AgentsGate
Docker deploy
Requires Docker + Compose. Secrets stay outside the image:
cp .env.example .env
# set LLM_API_KEY in .envBuild
docker compose build
# or:
docker build -t secure-agent-mcp-gateway:latest .Three services (one role each)
Same image; different GATEWAY_ROLE. Each container runs the full chain
(main → gateway → mcp_server) for that role.
# 1) Viewer
docker compose run --rm triage-viewer
# 2) Operator
docker compose run --rm triage-operator
# 3) Admin
docker compose run --rm triage-adminOr start by service name:
docker compose up triage-viewer
docker compose up triage-operator
docker compose up triage-adminPass the key without a file:
LLM_API_KEY=sk-... docker compose run --rm triage-adminPlain Docker (no Compose)
docker build -t secure-agent-mcp-gateway:latest .
docker run --rm \
-e LLM_API_KEY \
-e LLM_MODEL=gpt-4o-mini \
-e GATEWAY_ROLE=viewer \
secure-agent-mcp-gateway:latest \
python main.py --mcp --role viewer --alert sample_alert.json
docker run --rm -e LLM_API_KEY -e GATEWAY_ROLE=operator \
secure-agent-mcp-gateway:latest \
python main.py --mcp --role operator --alert sample_alert.json
docker run --rm -e LLM_API_KEY -e GATEWAY_ROLE=admin \
secure-agent-mcp-gateway:latest \
python main.py --mcp --role admin --alert sample_alert.jsonEnvironment
Variable | Purpose |
| Required for agent / findings summary |
| Default |
| Default |
|
|
.env is gitignored. Only .env.example is committed.
Roles (policy)
Role | Can use |
|
|
| reputation, triage, summarize, notify |
| all tools including |
Defined in gateway/policy.yaml.
This server cannot be deployed
Maintenance
Related MCP Connectors
- gatewayOAuthai.sealgate
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Identity, authorization, audit trails, and revocable permissions for AI agents accessing MCP tools.
Runtime permission, approval, and audit layer for AI agent tool execution.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA secure MCP gateway for enterprise AI tool execution, enabling governed invocation of business tools with authentication, RBAC, audit logging, PII redaction, and async processing.Apache 2.0

AgentsGateofficial
AlicenseNot gradedqualityAmaintenanceEnables AI agents to securely call MCP tools with risk scoring, checkpoints, rollback, and approval workflows.17MIT
evav-gatewayofficial
AlicenseNot gradedqualityBmaintenanceGoverned MCP gateway that lets AI agents call tools with policy enforcement, prompt-injection screening, a kill-switch, and tamper-evident signed audit logs.Apache 2.0- AlicenseNot gradedqualityCmaintenanceEnables AI agents to safely call enterprise tools through a governed MCP gateway with permission enforcement, blast-radius controls, input validation, and a full audit trail for every invocation.MIT