Enables containerized deployment of the GTFOBins MCP server with minimal dependencies and proper isolation.
Provides access to the GTFOBins database, a curated collection of Unix binaries hosted on GitHub that can be used to bypass local security restrictions in misconfigured systems.
GTFOBins MCP Server
A Model Context Protocol (MCP) server that provides seamless access to the GTFOBins database through Claude Desktop. Query exploitation techniques, search for specific binaries, and explore privilege escalation methods directly from your Claude conversations.
What is GTFOBins? GTFOBins is a curated list of Unix binaries that can be used to bypass local security restrictions in misconfigured systems. This MCP server brings that knowledge directly into Claude Desktop.
✨ Features
- 🔍 Smart Search: Find binaries by name, function type, or technique
- 📋 Function Filtering: List binaries by specific capabilities (shell, file-upload, SUID, etc.)
- 📖 Detailed Information: Get complete exploitation techniques with code examples
- 🐳 Dockerized: Clean, isolated deployment with minimal dependencies
- 🍎 Apple Silicon Optimized: Native ARM64 support for M1/M2/M3 Macs
- 🚀 On-Demand: No persistent containers - runs fresh for each session
🎯 Use Cases
- Security Research: Quickly lookup exploitation techniques during assessments
- Red Team Operations: Find creative ways to abuse legitimate system utilities
- Blue Team Defense: Understand what attackers can do with common binaries
- Educational: Learn about Unix security and privilege escalation vectors
- CTF Competitions: Fast reference for challenge solving
🚀 Quick Start
Prerequisites
- Docker installed and running
- Claude Desktop application
- Apple Silicon Mac (M1/M2/M3) or compatible system
1. Setup Project
2. Build Docker Image
3. Configure Claude Desktop
Edit your Claude Desktop configuration file:
Location: ~/Library/Application Support/Claude/claude_desktop_config.json
4. Restart Claude Desktop
Completely quit and restart Claude Desktop to load the new MCP server.
💬 Usage Examples
Once configured, you can interact with GTFOBins directly through Claude Desktop:
Search for Binaries
Filter by Function Type
Get Detailed Information
🛠 Available Tools
The MCP server provides three main tools:
1. search_gtfobins
Search the database by binary name or technique keywords.
Parameters:
query
(required): Search termfunction_type
(optional): Filter by function type
Example: Search for "python" binaries with "shell" function
2. get_binary_details
Get complete exploitation information for a specific binary.
Parameters:
binary
(required): Name of the binary
Example: Get all techniques available for "wget"
3. list_binaries_by_function
List all binaries that support a specific function type.
Parameters:
function
(required): One of: shell, file-upload, file-download, file-write, file-read, library-load, suid, sudo, capabilities
Example: List all binaries with SUID exploitation techniques
📁 Project Structure
🔧 Architecture
The MCP server works by:
- Data Loading: Clones the GTFOBins repository during Docker build
- Parsing: Processes all markdown files with YAML frontmatter
- Indexing: Creates searchable data structures in memory
- MCP Interface: Exposes search/query capabilities through MCP tools
- On-Demand Execution: Runs fresh containers for each Claude Desktop session
🐛 Troubleshooting
Common Issues
"No such container" error:
- The new configuration uses
docker run
instead ofdocker exec
- No persistent container needed - each session runs fresh
"Container not running" error:
- Ensure you're using the updated Claude Desktop configuration
- Check that Docker is running:
docker ps
Build failures:
- Ensure you're on Apple Silicon and using the
--platform linux/arm64
flag - Check Docker has sufficient disk space for the image
MCP connection issues:
- Verify the claude_desktop_config.json syntax is valid JSON
- Completely restart Claude Desktop after configuration changes
- Check Claude Desktop logs for specific error messages
Debug Commands
Getting Help
If you encounter issues:
- Check the Claude Desktop logs for specific error messages
- Verify all files are correctly placed in the project directory
- Ensure Docker is running and has sufficient resources
- Test the Docker image independently before connecting to Claude
🔒 Security Considerations
Important Security Notes:
- This server provides read-only access to GTFOBins data
- GTFOBins contains legitimate system administration techniques that could be misused
- Use responsibly and in accordance with your organization's security policies
- Intended for authorized security testing and educational purposes only
- The Docker container runs with minimal privileges and no network access by default
Best Practices:
- Only use in authorized testing environments
- Understand your organization's security policies before deployment
- Keep the Docker image updated with latest GTFOBins data
- Monitor usage for compliance with security guidelines
📄 License & Attribution
This project is for educational and legitimate security research purposes.
- GTFOBins Data: Subject to its own license terms at GTFOBins.github.io
- MCP Server Code: Educational use - please respect responsible disclosure practices
- Docker Configuration: Freely usable for legitimate security research
🤝 Contributing
Improvements welcome! Areas for contribution:
- Additional search capabilities
- Better error handling and logging
- Performance optimizations
- Extended filtering options
- Integration with other security tools
📚 Learn More
- GTFOBins: https://gtfobins.github.io
- Model Context Protocol: https://modelcontextprotocol.io
- Claude Desktop: https://claude.ai/desktop
- Docker: https://docs.docker.com
⚡ Ready to explore? Ask Claude: "What GTFOBins techniques are available for your favorite Unix utility?"
This server cannot be installed
A server that provides seamless access to the GTFOBins database through Claude Desktop, allowing users to query exploitation techniques, search for specific binaries, and explore privilege escalation methods directly from Claude conversations.
Related MCP Servers
- -securityFlicense-qualityA server that enables interaction with PostgreSQL, MySQL, MariaDB, or SQLite databases through Claude Desktop using natural language queries.Last updated -Python
- AsecurityAlicenseAqualityEnables Claude to interact with FTP servers through natural language commands, allowing users to list directories, download/upload files, create directories, and delete files/directories on FTP servers.Last updated -68JavaScriptMIT License
- -securityAlicense-qualityAn interface for interacting with Google Firestore databases directly through Claude Desktop, supporting operations like creating, reading, updating, and querying documents across collections.Last updated -JavaScriptMIT License
- -securityFlicense-qualityProvides Claude Desktop with secure access to multiple database connections, allowing users to query MySQL, PostgreSQL, SQLite, and SQL Server databases directly through natural language.Last updated -