Skip to main content
Glama
aki83reo

Secure Agent MCP Gateway

by aki83reo

Secure Agent MCP Gateway

SOCアラートのトリアージを、MCP-to-MCPのセキュリティゲートウェイを介して行います。エージェントは実際のツールに直接アクセスすることはありません。すべてのtools/list / tools/callは、ロール(viewer | operator | admin)に基づいてスコープが制限され、認可されます。

main.py (agent)  →  gateway  →  mcp_server (tools)

詳細: gateway/README.md

クイックスタート(ローカル)

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.policy

Related MCP server: Nervora

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を使用します。各コンテナは、そのロールの完全なチェーン(maingatewaymcp_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

環境

変数

目的

LLM_API_KEY

エージェント / ファインディング要約に必須

LLM_MODEL

デフォルトはgpt-4o-mini

LLM_PROVIDER

デフォルトはopenai

GATEWAY_ROLE

viewer | operator | admin

.envはgitignoreされています。コミットされるのは.env.exampleのみです。

ロール(ポリシー)

ロール

使用可能なツール

viewer

check_ip_reputation

operator

レピュテーション、トリアージ、要約、通知

admin

block_ip + escalate_alertを含むすべてのツール

gateway/policy.yamlで定義されています。

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (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

  • A
    license
    Not graded
    quality
    C
    maintenance
    A 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
  • 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
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI agents to securely call MCP tools with risk scoring, checkpoints, rollback, and approval workflows.
    134
    MIT

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.

  • Remote MCP for A2A caller identity, scope policy, verdict receipts, and audit history.

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/aki83reo/secure-agent-mcp-gateway'

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