
Agent Guardrail MCP Server
io.github.JarvisOnM4Published by GitHub account JarvisOnM4v0.1.2Updated Oct 24, 2026
Action-level governance for AI agents -- control what they DO, not what they SAY
Overview
A local Python guardrail that lets an assistant evaluate agent actions against policy rules, returning allow, deny or require-approval decisions with logging.
- What you can do
- Evaluate proposed agent actions against allowlists, denylists, glob patterns, spend caps and risk thresholds, returning allow, deny or require_approval decisions and recording them to a flight recorder in SQLite. Register agents and apply restrictive, moderate or permissive policy templates. Manage a kill switch and route risky actions to human approval gates. Review logged actions, pending approvals and statistics, and replay a session. Optionally run a local proxy API with per-agent keys and prepaid evaluation credits.
- When to use it
- Useful when you run autonomous agents with shell, file, network or spending access and want an action-level check before each tool call, rather than filtering only model output. Suited to LangChain, CrewAI or custom agent setups that need spend caps, a kill switch and an audit trail.
- Requirements
- Runs locally as a Python package installed with pip; the README states it uses only the Python standard library and SQLite. Optional proxy mode needs the proxy extra and an admin key. Optional billing needs the Blockonomics API key and webhook secret environment variables. No credentials are declared in the manifest.
Installation
In SourceWeft
- Open Agent Guardrail MCP Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Agent Guardrail
Action-level governance for AI agents — control what they DO, not what they SAY.
[PyPI] [License: MIT] [Python 3.10+]
The Problem
AI agents are getting tool access. They can run shell commands, make API calls, read files, spend money. But most "guardrails" only filter what agents say — not what they do.
Real incidents:
- AutoGPT autonomously spent $10K+ on API calls in a single session
- ChaosGPT attempted to access military systems and recruit other AI agents
- Air Canada chatbot invented a refund policy that cost the airline $800+
You need action-level control. Not output filtering.
What Agent Guardrail Does
- Policy Engine — allowlists, denylists, glob patterns for tools and targets
- Spend Caps — daily and total USD limits per agent
- Kill Switch — instantly deny all actions for a runaway agent
- Flight Recorder — every action logged with full replay capability
- Approval Gates — route risky actions to human review
- Risk Scoring — automatic risk assessment per action type
- 3 Templates — restrictive, moderate, permissive (apply in one command)
- Pay-per-eval Billing — free tier + BTC credit packs via Blockonomics
Zero dependencies. Python stdlib only. SQLite for storage.
30-Second Quickstart
Python API
Framework Integrations
LangChain Callback
CrewAI Task Guardrail
Universal Decorator
Hosted API (For Agents)
The library is for humans. The API is for agents.
An orchestrator running 5 sub-agents doesn't pip install — it calls an endpoint.
Full API docs at http://localhost:8300/docs (Swagger UI).
Billing & Pricing
Free tier included. Pay with Bitcoin when you need more.
Credits are prepaid and never expire. Admin-authenticated requests bypass billing entirely.
How it works:
When free tier is exhausted and no credits remain, /v1/evaluate returns 402 Payment Required with a link to available packs.
Self-hosted billing: Set BLOCKONOMICS_API_KEY and BLOCKONOMICS_WEBHOOK_SECRET environment variables. Without these, billing is disabled and all evaluations proceed without metering (backward compatible).
Policy Rules Reference
Patterns support glob matching (*, ?, [abc]).
Decision Flow
Architecture
Comparison
CLI Reference
Configuration
License
MIT
Source: README.md at commit 9f74ba7
Tools
0Version history
1- v0.1.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts