Mcpsec

general MCP Server

An AI-driven dynamic protocol fuzzer for the Model Context Protocol (MCP). Prove runtime exploitability by discovering state violations, transport crashes, and application-layer logic flaws (SSRF, LFI) before your AI agents do.

VerifiedInstall ReadyReviewed
generalgeneralaws
8 views22 stars3 forksMIT

Why This Matters

Discovered via github-seeds:mcp-hot and last synced 3mo ago.

VerifiedInstall ReadyReviewed
Source
github-seeds:mcp-hot
Stars
22
Last synced
3mo ago
Install
Instructions detected

Install

1. Install the package

pip install mcpsec
30
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (30)

Deserialization

~60

Patterns

Languages

Scanner

Description

description-prompt-injection

LLM manipulation via descriptions

idor

Insecure Direct Object Reference detection

Sanitizers

105

sql

SQL Injection (Error, Time, Boolean, Stacked)

SSRF

~80

command-injection

OS command injection with 138 payloads

capability-escalation

Undeclared capability abuse

Medium

[Issue #1765](https://github.com/modelcontextprotocol/typescript-sdk/issues/1765)

deserialization

Pickle, XXE, and unsafe YAML parsing

MCP-Specific

~45

auth-audit

Missing authentication, dangerous tool combos

rag-poisoning

Identifies dangerous Write→Read data flows

XXE

~25

ssrf

Server-Side Request Forgery with 81 payloads

code-execution

Detects `eval()`, `exec()`, and `compile()` sinks

Target

Vulnerability

path-traversal

Directory traversal with 104 payloads

chains

Dangerous tool combination detection

181

Python, JS/TS, Go, Rust, Java, C, C#, Ruby, PHP

prompt-injection

Hidden instructions in tool descriptions

resource-ssrf

SSRF via MCP resource URIs

info-leak

Environment variable and credential disclosure

template-injection

Targets SSTI and string formatting vulnerabilities

High

[Issue #52](https://github.com/radareorg/radare2-mcp/issues/52)

Critical

[Issue #45](https://github.com/radareorg/radare2-mcp/issues/45) - Fixed in [commit 482cde6](https://github.com/radareorg/radare2-mcp/commit/482cde6)

mcp-server-fetch

61 crash cases, exception handling DoS

mcp-server-git

61 crash cases