mcp-supply-guard
🧬 mcp-supply-guard
Целостность цепочки поставок определений инструментов MCP. Данные по безопасности за 2026 год: 43% серверов MCP имеют уязвимости внедрения команд, а определения инструментов могут изменяться после утверждения — вектор обмана. Эта библиотека фиксирует базовый уровень хешей содержимого определений инструментов после проверки, а затем проверяет последующие загрузки: отмечает добавленные / удаленные / измененные инструменты, а также выполняет сканирование рисков для сигналов опасности выполнения команд.
Ноль зависимостей. Чистая стандартная библиотека Python.
Быстрый старт
pip install mcp-supply-guardRelated MCP server: mcp-sentinel
Использование
from mcp_supply_guard import load_tools, fingerprint, verify, scan_risk
baseline = [fingerprint(t) for t in load_tools("approved.json")] # lock after review
report = verify(load_tools("current.json"), baseline)
print(report.clean) # False if any tool added/modified
for f in report.findings:
print(f.kind, f.tool, f.message)
risks = scan_risk(load_tools("current.json"))CLI
mcp-supply-guard lock approved.json baseline.json
mcp-supply-guard verify current.json baseline.json --json # CI exit 1 on added/modified
mcp-supply-guard risk current.json --jsontools.json
{"tools": [{"name": "search", "description": "Search the index",
"inputSchema": {"type": "object", "properties": {"q": {"type": "string"}}}}]}Результаты
Тип | Серьезность | Значение |
| error | инструмент добавлен после фиксации базового уровня |
| error | хеш определения изменился (вектор обмана) |
| warning | базовый инструмент теперь отсутствует |
| error/warning | сигналы опасности выполнения команд в описании/схеме |
Лицензия
MIT © wwb-bill
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
The MCP server that vets MCP servers: identity, risk grade and per-tool risk before you install.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Audit, pin and diff agent tool lists; preflight and watch remote MCP servers. Free tier; x402.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables users to define and run MCP tools using declarative YAML configs with built-in trust enforcement, credential brokering, and tamper-evident audit logging.14MIT
- AlicenseNot gradedqualityDmaintenanceA continuous, out-of-band trust and reliability layer for the MCP ecosystem. It fingerprints MCP server tool definitions, detects and classifies drift (e.g., rug pulls) via a severity taxonomy, maintains a hash-chained evidence ledger, and gates CI with SARIF—while also acting as an MCP server itself so agents can check a server's safety before binding.Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables secure MCP tool execution through a gateway that validates tool metadata, permissions, and integrity, with approval workflows and optional onchain registry verification.-
- AlicenseNot gradedqualityCmaintenanceEnables auditing an MCP server's declared capabilities, sealing them into a commit-able lock file, and verifying later versions for changes or escalated risk, without invoking any tools and with minimal environment exposure.1MIT