# mcpguard

> Audit MCP servers for prompt injection, secret leaks, and filesystem violations using MCPGuard.

mcpguard is a paid AI agent skill on Agensi by Hieu Nguyen, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $6 (one-time purchase)
- Creator: [Hieu Nguyen](https://www.agensi.io/creators/hieu-nguyen)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcpguard
- Tags: llm-ops, mcp-server, security-testing, automated-audit, python

## About this skill

Unvetted Model Context Protocol (MCP) servers pose significant security risks, including secret leaks, prompt injection, and unauthorized filesystem access. This skill provides a specialized interface for auditing and testing MCP servers using the MCPGuard CLI to ensure tools meet safety requirements before deployment.

### What it does
- **Pre-flight security testing** executes active audits against MCP server endpoints to identify vulnerabilities.
- **Vulnerability detection** identifies secret leaks, prompt injection risks, and filesystem boundary violations.
- **Policy enforcement** validates server configurations against custom failure thresholds and timeout rules.
- **Evidence-based reporting** generates trust-gate reports in terminal, JSON, or SARIF formats for CI/CD integration.
- **Target discovery** inspects transport layers, tool scopes, and policy files to map the attack surface.

### How it works
1. **Target Identification** involves locating the server via command, URL, or local registry and inspecting its tool scope.
2. **Policy Configuration** reviews path boundaries, secret patterns, and failure thresholds to define the test gate.
3. **Execution Control** runs targeted scans on specific tools or full-server audits using the `mcpguard test` command.
4. **Result Interpretation** analyzes exit codes and heuristic findings to categorize risks by severity.

### Frameworks & tools
This skill requires `python 3.12` or newer and the `mcpguard` CLI. It supports MCP servers using standard transport protocols and integrates with security tooling via SARIF output.

### Why this beats prompting it yourself
Generic agents often overlook the side effects of active testing or fail to interpret specific MCP schema errors correctly. This skill follows a strict safety workflow that prevents accidental production scans and ensures findings are backed by exit codes and heuristic evidence rather than LLM hallucinations.

### Use cases
- **Security Auditing** to verify a new third-party MCP tool before adding it to an agent's environment.
- **CI/CD Integration** to block builds if an MCP server fails secret-leak or injection tests.
- **Configuration Review** to inspect tool path boundaries and network policy placeholders.
- **Compliance Reporting** to generate SARIF evidence for security teams during release cycles.

### Known limitations
Does not provide process, filesystem, or network isolation. Network-boundary enforcement and side-effect detection are currently not implemented in the underlying tool.

## Requires

- Python

## 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 mcpguard skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific security risks does this skill address for MCP servers?

MCPGuard provides a specialized auditing layer that identifies hidden risks like secret leaks, prompt injection vulnerabilities, and unauthorized filesystem access in Model Context Protocol (MCP) servers before they are deployed to your agents.

### Which AI agents or environments are compatible with this skill?

This skill is compatible with any MCP server that uses standard transport protocols and requires a local environment with Python 3.12+ and the MCPGuard CLI installed.

### Can I use this skill to automate security checks in my development pipeline?

Yes, the skill supports generating reports in JSON and SARIF formats, making it easy to integrate into your existing CI/CD pipelines as a security gate for new tools.

### Does MCPGuard provide runtime sandboxing or network isolation for my tools?

No, this skill is designed for auditing and vulnerability detection; it does not provide active process isolation or network sandboxing for the servers it tests.

### What is included in the purchase of this skill?

You will receive the specialized agent skill configuration designed to interface with the MCPGuard CLI, enabling the agent to execute audits, interpret heuristic findings, and generate security reports.

---

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.
