MCP Guard Audit
by Zihao Wang
Audits the tools an AI agent can call: 12 checks for poisoned tool descriptions, PII leak chains, fake approvals and silent fail-open. Returns a ranked report with fixes.
Free
What it does
- Map every MCP server and tool your agent can reach
- Run 12 checks, from tool description to audit log
- Rank findings by impact and reachability
- Hand back a fix list a CTO can act on
Who it's for
AI engineers shipping tool-using agents
Evidence they can act on before launch
Try asking: “Audit the MCP servers in this repo before we ship”
Security engineers handed an agent to review
A repeatable method and a report template
Try asking: “Review our agent tool permissions”
Founders and CTOs building with agents
Plain-language risk, not a scanner dump
Try asking: “Is it safe to give our agent file and email access?”
MCP Guard Audit
Example session with this skill installed
Audit the MCP setup in this repo before we ship. Tell me what could go wrong and what to fix first.
- Read your context and instructions
- Compiled the mcp guard audit
Summary
4 MCP servers, 11 tools, 3 findings. The blocking one is
C9: approval is a boolean the client sends, so any caller can approve a $10,000 transfer by itself.
| # | Check | Verdict | Severity |
|---|---|---|---|
| C9 | Approval integrity | fail | Critical |
| C4 | Data-flow exfiltration | fail | High |
| C5 | Obfuscation handling | partial | Medium |
| C1 | Tool description provenance | partial | Medium |
| C8 | Path boundary | pass | — |
| C12 | Audit and evidence | partial | Low |
F1 — Approval is client-supplied state · Critical · verified
- Location: backend/app/api/chat.py:142 — the approval endpoint accepts approved: true from the request body.
- What: the approval endpoint trusts the client. Nothing binds the approval to a session, a tool, or the arguments.
- Impact: a caller approves any tool, including transfer_funds, without a human — and can replay the same approval indefinitely.
- Fix: issue a signed token bound to (session, tool, caller, arguments_hash) with a single-use jti and an expiry; verify server-side before execution.
- Effort: M
F2 — PII read and egress in the same session · High · verified
- Location: policy/rules.py:6 — cs_agent holds both get_order and send_email.
- What: each call is authorized individually; the combination is not. No session taint, no egress allowlist.
- Impact: a poisoned tool description or a knowledge-base document can turn a legitimate read into an outbound email containing customer data.
- Fix: label data at read time, propagate the label through the session, deny egress of labelled data to non-allowlisted destinations, log the denial.
- Effort: L
F3 — No normalization before matching · Medium · verified
- Location: mcp_guard/canonicalize is called on tool descriptions but not on tool results.
- What: a zero-width character or full-width text in a tool result defeats the blocklist.
- Fix: run results through the same normalizer, with an expansion-ratio cap.
- Effort: S
Could not verify
- Whether the model itself follows injected instructions (needs a live run with a model).
- Multi-worker behaviour: the jti cache is in-process, so replay protection likely fails across replicas.
Next
Ship F1 first. It is one endpoint, and it is the difference between "an agent that asks" and "an agent that claims it asked".
Connects securely to your tools. The creator never sees your data.
About this skill
Most agent security reviews look at the prompt. This one looks at the tool call path: what the agent can actually run, as whom, with whose data, and what evidence is left behind.
MCP Guard Audit turns that path into 12 checks you can run against a real repository in an afternoon:
C1 tool-description provenance · C2 indirect injection · C3 tool-result injection · C4 data-flow exfiltration · C5 obfuscation bypass · C6 memory poisoning · C7 server trust and registry · C8 path and symlink boundaries · C9 approval replay · C10 least privilege · C11 fail-open behaviour · C12 audit completeness
What you get
- SKILL.md — the full audit procedure, with operating rules: read-only by default, never move real data to prove a point, evidence or it isn't a finding.
- references/audit-checklist.md — all 12 checks: what to look at, the pass/fail signal, the fix, and a real failure pattern for each.
- references/severity-rubric.md — impact × reachability scoring, calibration rules, and a 0–3 scale if you want to track a trend.
- references/mcp-config-locations.md — where Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex and Gemini hide their MCP configs. The user-level ones are the ones people miss.
- scripts/inventory_mcp.py — read-only inventory: finds configs, normalizes servers, flags unpinned npx packages, inline secrets and remote transports. Prints env var names only, never values.
- templates/report.md — a findings report a CTO will actually finish reading.
Who it's for
Teams shipping an agent that can read files, query a database, send email or move money. Security engineers handed one to review. Anyone about to give an agent a new MCP server.
Who it's not for
It does not exploit your target. It does not assess model-level safety such as jailbreaks or refusals. A pass means "this failure mode was not found today", not "safe".
Where the checks come from
MCP-Guard, an open-source execution gateway for agent tool calls: trust registry, policy and data-flow control, approval tokens, hash-chained audit log, and a 137-sample attack regression suite.
Search GitHub for WZ1887/ai-security-lab
MIT-licensed reference implementation, independently auditable. This listing is the audit methodology, not the runtime.
This skill audits the design and setup of tools. It does not test the model for bypasses like jailbreaking or general business logic errors.
Pure SKILL.md: no dependencies, no API keys, nothing to install. The only code is scripts/inventory_mcp.py, stdlib-only, Python 3.8+. It reads MCP config files and never executes a server. If Python is unavailable, the audit still works — the agent walks the config list in references/mcp-config-locations.md by hand. Works with any agent that supports the SKILL.md standard.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 2 days ago
- Free with an Agensi account
- Software
Python 3.8+ (only for the inventory script)pkg
Node.jswithout
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.