Agent Guardrail MCP server
io.github.rudimentall1/agent-guardrail·v1.0.2·1 starsDeterministic policy firewall for AI agent tool calls - YAML rules, not a fuzzy risk score.
1 stars24 downloads/wk
Reviews
Write oneNobody has reviewed Agent Guardrail yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Agent Guardrail tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan18 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 2 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Agent Guardrail compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 4,460 AI and agents servers
- GitHub stars
- 1
- more than 50% of 2,711 AI and agents servers
- Downloads a week
- 24
- more than 10% of 1,538 AI and agents servers with a package
Install Agent Guardrail in Claude Code, Cursor or VS Code
claude mcp add agent-guardrail -- uvx guardrail-mcp
What the publisher says
From the Agent Guardrail repository's README, as published. We do not edit it. Read it on GitHub
Guardrail
<!-- mcp-name: io.github.rudimentall1/agent-guardrail -->
📄 Read the white paper
Put a policy firewall between an AI agent and every irreversible action.
Your agent wants to run a shell command, send an email, or move money. Guardrail checks that request against rules you wrote, before it happens, and either lets it through, asks a human, or blocks it — with a plain- English reason every time.
60-second quickstart
git clone <this repo> && cd agent-guardrail
pip install -r requirements.txt
python3 cli.py check --agent trading-agent-001 --tool wallet.transfer \
--args '{"amount": 9999, "to": "0xabc"}'Or pip install guardrail-mcp gives you a guardrail command directly — same output, no repo checkout required (falls back to the policy bundled in the package if you don't point --policy at your own file):
guardrail check --agent trading-agent-001 --tool wallet.transfer \
--args '{"amount": 9999, "to": "0xabc"}'{
"decision": "BLOCK",
"matched_rules": [
{"rule": "numeric_cap_exceeded", "severity": "BLOCK",
"message": "amount=9999.0 exceeds cap 5 for 'wallet.transfer' (unknown agent)"}
]
}That's it — no server, no account, no API key. policies/default.yaml is the file that decided this; open it and change the numbers to match your own rules.
Why this, not another "AI risk scoring" tool
Most "AI agent security" projects (including an earlier project of mine) lean on statistical risk scores computed from data nobody can actually verify at build time — wallet age, "reputation," contract "risk" — which either requires paid data feeds you don't have yet, or quietly becomes mock data pretending to be real. Fine for prototyping, dishonest to ship.
Guardrail only makes claims it can back up. Every check is a deterministic rule — a blocklist entry, a regex match, a numeric cap, a rate limit — evaluated against a policy file you write and can audit yourself, backed by a real, persistent audit log (SQLite) you can query. Nothing here pretends to know something it doesn't.
It's also not blockchain-specific. Shell execution, email, HTTP requests, file deletion, database writes, crypto transactions — same engine, same policy file, same rules.
Four ways to use it
1. CLI — for testing a policy by hand
Shown above. No setup, instant feedback while you write rules.
2. MCP server (mcp_server.py) — the easy on-ramp, advisory
Exposes guardrailcheck, guardrailrecordoutcome, and guardrailagent_history as MCP tools any MCP-compatible agent (Claude Desktop, Claude Code, custom MCP clients) can call.
{
"mcpServers": {
"guardrail": {
"command": "python3",
"args": ["/absolute/path/to/agent-guardrail/mcp_server.py"],
"env": { "GUARDRAIL_POLICY": "/absolute/path/to/agent-guardrail/policies/default.yaml" }
}
}
}Then tell your agent (in its system prompt) to always call guardrail_check before spending money, deleting data, messaging someone externally, or running code.
Be clear-eyed about its limit: like any MCP tool, nothing stops the calling model from just not invoking it. This only helps if the agent is instructed to always check first — for a guarantee it can't skip, see #3.
3. guardrail.decorator.enforce — the real guarantee
Wraps the actual Python function that performs a tool's side effect. The check runs in your code, before that function executes — the model never gets a chance to call the real function directly.
from guardrail.decorator import enforce, BlockedActionError
@enforce(engine, tool_name="send_email")
def send_email(agent_id: str, to: str, subject: str, body: str):
... # only runs if the decision is ALLOW, or WARN-and-confirmedShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Agent Guardrail: common questions
- Is Agent Guardrail MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Agent Guardrail safety report
- How do I install Agent Guardrail?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Agent Guardrail need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Agent Guardrail maintained?
- The last commit was 43 days ago (2026-09-22). The latest release is v1.0.2.
- What can I use instead of Agent Guardrail?
- Servers from other publishers that do the same job: Roast My Design System MCP server, Roast My Design System MCP server and Ausca MCP server.
- How does Agent Guardrail compare with other AI and agents MCP servers?
- safety score 92/100 (higher than 90% of 4,460 AI and agents servers); github stars 1 (more than 50% of 2,711 AI and agents servers); downloads a week 24 (more than 10% of 1,538 AI and agents servers with a package). Full comparison.
Alternatives to Agent Guardrail
Same job from other publishers: the closest match first, then the best rated.
- Roast My Design SystemAudit your Design System and serve your Agent the rules that keep AI-written UI on-system.not reviewedEstablishedA
- Roast My Design SystemAudit your Design System and serve your Agent the rules that keep AI-written UI on-system.not reviewedEstablishedA
- AuscaPay-per-call APIs and MCP services for agents, no accounts or keys, with verifiable receipts.not reviewedEstablishedA
- SkillsmithShare agent skills across your team, scan them for risk, and track what's actually used.not reviewedEstablishedB
- AKShareLet a model explore AKShare's 1000+ China market data functions on its own — search, inspect, callnot reviewedEstablishedA