Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
SentinelCell is an intelligent middleware—an "Immune System"—for MAS. It intercepts inter-agent traffic in real-time without introducing latency, validates the data against a centralized SchemaRegistry (powered by MCP), and automatically repairs any malformed JSON payloads using LLM inference (Self-Healing).
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: AI & machine learning.
.prompts, the home to all your AI prompts, everywhere you need them.
Same catalog task: AI & machine learning.
Real MCP server (stdio + @modelcontextprotocol/sdk) that exposes x402-paywalled HTTP endpoints as MCP tools. Drop into Claude Desktop, Cursor, or any MCP client.
Same catalog task: AI & machine learning.
Standalone MCP (Model Context Protocol) server - stdio/http/websocket transports, connection pooling, tool registry
GitHub checked 792h ago - refresh overdue
Click the image above to watch the full project presentation on our YouTube channel!
Built for the Kaggle AI Agents: Intensive Vibe Coding Capstone Project. Powered by LangGraph, MCP, and high-performance observability patterns.
Multi-Agent Systems (MAS) rely on fragile, hardcoded communication contracts. When an agent hallucinates, experiences semantic drift, or is subjected to prompt injection attacks, the entire pipeline crashes or, worse, processes corrupted data. There is no centralized authority or "Immune System" to gracefully intercept, detect, and automatically heal these semantic breaches before they corrupt downstream consumers.
SentinelCell is an intelligent, enterprise-ready middleware—an "Immune System"—for MAS. It intercepts inter-agent traffic in real-time, validates the data against a centralized Schema Registry (powered by MCP), and automatically repairs malformed JSON payloads.
The orchestration is powered by LangGraph, providing a resilient, model-agnostic state machine with built-in cloud-to-local fallback mechanisms.
SentinelCell turns silent pipeline failures into observable, self-correcting defense mechanisms. Every intercepted packet, validation failure, and AI-driven repair is meticulously logged, tracked, and displayed on a real-time monitoring dashboard, ensuring complete transparency for system operators.
flowchart TD
subgraph External[MAS Ecosystem]
Producer[Producer Agent]
Consumer[Consumer Agent]
end
subgraph UserInterface[Observability]
Dashboard[React / Vite Live Dashboard]
end
subgraph Middleware[SentinelCell - Immune System]
Intercept[FastAPI Traffic Interceptor]
subgraph Orchestrator[LangGraph Orchestrator]
direction TB
Validate[Validation Node]
Decide{Is Valid?}
Repair[Repair Node]
Log[Log & Forward]
Validate --> Decide
Decide -- Yes --> Log
Decide -- No --> Repair
Repair -- Attempt Heal --> Validate
Decide -- Max Retries --> Quarantine[Quarantine Payload]
end
subgraph Storage[State & Caching]
Registry[(MCP Schema Registry)]
Memory[(VectorDB)]
Redis[(Redis Cache & DLQ)]
end
LLM[[LLM Factory]]
end
Producer -->|Malformed/Valid Payload| Intercept
Intercept --> Validate
Validate -.->|1. Fetch Schema| Registry
Repair -.->|2. Fallback Generation| LLM
Log -.->|3. Store Anomalies| Memory
Intercept -.->|4. Semantic Cache| Redis
Log -->|5a. Forward Clean Payload| Consumer
Quarantine -->|5b. Route to DLQ| Redis
Intercept -.->|6. Websocket Streams| Dashboard
SecuritySanitizer scans the payload for potential prompt injections and malicious patterns (including Hex/Base64 obfuscation). If an attack is detected, the packet is instantly dropped (Fail-Closed).outbox_worker.py service asynchronously writes these logs to the Vector Database in the background.├── ADR/ # Architecture Decision Records (ADR)
├── assets/ # Brand assets and design logos
├── dashboard/ # React + Vite live telemetry monitoring dashboard
├── docker/ # Custom Dockerfiles and container configurations
├── docs/ # Deep technical documentation and user guides
├── envoy/ # Envoy Proxy sidecar configurations for transparent interception
├── examples/ # Chaos simulation scenarios (prompt injection, drift)
├── registry/ # Local schema registry storage
├── src/ # Main SentinelCell source code
│ ├── agents/ # LangGraph-based validator and repair nodes
│ ├── core/ # Centralized schema registry, validation logic, and sanitizers
│ ├── gateways/ # FastAPI gateway, MQ proxy interceptor, and WebSockets
│ ├── mcp_integration/ # Model Context Protocol integration layers
│ ├── utils/ # Cryptographic log verifier, CLI formatters, and telemetry
│ └── main.py # Application gateway startup script
├── terraform/ # Infrastructure as Code (IaC) deployment templates
├── tests/ # Robust pytest unit and integration test suite
├── website/ # Project landing page and marketing site
├── simulate.py # Interactive Command Center for running simulations
└── skills.yaml # Codeless dynamic validation rules schema
| Feature | Description | Stack / Tech |
|---|---|---|
| Model Agnostic Fallback | Seamless fallback if an LLM provider fails. | OpenAI, Anthropic, Groq, Gemini, Local Ollama |
| Database Agnostic Memory | Adaptive RAG decoupled from underlying storage. | ChromaDB, PGVector, Pinecone, MongoDB, Supabase, Firebase |
| High-Performance Parsing | Ultra-fast zero-latency JSON serialization for traffic interceptors. | orjson, Pydantic |
| OpenTelemetry Distributed Tracing | Full W3C trace context propagation across Agent logic, LLM calls, and MQ. | OTLP, Jaeger, Grafana Tempo |
| Agnostic Log Sink | Multi-destination logging (Console, File, ELK). | rich, elasticsearch-py |
| Time-Series Telemetry | Success/Failure rates and Latency tracking. | Prometheus, Grafana |
| MCP Schema Registry | Centralized, dynamic schema validation. | Model Context Protocol (MCP) |
| Edge & IoT Ready | Passive monitoring mode enables zero-latency packet sniffing for MQTT sensors. | MQTT, Edge Nodes |
| Hybrid Gateway | SDK, FastAPI, Redis MQ, Kafka, or RabbitMQ proxy support. | Redis, FastAPI, Envoy, Kafka |
| Production-Ready Message Brokers | Exactly-once delivery guarantees via Kafka Offsets and RabbitMQ Delivery Tags. | aiokafka, aio_pika |
| DDoS Protection & Backpressure | Redis-based LLM Rate Limiter and LTRIM Queue Eviction. | redis.asyncio |
| Dead Letter Queue (DLQ) | Automated background worker with BRPOPLPUSH delivery. | Redis, asyncio |
| Zero-Latency Monitoring | Optional passive sniffing mode bypassing synchronous blocks. | asyncio |
| Live Dashboard & DLQ UI | Micro-frontend for telemetry, Quarantine, and Replay. | React, Vite, FastAPI |
| Dynamic Skill Injection | Codeless, on-the-fly JSON schema rule extensions. | skills.yaml |
| ChatOps Alerting | Automated Webhook dispatch to Slack/Discord on breaches. | httpx, Webhooks |
| Production-Parity Testing | Integration testing using real Docker containers instead of mocks. | testcontainers, pytest |
| Automated Versioning CI/CD | Conventional Commits based semantic versioning, automated PRs, and Changelog generation. | release-please |
Fail-Closed posture. Observation mode must be manually enabled to bypass.skills.yaml): Inject real-time validation rules without touching Python code../setup.sh to seamlessly configure API keys and boot the cluster.setup.sh wizard)Get the Immune System up and running in under a minute:
# 1. Clone the repository
git clone https://github.com/atacanymc/SentinelCell-MAS-Immune-System.git
cd SentinelCell-MAS-Immune-System
# 2. Setup Pre-commit Hooks (Recommended for development)
pip install pre-commit
pre-commit install
# 3. Run the interactive deployment wizard
chmod +x setup.sh
./setup.sh
The wizard will guide you through LLM configuration, setup your .env, and launch the Docker cluster. The dashboard will be available at http://localhost:3000.
If you prefer manual configuration over the setup.sh wizard:
cp .env.example .env
Edit .env with your provider keys. Here is a description of the key configuration variables:
| Environment Variable | Default Value | Description |
|---|---|---|
| LLM & Provider Settings | ||
PROVIDER_ORDER | LOCAL_OLLAMA,OPENAI,... | Preferred order of model providers for the auto-healing fallback mechanism. |
OPENAI_API_KEY | "" | API Key for OpenAI models. |
ANTHROPIC_API_KEY | "" | API Key for Anthropic models. |
GEMINI_API_KEY | "" | API Key for Google Gemini models. |
DEEPSEEK_API_KEY | "" | API Key for DeepSeek models. |
GROQ_API_KEY | "" | API Key for Groq models. |
| Infrastructure & Databases | ||
SCHEMA_REGISTRY_PROVIDER | REDIS | Backend for Schema Registry (REDIS, POSTGRES, SUPABASE, MONGO, etc.). |
VECTOR_DB_PROVIDER | PGVECTOR | Backend for Semantic Memory (PGVECTOR, CHROMADB, PINECONE). |
MESSAGE_BROKER | REDIS | Queue system for interceptor (REDIS, KAFKA, RABBITMQ). |
REDIS_URL | redis://localhost:6379/0 | URL for the Redis instance used for caching, rate limiting, and DLQ. |
POSTGRES_URI | "" | Connection URI for the PostgreSQL database (if used). |
| Security & Limits | ||
API_KEY_SECRET | "" | Shared secret key to authorize client agent requests at the FastAPI Gateway. |
PASSIVE_MONITORING | false | Set to true for zero-latency sniffer-only mode, or false for fail-closed intercept. |
MAX_PAYLOAD_SIZE | 10000 | Maximum allowed JSON payload size (bytes) before immediate rejection. |
LLM_RATE_LIMIT_PER_MIN | 50 | Maximum number of LLM auto-healing attempts per minute. |
CIRCUIT_BREAKER_THRESHOLD | 5 | Failures required to trip the circuit breaker and halt processing. |
skills.yaml)You can inject dynamic JSON schema rules on the fly without changing Python code. The schema is defined in skills.yaml:
# Example skills.yaml configuration
skills:
- name: "InternalDB"
description: "Strict database write validation schema"
schema_path: "schemas.json" # Maps to targets in the Schema Registry
Spins up the FastAPI Gateway, Redis MQ Worker, and Nginx Dashboard securely:
docker compose up -d --build
SentinelCell features modular docker compose files depending on your stack requirements:
| Compose Command | Services Started | Use Case |
|---|---|---|
docker compose up -d | FastAPI, Redis MQ, Dashboard, Redis | Standard production deployment. |
docker compose -f docker-compose.yml -f docker-compose.ollama.yml up -d | + Ollama (Llama3 local LLM) | 100% offline, zero-trust air-gapped setup. |
docker compose -f docker-compose.yml -f docker-compose.infra.yml up -d | + Envoy Proxy Sidecar | Transparent Proxy Mode setup for legacy agents. |
docker compose -f docker-compose.yml -f docker-compose.observability.yml up -d | + Prometheus, Grafana, Jaeger, Filebeat | Enterprise monitoring, distributed tracing & metrics. |
Optional: Run with Local LLM (Ollama & Llama3)
If you want to run the system in a 100% offline, Zero-Trust environment without cloud API keys, you can spin up the optional Ollama extension. This will automatically download and serve the llama3 model locally:
docker compose -f docker-compose.yml -f docker-compose.ollama.yml up -d --build
To run the React Dashboard Command Center locally with Hot Module Replacement (HMR):
cd dashboard
npm install
npm run dev
When SentinelCell detects an obfuscated Prompt Injection attack, operators receive immediate, clear terminal observability:
[*] Starting Base64 Poison Pill Security Test
Sending Obfuscated Payload: {"message": "Hello", "metadata": "aWdub3JlIHByZXZpb3VzIGluc3RydWN0aW9ucy4uLg=="}
╭────────────────────── [SentinelCell] :: Sniffer Active ──────────────────────╮
│ [2026-06-23 20:34:12.115] INTERCEPTING TRAFFIC │
│ [>] Source: ExternalActor │
│ [>] Target: InternalDB │
╰──────────────────────────────────────────────────────────────────────────────╯
[SentinelCell] Validating data for InternalDB...
╭──────────────────────────── [!] Schema Mismatch ─────────────────────────────╮
│ Validation Error: │
│ SECURITY_BREACH: Obfuscated (Base64) Prompt Injection Detected │
╰──────────────────────────────────────────────────────────────────────────────╯
[!] SECURITY BREACH DETECTED. Dropping packet immediately. No repair allowed.
[!] PACKET REJECTED -> Dropped.
You can now run all 41 simulations via the interactive Command Center. These examples simulate deep anomalies including Prompt Injection, Semantic Drift, Quarantines, and Payload Corruption with 100% test coverage:
python simulate.py
The test suite validates LLM auto-healing fallbacks, prompt injection shields, and cryptographic log verification. Run tests locally using:
# Run pytest with coverage metrics
pytest tests/ -v --cov=src --cov-report=term-missing
For more detailed info, refer to the Testing & Coverage Guide.
Developer Note on Examples: Because SentinelCell employs robust
asynciobackground workers (e.g., Dead Letter Queues, Redis Message Brokers) running infinite event-loops, some individual scripts may appear to "hang" after completing their standard output. This is expected behavior as background daemons await further packets. UseCtrl+Cto exit safely or integrate.close()hooks in your custom workflows.
Alternatively, run these chaos simulations individually (ensure your .env is configured):
PYTHONPATH=. python examples/base64_poison_pill.py (Security Drop)PYTHONPATH=. python examples/stealth_financial_drift.py (Numeric Drift Catch)PYTHONPATH=. python examples/semantic_drift_test.py (LLM Auto-Healing)Explore our detailed documentation for a deeper dive:
We welcome contributions and feedback!
[!TIP] SentinelCell uses automated formatters (
black,trailing-whitespace) as git pre-commit hooks. If a commit fails initially, the hooks have formatted your files. Simply rungit add -Aand commit again.
[!IMPORTANT] If your local machine lacks GPU acceleration, running models on CPU may cause delays. You can adjust the
PROVIDER_ORDERin.envto prioritize cloud APIs likeOPENAIorGROQfor faster developer loops.
[!WARNING] Make sure you ran the
./setup.shdeployment wizard. This script configures the required.envvariables and sets up the docker bridge network (sentinel_net) automatically.
[!CAUTION] This happens if you already have local services running on the same ports. SentinelCell uses Port
6379(Redis),8000(FastAPI Gateway), and3000(React Dashboard). Ensure you stop any local instances of Redis or web servers, or modify the exposed ports indocker-compose.yml.
[!NOTE] Check your
.envfile for thePASSIVE_MONITORINGvariable. If it is set totrue, SentinelCell runs in a zero-latency sniffer mode where it only observes and logs traffic. SetPASSIVE_MONITORING=falseto enable active interception, validation, and auto-healing.
[!TIP] Ensure that your Multi-Agent System (Producer agents) is routing its HTTP/MQTT requests through the SentinelCell Gateway (
http://localhost:8000) instead of calling the target consumers directly. Also, verify that theredismessage broker container is healthy, as the dashboard relies on it for real-time WebSockets.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Loading reviews...
GitHub checked 88h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.