Skip to main content
skill CX Codex

mcp-server-review — Claude Code skill for MCP security audits

mcp-server-review is a Claude Code skill that audits MCP server code and client settings for security risks. Run it to review a server or assess it before installation.

CC-BY-4.0 217 installs ★ 230 updated 2026-10-15

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add OWASP/secure-agent-playbook --skill mcp-server-review -a claude-code
Open on GitHub

What mcp-server-review does

The skill audits an MCP server by following plays/mcp-server-review.md. It checks transport and authentication, tool permissions, input handling, and possible secret exposure. For each tool, it compares the code’s behavior with its stated purpose and assigns a risk category.

The review also covers file and network restrictions, process permissions, dependencies, update mechanisms, and MCP client settings. Checks include command injection, path traversal, SSRF, and sensitive data in logs. The output contains a server overview, a tool risk matrix, findings based on templates/finding.md, and configuration recommendations.

What it helps with

  • audit permissions granted to MCP server tools
  • find injection risks in tool parameters
  • assess exposure of secrets and personal data
  • review MCP client settings for unsafe environment variable passthrough
  • build a risk matrix for an MCP server

Example prompts for the agent

  • Audit this MCP server's source code and produce a tool risk matrix.
  • Review the Claude Code MCP configuration for excessive permissions and data exposure.
  • Assess this third-party MCP server before installation, including its tools, dependencies, and client settings.

How to install mcp-server-review

1Skills CLI (Vercel)

npx skills add OWASP/secure-agent-playbook --skill mcp-server-review -a claude-code

2Manually: put the files in place

~/.claude/skills/mcp-server-review/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/mcp-server-review/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about mcp-server-review

How do I install mcp-server-review in Claude Code?

Run npx skills add OWASP/secure-agent-playbook --skill mcp-server-review -a claude-code. The skill file is at ~/.claude/skills/mcp-server-review/SKILL.md.

What does mcp-server-review do?

It audits MCP servers and client settings for security issues such as excessive permissions, injection risks, and data exposure. Its output includes an overview, a tool risk matrix, findings, and configuration recommendations.

What does the mcp-server-review audit cover?

It examines transport and authentication, tool permissions, input validation, data exposure, sandboxing, dependencies, and MCP client configuration.

Source text

SKILL.md · CC-BY-4.0
---
name: mcp-server-review
description: Security review of MCP (Model Context Protocol) server implementations and configurations. Use when auditing MCP server source code, evaluating third-party MCP servers before installation, or reviewing Claude Code MCP integrations for overpermissioning, injection risks, and data exposure.
license: CC-BY-4.0
---

# MCP Server Security Review

Audit an MCP server by following the full procedure in `plays/mcp-server-review.md`.

## Steps

1. **Transport & Authentication** — Check transport type (stdio vs HTTP/SSE), authentication on network transports, TLS enforcement, CORS policy, origin validation.

2. **Tool Permission Audit** — For each exposed tool: document what it claims to do vs what it actually does (read source). Classify as READ-ONLY, MUTATION, DESTRUCTIVE, NETWORK, or CREDENTIAL-ACCESS. Flag tools with broader capabilities than descriptions suggest, free-form inputs, or credential access.

3. **Input Validation & Injection** — For each tool parameter: check for command injection (shell interpolation), path traversal (../ in file paths), SQL injection (unparameterized queries), SSRF (user-supplied URLs hitting internal services), and template injection.

4. **Data Exposure** — Assess MCP resources for secrets/PII leakage, tool outputs for excessive data, error messages for internal paths/stack traces, and logging for sensitive data capture.

5. **Scope & Sandboxing** — Check file system restrictions, network scope (can it reach cloud metadata 169.254.169.254?), process permissions, resource limits, and dependency surface.

6. **Supply Chain** — Verify source trustworthiness, run SCA on dependencies, check for lockfiles and reproducible builds, assess update mechanism.

7. **Client Configuration** — Review MCP client config for absolute/specific server paths, minimized env var passthrough, and command injection safety in args.

## Output

Server overview, tool risk matrix, findings using `templates/finding.md`, and specific configuration recommendations.

## OWASP References

- LLM01: Prompt Injection (via tool descriptions and outputs)
- LLM02: Sensitive Information Disclosure
- LLM05: Improper Output Handling
- LLM06: Excessive Agency (overpermissioned tools)
- A01: Broken Access Control
- A03: Injection

© OWASP · CC-BY-4.0 · OWASP/secure-agent-playbook

Similar skills

All skills for Security →

From the same set18

The whole set →
sca-audit sca-audit scans project dependencies for known CVEs, highlights abandoned packages, and suggests exact remediation commands. CX Codex +1 358installs agent-security-audit agent-security-audit is a Claude Code skill that checks AI agent configurations for vulnerabilities. Run it when reviewing CLAUDE.md files, MCP configs, and agent orchestration code. CX Codex +1 302installs mobile-code-review mobile-code-review audits native Android and iOS source code for security vulnerabilities against the OWASP MASVS v2.1.0 benchmark. CX Codex +1 224installs prompt-injection-test prompt-injection-test runs an LLM app through prompt injection attacks from the Arcanum PI Taxonomy. Use it when red-teaming your own AI app or checking how well its guardrails hold. CX Codex +1 220installs iac-security-review iac-security-review reviews Terraform, Kubernetes, and CloudFormation for security misconfigurations. Use it before an infrastructure change is reviewed or deployed. CX Codex +1 196installs securability-engineering securability-engineering — a skill that generates code adhering to FIASSE v1.0.4 and ASVS controls by default. Use it when building security-sensitive functions, APIs, or components that must pass review without rework. CX Codex +1 191installs multi-agentic-threat-model multi-agentic-threat-model conducts systematic threat modeling for multi-agent architectures using CSA MAESTRO and OWASP guidelines. CX Codex +1 188installs llm-risk-assess llm-risk-assess assesses LLM applications against OWASP Top 10 for LLM Applications 2025. Built for teams embedding models in chatbots, RAG pipelines, or AI agents. CX Codex +1 186installs

Project sponsors

Companies that keep this analytics open