# MCP Guard Audit

> 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.

MCP Guard Audit is a free AI agent skill on Agensi by Zihao Wang, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Zihao Wang](https://www.agensi.io/creators/zihao-wang)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0.0
- Last updated: 2026-12-02
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-guard-audit
- Tags: security, mcp, agents, audit, red-team

## 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: "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: "Review our agent tool permissions"
- **Founders and CTOs building with agents:** Plain-language risk, not a scanner dump Try: "Is it safe to give our agent file and email access?"

## 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.

## Requires

- Python 3.8+ (only for the inventory script)
- pkg
- Node.js
- without

## Known limitations

This skill audits the design and setup of tools. It does not test the model for bypasses like jailbreaking or general business logic errors.

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MCP Guard Audit skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What kinds of safety issues does this skill find?

This skill acts as a security inspector for the connections between your AI agent and the tools it uses. It identifies gaps where an agent might be tricked into leaking data, reaching unauthorized files, or performing actions without proper approval.

### What will I actually get once the audit is finished?

You will receive a ranked security report that lists every problem found, the evidence for it, and specific instructions on how to fix it. It also provides a detailed list of every tool your system uses and what those tools are allowed to reach.

### Are there any security risks that this skill does not check for?

The audit focuses on the trust boundaries between the agent and its tools. It does not check for general website security or whether the AI model itself will refuse a request or follow business rules.

### What do I need to provide for the audit to work?

To get the best results, you should provide access to your project files or a list of the tool servers your agent uses. The skill can also scan your system for hidden tool configurations if you allow it to read your directories.

### How should I tell my agent to start using this skill?

You can ask your agent to review your tool permissions, audit your server list, or check your security posture before you launch a new agent. It is specifically designed for times when you need a professional assessment of your agent's safety.

### Will this skill change my files or access my private data during the scan?

The skill is read-only by default and will not change your code or run your tools without your explicit permission. It is designed to report risks rather than exploit them, using dummy data instead of your real files to show how a problem works.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
