Sandbox
@appsecco/pentesting-mcp-servers-checklist

Checklist for pentesting MCP servers

This repo is a practical guide for testing MCP servers across local and remote setups. It organizes checks for proxy inspection, auth bypass, tool injection, path traversal, leakage, and concurrency so you can assess them in a repeatable way.

40 stars7 forksUpdated 5mo ago
Who it's for

Builders who assess MCP servers, agents, and integrations for security issues.

What it delivers

You can run structured MCP security reviews instead of relying on ad hoc testing.

What it does

Traffic analysis checks

Covers STDIO and HTTP proxy inspection, context injection, and TLS enforcement.

Authentication and authorization review

Includes auth bypass, OAuth flows, IDOR, and privilege escalation checks.

Tool security review

Covers input validation, output and schema validation, command injection, path traversal, SSRF, SQLi, and SSTI.

Context and namespace testing

Checks for cross-user leakage, namespace separation, session persistence, and confused deputy issues.

Advanced attack coverage

Includes context pollution, prototype pollution, GraphQL injection, and other higher-risk patterns.

README

README

Version 3 is out now!

A practical, community-driven checklist for pentesting Model Context Protocol (MCP) servers. This guide covers local and remote MCP server risks, traffic analysis, tool-call behaviors, context boundaries, authorization flows, and unsafe code paths.

Originally created for the OWASP Bay Area talk on Pentesting MCP Servers (Oct 2025), this checklist is designed for practitioners performing assessments on MCP-based tools, agents, and integrations.

Why this exists

MCP servers are becoming the new execution layer for AI agents. This means they expose:

  • File system access
  • Tool execution
  • Remote APIs
  • STDIO and HTTP bridges
  • Autonomous actions initiated by LLMs

Because of this, MCP servers introduce a wide attack surface that security testers need structured guidance for. This checklist helps you perform systematic and repeatable assessments.

What this checklist covers

  1. Traffic Analysis — proxy inspection of STDIO/HTTP, context injection, TLS enforcement
  2. Authentication & Authorization — auth bypass, OAuth flows, IDOR, privilege escalation
  3. Local MCP Server File and Code Review — embedded secrets, dangerous functions, dependency audits
  4. MCP Tool Behavior and Functionality — tool boundary validation, chaining, local RCE
  5. Tool Security — Input Validation — command injection, path traversal, SSRF, SQLi, SSTI
  6. Tool Security — Output & Schema Validation — schema mismatches, sensitive data leakage, prompt injection via output
  7. Tool Injection — prompt injection via tool names/descriptions, tool shadowing, name collisions
  8. File System & Network Access — path traversal, scope enforcement, DNS rebinding
  9. Context Isolation — cross-user leakage, namespace separation, session persistence
  10. Secret & Credential Handling — hardcoded secrets, log exposure, token caching
  11. Logging & Monitoring — log injection, rate limiting, access controls
  12. Race Conditions & Concurrency — TOCTOU, parallel invocation, resource exhaustion
  13. Advanced Attacks — context pollution, confused deputy, prototype pollution, GraphQL injection

How to use this repo

  • Use the CHECKLIST.md for field assessments
  • Fork and adapt it for your team
  • Submit PRs with improvements
  • Open issues for new MCP attack patterns

Contribute

We welcome:

  • New checklist items
  • Additional MCP server categories
  • Tooling contributions
  • Red-team test cases
  • Sanitized findings

License

This project is licensed under CC BY 4.0. You may remix, adapt, and build upon this checklist for any purpose, even commercially, as long as you provide attribution.

Maintainers

Appsecco

Files in the repo

Repository payload3 top-level entries
  • CHECKLIST.md
  • LICENSE-CC-BY-4.0
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tutorials & guides

microsoft/
mcp-for-beginners
microsoft/mcp-for-beginnersTutorials & Guides

This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.

17k
OWASP/
OWASP-MCP-Governance-and-Risk-Project

A practical governance framework for organizations adopting the Model Context Protocol (MCP), the open standard that lets AI agents connect to external tools, data sources, and systems.

77
MCP-Manager/
MCP-Checklists
MCP-Manager/MCP-ChecklistsTutorials & Guides

A set of MCP security checklists and guides for agents and MCP servers.

196
shareAI-lab/
learn-claude-code

Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1

77k