sentinel-mcp
Acts as the embedded fallback graph-memory backend for the memory_upsert, memory_add_edge, and memory_query tools when FalkorDB is unreachable, storing nodes/edges and reporting which backend served each operation so memory queries keep working offline.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
# sentinel-mcp
Registry-ready MCP server for governed agents: deterministic claim verification, a fail-closed policy gate, a Merkle-chained WORM audit ledger, and graph memory that degrades gracefully — installable with one command.
Architecture
flowchart LR
C["MCP Client\n(Claude Desktop · Cursor · OpenCode)"] -->|stdio / streamable-http| S["sentinel-mcp server\n(mcp 1.x FastMCP or 2.x MCPServer)"]
S --> V["verify_claim\nDeterministic source tiering\n(Tier 1-5, zero network)"]
S --> P["policy_check\nDeclarative allow/deny gate\n(fail-closed, schema bounds)"]
S --> W["audit_append / audit_verify\nWORM JSONL ledger\nSHA-256 Merkle chain"]
S --> M["memory_upsert / memory_add_edge / memory_query\nFalkorDB → SQLite fallback"]
W -.chain hash.-> WRelated MCP server: Living Stack MCP — Retired Beta Listing
Measured conformance & throughput (this build)
Check | Result |
Conformance self-test | 12/12 PASS ( |
| p50 0.013 ms · p95 0.014 ms · p99 0.018 ms (budget: p95 < 5 ms) |
| p50 0.005 ms · p95 0.005 ms · p99 0.006 ms |
Tamper detection (single + multi-block, deletion, append-after-tamper) | 100% caught, first bad sequence pin-pointed |
Tests | 76/76 pytest · mypy |
Reproduce: pip install -e ".[dev]" && pytest && sentinel-mcp conformance.
Quickstart (3 commands)
pip install -e ".[dev]" # or: pip install sentinel-mcp
sentinel-mcp conformance # self-test: 12 checks incl. tamper + latency
sentinel-mcp serve # stdio MCP serverClient setup
Claude Desktop (claude_desktop_config.json):
{"mcpServers": {"sentinel-mcp": {"command": "sentinel-mcp", "args": ["serve", "--transport", "stdio"]}}}Cursor / OpenCode / any streamable-HTTP client:
sentinel-mcp serve --transport http --port 8000Full example configs: examples/claude_desktop.json. Registry manifest: server.json.
Tool reference
Tool | Input | Output | Guarantees |
|
|
| Deterministic rules; zero network, zero API keys; typosquat lookalikes forced to Tier 5 |
|
|
| Declarative allowlist + argument bounds; prototype-pollution keys denied; payload-size cap; fail-closed |
|
|
| Append-only JSONL; |
| — |
| Full chain replay; pin-points the first mutated block |
|
|
| Idempotent; backend observable |
|
|
| Relation names validated ( |
|
|
| FalkorDB when reachable, embedded SQLite otherwise |
Dual-generation MCP SDK support
sentinel-mcp detects the installed mcp SDK and serves through the matching
API: 2.x MCPServer (add_tool + run_stdio_async/run_streamable_http_async)
or 1.x FastMCP (add_tool + run(transport=...)). Tool logic is pure
Python and identical across generations; conformance verifies the wiring.
Security posture
Fail-closed everywhere: unknown tools, out-of-bounds arguments, and infrastructure errors are denied (
POL_*/NATIVE_DRIVER_ERROR-style reason codes).Tamper-evident audit: 100% of single-block mutations, multi-block mutations, deletions, and append-after-tamper scenarios are detected in tests.
No secrets: no API keys, no network calls in tool logic; the SQLite fallback means the server always boots.
Supply chain: two runtime dependencies (
mcp,pydantic) plus CLI conveniences; OIDC-only PyPI publishing.
Development
ruff check . && ruff format --check . # lint + format
mypy --strict src tests # full strict typing
pytest # 76 tests
sentinel-mcp conformance # 12-check self-testSee CONTRIBUTING.md and SECURITY.md.
Ecosystem
Part of the governed-agent stack measured by
agent-benchmark-suite.
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed MCP: agent audit, provenance, deterministic checks, and receipt-backed FragGate execution.
Tamper-evident proof creation and verification for AI agents via MCP, A2A, and REST.
Signed, Merkle-proofed, on-chain-anchored trust records for MCP servers. Verify, do not trust.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceCryptographic proof of every AI decision. An immutable, verifiable audit trail MCP server.1MIT
- AlicenseAqualityBmaintenanceRetired snapshot of the former 15-tool Apache-2.0 beta. Use Living Stack Community for the free seven-tool proof edition; Complete Local is the paid runtime with memory, recovery, signed traces, release verification, and multi-agent workflows.14Apache 2.0
- AlicenseBqualityBmaintenanceEnables software agents to maintain a signed, evidence-aware local ledger of claims, with policy-gated proposals, conflict queries, and constitution-pinned access through an MCP stdio server.73Apache 2.0
- AlicenseNot gradedqualityBmaintenanceDeterministic zero-trust policy enclave, fail-closed schema validator, DPDP Act 2023 PII sanitizer, and cryptographic WORM audit ledger for MCP tools.1Apache 2.0