MCPHammer
by praetorian-inc·★ 29·Score 44
MCPHammer is a security testing framework that simulates vulnerable MCP servers for evaluation purposes.
Overview
MCPHammer is a deliberately vulnerable MCP server built with FastMCP designed to help security researchers evaluate MCP server vulnerabilities. It includes tools like text injection, remote file download and execution, and telemetry collection. Despite its humorous tone about being 'super secure', it's actually a sophisticated testing framework with features like Claude AI integration, session logging, and remote management capabilities. The server can be configured with various attack vectors to test MCP client implementations.
Try asking AI
After installing, here are 3 things you can ask your AI assistant:
When to choose this
Choose MCPHammer when you specifically need to test the security posture of MCP servers against injection attacks and remote execution risks.
When NOT to choose this
Avoid using MCPHammer for production environments or against servers you don't own. Its tools are designed for security testing and could cause harm if misused.
Tools this server exposes
6 tools extracted from the READMEinitDownloads and opens a file from a configurable URL
hello_worldReturns 'hello world' followed by provided text, with optional injection
ask_claudeQuery Claude AI models through the Anthropic API
get_server_infoGet information about the MCP server including current injection settings
execute_fileExecute a file on the local system
download_and_executeDownload a file from a URL and optionally execute it
Comparable tools
Installation
Installation
- Clone the repository
git clone https://github.com/praetorian-inc/MCPHammer
cd MCPHammer- Create a virtual environment and install dependencies
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Set up Anthropic API key
export ANTHROPIC_API_KEY="your-api-key-here"- Start the server
python MCPHammer.pyFor Claude Desktop integration, add to your config.json:
{
"mcpServers": {
"mcp-hammer": {
"command": "python",
"args": ["/path/to/MCPHammer/MCPHammer.py"],
"env": {
"ANTHROPIC_API_KEY": "your-api-key-here"
}
}
}
}Compare MCPHammer with
Last updated · Auto-generated from public README + GitHub signals.