# mcp server security audit

> Static security auditor for MCP servers to detect injection, confused-deputy, and scope-creep vulnerabilities.

mcp server security audit is a free AI agent skill on Agensi by Elyas, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Elyas](https://www.agensi.io/creators/elyas-shukri-elmi)
- Category: [Security](https://www.agensi.io/skills/security)
- Uses: 6
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-08-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-server-security-audit
- Tags: ai-agents, mcp-server, security-audit, typescript, appsec

## About this skill

### The problem

MCP servers often have dangerous drift between tool descriptions and their actual handler code. Developers risk shipping RCE vulnerabilities through unsanitized inputs or leaking tenant data due to confused-deputy patterns in multi-client environments.

### What it does

- Performs side-by-side audits of tool docstrings against handler implementations to detect functional drift.
- Traces caller-supplied arguments to identify injection surfaces in shell commands, SQL queries, and file paths.
- Detects confused-deputy vulnerabilities in multi-tenant servers by verifying if authorization checks rely on verified identities or unvalidated tool arguments.
- Identifies over-broad scope declarations and omnibus permissions that violate the principle of least privilege.
- Audits stateful servers for session-handle hijacking risks and shared-mutable-state leaks across concurrent connections.

### Frameworks & tools

Model Context Protocol (MCP), OAuth 2.0 (RFC 8707), OWASP MCP Top 10, CVE-2026-54052, CVE-2026-0755, CVE-2026-25536.

### Why this beats prompting it yourself

Generic security prompts miss the specific architectural failures unique to the MCP specification, like token passthrough and state-handle binding. This skill enforces a strict multi-step workflow grounded in recent real-world CVEs and primary-source specification requirements.

### Use cases

- Reviewing a new MCP server handler for injection risks before its first release.
- Auditing a multi-tenant MCP gateway to ensure tenant isolation isn't bypassable via tool parameters.
- Hardening an existing server by narrowing requested scopes to match actual tool requirements.
- Preparing a formal pre-ship security checklist for third-party review or internal compliance.

### Known limitations

Static source review only. It cannot perform dynamic testing against a running server or audit external gateway configurations, environment variables, or CORS policies.

## Requires

- Gateway Config Auditor MCP
- Postmark MCP

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

### How does this audit skill differ from a general-purpose security scanner?

This auditor performs a side-by-side analysis of your tool definitions and handler code to detect risks specific to the Model Context Protocol, such as injection surfaces, scope-creep, and confused-deputy patterns in multi-tenant environments.

### Which AI agents or development environments can run this security audit skill?

The skill is compatible with any AI agent or IDE extension that supports the Model Context Protocol (MCP) and can interface with TypeScript/JavaScript-based server source code.

### Do I need to have my MCP server running in a production environment to perform the audit?

No, this is a static analysis tool that reviews your source code and configuration files; it does not require a live server connection or perform dynamic penetration testing.

### What is included in the purchase of the MCP Server Security Audit skill?

You receive the complete MCP-compatible skill package, including the audit logic, a predefined security checklist based on recent CVEs, and instructions for integrating it into your CI/CD or development workflow.

### Can this skill identify vulnerabilities in MCP servers that use multi-tenant authorization?

Yes, the auditor is specifically designed to recognize and flag risks associated with OAuth 2.0 (RFC 8707) and token passthrough issues common in complex MCP gateway architectures.

---

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.
