agentguard MCP server
MCP policy proxy: spend caps, approvals for destructive tools, kill switch, dry-run, audit log.
0 stars862 downloads/wk
Reviews
Write oneNobody has reviewed agentguard yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
agentguard tools (5, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
BashEditWritewrite actionexample_addAdd two numbers and return their sum as { sum }. Demonstrates typed input and output schemas; send non-numbers to see an INVALID_INPUT error result.
example_paid_lookupLook up a record by query and return { query, result, sample } (fake data). Demonstrates a paid tool: without an entitlement the call returns a PAYMENT_REQUIRED result with x402 and MPP payment options.
Public scan report
scanner v0.1.10 · 2026-10-15 · same rubric, same numbers if you re-run it
- Code scan22 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
- Maintenancerepository not readable: repo not found3/15
- Maintainer identityno repository or website to verify2/10
How agentguard compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 65/100
- higher than 20% of 48,255 servers
- Tools
- 5
- the typical server has 7
- Tools that change things
- 20%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 862
- more than 93% of 12,191 servers with a package
What its tools let an agent do: 3 read · 1 create · 1 change
Release history: 2 versions in the registry since 2026-09-08, latest 2026-10-07, typically one every 30 days.
Install agentguard in Claude Code, Cursor or VS Code
Runs npx -y @agentwares/agentguard on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add agentguard -- npx -y @agentwares/agentguard
What the publisher says
From the agentguard repository's README, as published. We do not edit it. Read it on GitHub
agentguard
60 seconds to a safe first run. Your agent already has an MCP config. Put agentguard in front of it, run the agent once in dry-run, and read what it would have done:
npx @agentwares/agentguard init # finds your MCP config, writes agentguard.yaml (dry-run), routes every server through the proxy
# restart your MCP client, run your agent as usual — writes are faked, nothing executes upstream
npx @agentwares/agentguard report # "would have deleted 12 records, sent 5 emails, spent $140 — halted a loop at call 31"
npx @agentwares/agentguard diff # the record-by-record mutation diff
# set `mode: enforce` in agentguard.yaml when it looks right# agentguard report — run `run_20260902_a1b2`
61 tool calls between 10:02:11 and 10:02:19 across crm.
## What this run would have done (dry-run, nothing was executed)
It would have **deleted 1 record**, updated 1, created 1, sent 1 message, **spent $12.00**.
## Where agentguard stepped in
| # | code | tool | why |
|----|-----------------|--------------------|--------------------------------------------------------------|
| 10 | `LOOP_DETECTED` | crm_update_contact | called 3 times with the same arguments in the last 30 calls |
| 61 | `CAP_EXCEEDED` | crm_create_contact | writes cap for this run is 50; used 50, this call would make it 51 |agentguard is an MCP policy proxy for agents that touch production. It sits between the agent and its MCP servers, sees every tool call, and enforces one YAML file:
- Hard spend limits — per-run and per-day spendusd across every provider, from tool arguments (stripecreatecharge.amount), tool results (costusd), and — with the SDK's guarded fetch — LLM token usage from OpenAI, Anthropic and Gemini responses. The call that would exceed the cap gets CAP_EXCEEDED with the remaining budget.
- Destructive-action gating with approvals — approval.tools: [crmdelete] makes the agent get APPROVAL_REQUIRED + an id; a human runs agentguard approve (or clicks the button in Slack) and the agent's identical retry goes through once.
- Kill switch — agentguard kill (a file), AGENTGUARD_KILL=1 (env), or POST /kill (HTTP): every run halts instantly with KILLED until agentguard resume.
- Per-agent scoped credentials — the proxy holds the upstream tokens; each agent gets an agk_… key with its own allowlist, denylist and caps. Only the key's hash lives in the policy.
- Dry-run writes with mutation diffs — classified writes return a plausible success shaped by the tool's output schema so the agent keeps going; agentguard diff shows what would have changed.
- Semantic loop breaker — the same (tool, normalized args) 3× in the last 30 calls, or an A→B→A→B cycle, returns LOOP_DETECTED. Timestamps, ids, whitespace and key order are ignored.
- Blast-radius caps — toolcalls, writes, deletes, emails, spendusd and custom counters, per run and per day.
- Hash-chained audit log — every call is a JSONL line with prev_hash and hash; agentguard verify proves no entry was edited, removed from the middle, or reordered (see Limits for what a local chain cannot prove on its own).
No LLM calls. No phone-home. No account. MIT.
Two install paths, one policy engine: the MCP proxy (npx @agentwares/agentguard, stdio + Streamable HTTP, multiple upstreams) and the SDK/middleware (@agentwares/agentguard-sdk) for OpenAI Agents SDK, LangChain or plain-function tools that never go through MCP.
Install
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Grade history
- 2026-10-15downgradeA → Cscore 65
agentguard: common questions
- Is agentguard MCP server safe?
- With care: it is graded C, so read the findings first (65/100). Read the agentguard safety report
- How do I install agentguard?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does agentguard need an API key?
- No secret keys are declared. It reads 2 settings from the environment.
- Is agentguard maintained?
- The last commit was 54 days ago (2026-09-11). The latest release is v0.1.9.
- What can I use instead of agentguard?
- Servers from other publishers that do the same job: SSH — policy-gated remote access MCP server and SSH Manager MCP server.
- How does agentguard compare with other MCP servers?
- safety score 65/100 (higher than 20% of 48,255 servers); tools 5 (the typical server has 7); tools that change things 20% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to agentguard
Same job from other publishers: the closest match first, then the best rated.
- SSH — policy-gated remote accessPolicy-gated, audited SSH for Linux and Windows hosts: roles, approvals, and an audit log.not reviewedEstablishedB
- SSH ManagerSSH for AI agents: commands, files, backups and health, with approval, a vault and an audit trailnot reviewedEstablishedA