agent-security-gateway
Click on "Install 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., "@agent-security-gatewayList pending tool calls awaiting approval"
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.
Agent Security Gateway
MCP‑слой безопасности для AI‑агентов: каждый вызов tool проходит через allow / confirm / deny и пишется в audit.
Cursor / Claude
↓
Agent Security Gateway ← политики + очередь confirm
↓ + UI аппрувов (:8787)
sandbox tools + SQLite auditБыстрый старт
npm install
npm test
npm run demo # демо (UI + allow/deny/confirm)
# или
npm run dev # MCP по stdio + UI для CursorUI аппрувов и аудита: http://127.0.0.1:8787
MCP работает по stdio (логи только в stderr)
Подключение в Cursor
{
"mcpServers": {
"agent-security-gateway": {
"command": "npm",
"args": ["run", "dev", "-w", "@agent-security/gateway"],
"cwd": "/Users/daniildudarev/Downloads/agent-security-gateway"
}
}
}Сценарий confirm
Агент вызывает
write_file→safe/hello.txtОткрываешь UI → Approve
Агент смотрит результат через
get_pending/list_audit
Related MCP server: Oakallow MCP Server
Зачем это нужно
Агенту дают «руки» (tools): файлы, API, БД. Без ограничений он может удалить не то, уйти в цикл или сделать необратимое действие.
Этот gateway стоит между IDE‑агентом и tools:
Решение | Что происходит |
allow | действие выполняется сразу |
deny | блокируется, пишется в audit |
confirm | ждёт человека в UI, потом execute / reject |
По умолчанию — fail‑closed: неизвестный tool запрещён.
Docker
docker compose up --buildПеременные окружения
Переменная | По умолчанию | Назначение |
|
| Файл политик |
|
| Адрес bind ( |
|
| Порт UI |
| вычисляется | URL, который видит агент |
|
| Каталог SQLite |
Политики
Файл policies/default.yaml — первое совпадение побеждает, иначе deny.
Действие | Путь | Решение |
list/read | sandbox | allow |
write/delete |
| deny |
write/delete |
| confirm → UI |
неизвестный tool | — | deny |
Sandbox
sandbox/
safe/notes.txt # безопасный демо‑файл
prod/users.db # «прод» — мутации запрещеныВсе файловые tools работают только внутри sandbox/, выход через .. режется.
Tools
Tool | Назначение |
| статус, пути, URL UI |
| чтение sandbox |
| мутации (под политикой) |
| очередь confirm |
| история решений |
Демо
npm run demoПодробнее: docs/DEMO.md
Агентам нужны руки (tools). Руки без ограждения опасны. Этот MCP‑gateway стоит между IDE‑агентом и tools, решает allow/confirm/deny и для рискованных действий ждёт человека — с полным audit trail.
Agent Security Gateway (English)
MCP security layer for AI agents: every tool call goes through allow / confirm / deny + audit.
Cursor / Claude
↓
Agent Security Gateway ← policy + pending queue
↓ + approve UI (:8787)
sandbox tools + SQLite auditQuick start
npm install
npm test
npm run demo # demo (UI + allow/deny/confirm)
# or
npm run dev # MCP stdio + UI for CursorApprove / Audit UI: http://127.0.0.1:8787
MCP on stdio (logs on stderr)
Connect from Cursor
{
"mcpServers": {
"agent-security-gateway": {
"command": "npm",
"args": ["run", "dev", "-w", "@agent-security/gateway"],
"cwd": "/Users/daniildudarev/Downloads/agent-security-gateway"
}
}
}Confirm flow
Agent:
write_file→safe/hello.txtOpen UI → Approve
Agent:
get_pending/list_audit
Why it exists
Agents get hands (tools): files, APIs, databases. Without guardrails they can delete the wrong thing, loop on expensive calls, or take irreversible actions.
This gateway sits between the IDE agent and tools:
Decision | What happens |
allow | execute immediately |
deny | block + write audit |
confirm | wait for a human in the UI, then execute / reject |
Default is fail-closed: unknown tools are denied.
Docker
docker compose up --buildEnv
Variable | Default | Meaning |
|
| Policy file |
|
| Bind address ( |
|
| Approve UI port |
| derived | URL shown to agents |
|
| SQLite DB directory |
Policy model
policies/default.yaml — first match wins, default fail-closed deny.
Action | Path | Decision |
list/read | sandbox | allow |
write/delete |
| deny |
write/delete |
| confirm → human UI |
unknown tool | — | deny |
Sandbox
sandbox/
safe/notes.txt # harmless demo file
prod/users.db # fake "prod" — mutations deniedAll filesystem tools are rooted at sandbox/ and reject .. escapes.
Tools
Tool | Purpose |
| status, paths, UI URL |
| read sandbox |
| mutations (policy-gated) |
| confirm queue |
| decision history |
Demo
npm run demoDetails: docs/DEMO.md
Agents need hands (tools). Hands without a guardrail are dangerous. This MCP gateway sits between the IDE agent and tools, decides allow/confirm/deny, and for risky actions waits for a human — with a full audit trail.
This server cannot be installed
Maintenance
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
- Alicense-qualityCmaintenanceAn MCP server that acts as a governance proxy for AI agents, evaluating each tool call against policies before execution, enabling secure and controlled access to systems like Slack, GitHub, and AWS without exposing credentials to the agent.Apache 2.0

Oakallow MCP Serverofficial
Alicense-qualityBmaintenanceRuntime permission, approval, and audit governance for AI agent tool execution, enabling human oversight of risky actions via an MCP server.1MIT- Alicense-qualityBmaintenanceA policy-enforcing MCP gateway that intercepts all tool calls to downstream MCP servers, applying allow/deny/ask rules with human approval and audit logging for safe access to dangerous tools.134MIT

evav-gatewayofficial
Alicense-qualityBmaintenanceGoverned 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
Related MCP Connectors
Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.
Runtime permission, approval, and audit layer for AI agent tool execution.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Un1u6ky/agent-security-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server