← all repositories

invariantlabs-ai/invariant

A security layer that sits between AI agent applications and their MCP servers or LLM providers, enforcing rule-based guardrails on tool calls.

433 stars Python AgentsLLMOps · Eval
invariant
Not currently ranked — collecting fresh signals.
star history

Invariant Guardrails is a Python-based security framework for AI agent systems. It deploys as a proxy between applications and LLM providers or MCP servers, using simple Python-inspired rule matching to detect and prevent malicious or unwanted agent behavior. Rules can identify dangerous tool call patterns, such as email exfiltration attacks, and automatically intercept flagged operations. The system integrates transparently without requiring invasive code changes to the host application.

Frequently asked

What is invariantlabs-ai/invariant?
A security layer that sits between AI agent applications and their MCP servers or LLM providers, enforcing rule-based guardrails on tool calls.
Is invariant open source?
Yes — invariantlabs-ai/invariant is open source, released under the Apache-2.0 license.
What language is invariant written in?
invariantlabs-ai/invariant is primarily written in Python.
How popular is invariant?
invariantlabs-ai/invariant has 433 stars on GitHub.
Where can I find invariant?
invariantlabs-ai/invariant is on GitHub at https://github.com/invariantlabs-ai/invariant.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.