MCP Server Safety Audit
by Mr Vempire
Audit MCP server tools, permissions, and auth boundaries for data-exfiltration and misuse risks.
$12
MCP Server Safety Audit
Example session with this skill installed
Audit the attached sample-server.json manifest. It has a tool for reading files and one for sending webhooks. Provide a pass/fail report based on the checklist.
- Read your context and instructions
- Compiled the mcp server safety
I have completed the safety audit for the provided MCP server manifest. The automated scan flagged a critical path scoping issue, and the manual review identified a lack of destination allowlisting for the webhook tool.
MCP Safety Audit Report: Sample Server
Overall Verdict: DO NOT CONNECT
Inventory & Risk Assessment
| Component | Type | Risk Rating | Side Effects |
|---|---|---|---|
read_file | Tool | High | Read (File System) |
send_webhook | Tool | High | Send (Network) |
project_docs | Resource | Low | Read-only |
Findings
- FAIL: Path Scoping. The
read_filetool accepts absolute paths and does not sanitize..sequences. This allows an agent to read files outside the intended project directory, including~/.ssh/id_rsa. - FAIL: Destination Scoping. The
send_webhooktool allows sending data to any URL. In a lab test, the agent successfully exfiltrated a mock API key to an external listener. - PASS: Authentication. The server uses local-only stdio, preventing external network exposure of the server process itself.
Control Checklist
- [FAIL] No tool reads/writes files outside allowed directory (Evidence:
read_filelacks root scoping). - [FAIL] No tool sends data to arbitrary network destinations (Evidence:
send_webhooklacks URL allowlist). - [PASS] No tool executes arbitrary shell commands.
- [PASS] Server runs local-only (stdio).
- [N/A] Irreversible actions require specific user confirmation.
Next steps
- Modify
read_fileto prepend a base directory and block any path containing... - Implement an allowlist for the
send_webhooktool to restrict traffic to known API endpoints. - Re-run the audit once the manifest is updated to include
allowed_pathsandallowed_hosts.
Connects securely to your tools. The creator never sees your data.
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.pyto 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
- Analyze definitions by providing the
mcp.json, manifest, or tool listing output for the target server. - Execute scan using the included Python script to identify machine-checkable vulnerabilities like SSRF or path traversal.
- Manual verification against the
mcp-audit-checklist.mdfor high-risk tools requiring human context or confirmation logic. - 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
.envor 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
- 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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
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.