MCP Secure Agents
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., "@MCP Secure AgentsCheck vulnerabilities of package freerdp3"
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.
MCP Secure Agents
Практический репозиторий про безопасных AI-агентов: минимальные права, allowlist, валидация, Human-in-the-Loop и sandbox.
Цель: показать, что модель может ошибаться — но система не обязана позволять ей выполнить опасное действие.
Что здесь есть
защищённый MCP-agent для анализа уязвимостей;
read-only доступ к данным;
allowlist разрешённых инструментов;
блокировка WRITE / DELETE / shell-команд;
валидация входных параметров;
Human-in-the-Loop для чувствительных действий;
журналирование решений и блокировок;
простой policy engine, который легко расширять.
Related MCP server: mcp-audit-server
Главная идея
USER → AGENT → POLICY → TOOL → RESULT
↓
BLOCKАгент может решить, что ему нужен инструмент. Но перед выполнением запрос проходит через политику безопасности.
Демо-сценарий
Пользователь просит:
Проверь уязвимости пакета freerdp3Агенту разрешено:
READ package info
READ CVE database
CALL allowed APIЕсли агент попробует сделать:
UPDATE vulnerabilities SET status='fixed';он получит:
BLOCKED
reason: write_database is not allowedЭто и есть главный security boundary: не просьба в system prompt, а технически enforced policy.
Быстрый старт
Требования
Python 3.10+
uvилиpip
Установка
git clone https://github.com/TopskiyPavelQwertyGang/mcp-secure-agents.git
cd mcp-secure-agents
uv syncИли:
python -m venv .venv
source .venv/bin/activate
pip install "mcp[cli]" pydanticЗапуск демо policy engine
uv run python demo.pyЗапуск MCP server
uv run mcp dev server.pyСтруктура
.
├── README.md
├── QUICKSTART.md
├── demo.py
├── server.py
├── policy.py
├── validators.py
├── audit.py
├── pyproject.toml
├── policies/
│ └── agent-policy.yaml
├── examples/
│ ├── allowed.json
│ └── blocked.json
└── docs/
├── threat-model.md
└── controls.mdSecurity controls
1. Allowlist
Только явно разрешённые инструменты доступны агенту.
2. Permissions
Каждый инструмент получает минимально необходимые права.
3. Validation
Параметры tool-call проходят проверку до выполнения.
4. HITL
Чувствительные операции требуют подтверждения человека.
5. Sandbox
Опасные действия должны выполняться в изолированной среде.
Что попробовать руками
Запустите
demo.py.Посмотрите разрешённые действия.
Попробуйте
write_database— получите блокировку.Измените
policies/agent-policy.yaml.Повторите запуск и посмотрите, как меняется поведение агента.
Learning path
mcp-protocol-guide — понять MCP.
mcp-secure-agents — научиться безопасно давать агентам инструменты.
mcp-use-cases — перейти к рабочим сценариям.
Важно
Этот проект — учебный security lab. Не используйте demo-policy как готовую production-защиту без адаптации под вашу инфраструктуру, модель угроз, IAM и процессы аудита.
Prompt ≠ Security Boundary
Безопасность должна обеспечиваться не обещанием модели, а архитектурой системы.
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-qualityDmaintenanceA security-hardened MCP server that enables AI models to safely interact with Obsidian vaults through sandboxed file operations and todo tracking. It implements strict validation layers and resource limits to protect the local filesystem from potentially hostile tool calls.MIT
- Alicense-qualityDmaintenanceThis MCP server enables security auditing for MCP configurations and AI agents, including prompt injection testing, data flow tracing, and security policy generation.106MIT
- AlicenseAqualityAmaintenanceSecurity-hardened MCP server that runs only allowlisted commands with no shell, jailed to a single directory, and bounded execution.2MIT
- Alicense-qualityBmaintenanceA safety-constrained MCP server that exposes selected Kali Linux and Nmap capabilities within an authorized lab network, enforcing strict scope limitations and audit logging.MIT
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Static MCP manifest and tool-policy security preflight with signed input-redacted receipts
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/TopskiyPavelQwertyGang/mcp-secure-agents'
If you have feedback or need assistance with the MCP directory API, please join our Discord server