MCP Security Audit Checklist
Pre-publish security audit checklist for MCP servers and agent skills — secret leakage, prompt injection, tool poisoning, excessive permissions, and exfiltration paths.
$12
MCP Security Audit Checklist
Example session with this skill installed
Audit my MCP server before I publish it. It has 4 tools: read_file, write_file, fetch_url, and run_shell. Check for leaked secrets, tool poisoning in the descriptions, and dangerous permissions.
- Read your context and instructions
- Compiled the mcp security audit
MCP Security Audit: fs-tools server
| Severity | Finding | Location |
|---|---|---|
| Critical | run_shell accepts arbitrary commands with no allowlist — full RCE on the host | tools/run_shell |
| High | fetch_url has no SSRF protection — can reach internal hosts and the cloud metadata endpoint | tools/fetch_url |
| Medium | read_file allows ../../ traversal outside the workspace root | tools/read_file |
| Low | write_file description contains imperative text ("always backup before writing") — borderline tool poisoning pattern | tools/write_file |
Verdict
Do not publish as-is. Two reject-immediately findings: unrestricted shell execution and unguarded URL fetching. Fix by constraining run_shell to an allowlist of commands, adding private-IP/metadata blocking to fetch_url, and rooting read_file/write_file to the workspace directory.
Next steps
- Replace
run_shellwith specific tools (git_status,run_tests) instead of raw shell. - Add an SSRF guard: resolve host, reject private/link-local ranges.
- Re-run the hostile-input test after fixes — traversal and metadata probes should all fail cleanly.
Connects securely to your tools. The creator never sees your data.
About this skill
Agent tooling runs with user privileges and context. A malicious or sloppy MCP server can exfiltrate files, inject instructions, or leak secrets. This skill is the review checklist for both publishing your own server/skill and vetting someone else's before installing.
What it does
- Secrets & credentials audit — scans for hardcoded keys, .env leakage, secrets in README examples, and verifies the built npm artifact (not just source) is clean.
- Tool surface review — checks every tool description for hidden instructions (tool poisoning), validates that URL/path/command inputs are constrained, and flags outputs that leak server internals.
- Permission scoping — verifies minimum-necessary capability, documents every outbound network host, and cross-references payment flows with x402 audit patterns.
- Supply chain checks — pinned dependencies, justified postinstall scripts, license presence.
- Vetting red flags — imperative text in tool descriptions, unneeded credential requests, obfuscated code, anonymous authors with broad filesystem tools.
- Dynamic hostile-input test — run the server, call tools/list, then probe each tool with path traversal, cloud metadata, and command injection payloads.
How it works
- Walk the pre-publish checklist section by section against your package.
- For vetting, apply the red-flag list first — any hit is an automatic reject.
- Run the dynamic test: list tools, read descriptions as instructions, fire hostile inputs.
- Rate findings on the severity quick-list: credential exfiltration and tool poisoning are reject-immediately.
Why this beats prompting it yourself
Generic prompts produce generic advice. This skill encodes the specific failure modes that actually hit MCP servers — tool poisoning via description injection, npm package hygiene gaps, and the difference between a marketplace scan passing and a real security review.
Use cases
- Certify your MCP server before listing it on Glama, mcprush, or Agensi.
- Vet an untrusted MCP server before installing it into your agent.
- Audit agent skills for hidden exfiltration or permission abuse.
Known limitations
Static checklist — it doesn't include automated scanning scripts. Dynamic testing requires you to run the target server yourself.
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
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.