# MCP Server Safety Audit

> Audit MCP server tools, permissions, and auth boundaries for data-exfiltration and misuse risks.

MCP Server Safety Audit is a paid AI agent skill on Agensi by Mr Vempire, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Mr Vempire](https://www.agensi.io/creators/mr-vempire)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-server-safety-audit
- Tags: security, ai-agents, python

## About this skill

Connecting a new MCP server to your agent involves giving a third-party tool surface access to your files, credentials, and network. This skill audits MCP server definitions to prevent prompt-injected agents from exfiltrating data or executing unauthorized side effects.

### What it does
- **Inventory tool surface** lists every exposed tool, resource, and prompt with associated side-effect ratings.
- **Automated scanning** uses `mcp_audit.py` to flag dangerous tools, missing authentication, and over-broad file paths.
- **Exfiltration testing** simulates indirect prompt injection and data leaks within a lab environment to verify boundaries.
- **Auth boundary review** checks for plaintext credentials in configurations and verifies per-tool authorization logic.
- **Compliance reporting** generates a pass/fail audit report with clear verdicts: Safe to Connect, Connect with Restrictions, or Do Not Connect.

### How it works
1. **Analyze definitions** by providing the `mcp.json`, manifest, or tool listing output for the target server.
2. **Execute scan** using the included Python script to identify machine-checkable vulnerabilities like SSRF or path traversal.
3. **Manual verification** against the `mcp-audit-checklist.md` for high-risk tools requiring human context or confirmation logic.
4. **Final verdict** produced by scoring findings against must-pass controls to determine production readiness.

### Frameworks & tools
Python 3 for running `mcp_audit.py`. Compatible with Model Context Protocol (MCP) server definitions used by Claude Code, Cursor, and other MCP hosts.

### Why this beats prompting it yourself
Generic prompts often trust the model's refusal behavior rather than the server's actual constraints. This skill focuses on the hard security boundaries of the server code and manifest, identifying vulnerabilities like directory traversal that a model's "safety alignment" cannot fix.

### Use cases
- Auditing a third-party MCP server before connecting it to a client with production file access.
- Security-testing a custom MCP server you built before publishing it to a marketplace.
- Reviewing a server after adding new tools that handle sensitive data, payments, or shell execution.
- Verifying that local stdio servers are properly scoped to prevent access to `.env` or SSH keys.

### Known limitations
Does not audit the underlying LLM behavior or the client's internal security. Requires access to the server manifest or source code. Verification of confirmation dialogs requires manual testing.

## 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 Server Safety Audit 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

### How does this audit differ from the standard safety filters built into my AI agent?

The skill audits the server-side configuration and tool definitions (the 'what' and 'how' of the tools) to find vulnerabilities like path traversal or SSRF that an LLM's internal safety filters might miss.

### What assets are included with the purchase of this skill?

The skill includes the core Python auditing script (`mcp_audit.py`), a comprehensive manual verification checklist, and the reporting framework used to generate safety verdicts.

### Can I use this to audit MCP servers regardless of which AI coding assistant I am using?

Yes, this skill is designed to audit any server following the Model Context Protocol, making it compatible with implementations for Claude Code, Cursor, Windsurf, and custom MCP hosts.

### Do I need to provide the source code of the MCP server, or just the configuration file?

While the automated script flags technical vulnerabilities instantly, you will need to provide the server's `mcp.json` or manifest file to initiate the analysis.

### Should I run this audit every time a third-party MCP server is updated?

It is highly recommended to re-run the audit whenever a server adds new tools or updates its permissions to ensure no new data-exfiltration vectors have been introduced.

### Does this skill protect against LLM hallucinations or only technical vulnerabilities?

The skill focuses on the security of the MCP server itself and cannot prevent an LLM from hallucinating; however, it ensures that even if a model is 'tricked,' the server's boundaries prevent unauthorized data access.

---

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.
