Secure Agent MCP Gateway
Secure Agent MCP Gateway
SOCアラートのトリアージを、MCP-to-MCPのセキュリティゲートウェイを介して行います。エージェントは実際のツールに直接アクセスすることはありません。すべてのtools/list / tools/callは、ロール(viewer | operator | admin)に基づいてスコープが制限され、認可されます。
main.py (agent) → gateway → mcp_server (tools)クイックスタート(ローカル)
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)3つのロールサービス(ローカル)
# 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.json決定的パス(MCP / ゲートウェイなし):
python main.py --alert sample_alert.jsonポリシーのみのチェック:
python -m gateway.policyRelated MCP server: production-mcp-server
Dockerデプロイ
Docker + Composeが必要です。シークレットはイメージの外部に保持されます:
cp .env.example .env
# set LLM_API_KEY in .envビルド
docker compose build
# or:
docker build -t secure-agent-mcp-gateway:latest .3つのサービス(各ロール1つ)
同じイメージ。異なるGATEWAY_ROLEを使用します。各コンテナは、そのロールの完全なチェーン(main → gateway → mcp_server)を実行します。
# 1) Viewer
docker compose run --rm triage-viewer
# 2) Operator
docker compose run --rm triage-operator
# 3) Admin
docker compose run --rm triage-adminまたはサービス名で起動:
docker compose up triage-viewer
docker compose up triage-operator
docker compose up triage-adminファイルなしでキーを渡す:
LLM_API_KEY=sk-... docker compose run --rm triage-adminプレーンDocker(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.json環境
変数 | 目的 |
| エージェント / ファインディング要約に必須 |
| デフォルトは |
| デフォルトは |
|
|
.envはgitignoreされています。コミットされるのは.env.exampleのみです。
ロール(ポリシー)
ロール | 使用可能なツール |
|
|
| レピュテーション、トリアージ、要約、通知 |
|
|
gateway/policy.yamlで定義されています。
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
MCP gateway: one connection for your AI apps, with tool policies, PII redaction and audit logs.
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
- 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
- AlicenseAqualityCmaintenanceProvides a security governance layer for AI agents to safely access upstream MCP servers, enforcing tool-level RBAC, parameter constraints, authentication via static tokens or OIDC, and tamper-evident audit logging.21Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables governed MCP agent tool invocation with policy-based authorization, short-lived credentials, and audited access control.11 npmMIT