HexStrike AI MCP Server
AI-powered cybersecurity automation platform with 150+ security tools and 12+ autonomous AI agents for penetration testing, vulnerability assessment, and bug bounty hunting. Enables comprehensive security testing through intelligent tool selection and automated workflows.
README
HexStrike AI MCP Server
A standalone network MCP (Model Context Protocol) server that provides direct access to HexStrike AI security tools without requiring local client files.
Overview
This repository contains a network-accessible MCP server that connects to HexStrike AI's Flask API backend and exposes 150+ security tools through the MCP protocol. This allows AI agents like Claude Code to access powerful cybersecurity tools remotely.
Architecture
AI Agent (Claude Code) ----MCP over network----> hexstrike_mcp_server.py:8889
|
HTTP requests
↓
HexStrike Flask API:8888
↓
Security Tools (nmap, etc.)
Features
- Network MCP Server: Direct MCP access over TCP/IP - no local files required
- 150+ Security Tools: Complete access to HexStrike AI's security arsenal
- AI Intelligence: AI-powered target analysis and tool selection
- Specialized Workflows: Bug bounty hunting, CTF challenges, penetration testing
- Real-time Monitoring: Process management and telemetry
- Zero Client Setup: No local HexStrike files needed on client machines
Quick Start
Prerequisites
- Python 3.8+
- HexStrike AI Flask server running on the same machine
- Required Python packages:
requests,fastmcp
Installation
- Download this MCP server:
git clone https://github.com/b-bogus/hexstrike-ai_mcp_server.git
cd hexstrike-ai_mcp_server
- Install dependencies:
pip install -r requirements.txt
- Start HexStrike Flask API (on same machine):
# Download and run HexStrike AI from https://github.com/0x4m4/hexstrike-ai
python3 hexstrike_server.py
- Start the MCP server:
python3 hexstrike_mcp_server.py --host 0.0.0.0 --port 8889
Client Configuration
For Claude Code in VS Code:
Add to your VS Code user settings (Ctrl+Shift+P → "Preferences: Open User Settings (JSON)"):
{
"mcp.servers": {
"hexstrike-ai": {
"command": "stdio",
"args": [],
"env": {
"MCP_SERVER_URL": "http://YOUR_SERVER_IP:8889"
},
"description": "HexStrike AI MCP Server",
"timeout": 300
}
}
}
Available Tools
Network & Reconnaissance
nmap_scan()- Advanced port scanningrustscan_scan()- Ultra-fast port scanningamass_enum()- Subdomain enumerationsubfinder_scan()- Passive subdomain discovery
Web Application Security
gobuster_scan()- Directory enumerationnuclei_scan()- Vulnerability scanning with 4000+ templatessqlmap_scan()- SQL injection testinghttpx_scan()- HTTP probing and technology detection
Binary Analysis
ghidra_analyze()- Advanced reverse engineeringradare2_analyze()- Binary analysis frameworkgdb_debug()- GNU debugger with exploit developmentvolatility_analyze()- Memory forensics
Cloud Security
prowler_assess()- AWS/Azure/GCP security assessmenttrivy_scan()- Container vulnerability scanningkube_hunter_scan()- Kubernetes penetration testing
AI Intelligence & Workflows
ai_analyze_target()- AI-powered target analysisai_select_tools()- Intelligent tool selectionbugbounty_reconnaissance()- Bug bounty hunting workflowsctf_solve_challenge()- Automated CTF challenge solving
Usage Example
Once configured, use with any MCP-compatible AI agent:
User: "Scan example.com for open ports and vulnerabilities"
AI Agent: I'll perform a comprehensive scan of example.com using HexStrike tools.
[Agent automatically calls nmap_scan(), then nuclei_scan(), analyzes results, and provides detailed security assessment]
Command Line Options
python3 hexstrike_mcp_server.py [options]
Options:
--host HOST Host to bind to (default: 0.0.0.0)
--port PORT Port to listen on (default: 8889)
--api-url URL HexStrike Flask API URL (default: http://localhost:8888)
--debug Enable debug logging
--help Show help message
Security Considerations
⚠️ Important: This tool provides AI agents with access to powerful security tools.
- Authorized Use Only: Only use on systems you own or have explicit permission to test
- Network Security: Run on isolated networks or with proper firewall rules
- Authentication: Consider implementing authentication for production deployments
- Monitoring: Monitor AI agent activities through the telemetry endpoints
Troubleshooting
Connection Issues:
- Verify HexStrike Flask API is running on port 8888
- Check firewall settings for port 8889
- Test connectivity:
curl http://SERVER_IP:8889/health
No Tools Available:
- Ensure security tools are installed on the server machine
- Check
/healthendpoint for tool availability status
Client Connection Failed:
- Verify MCP client configuration
- Check server logs for connection attempts
- Test with debug mode:
--debug
Related Projects
- HexStrike AI: https://github.com/0x4m4/hexstrike-ai - The main security tools framework
- FastMCP: MCP server framework used by this project
License
MIT License - see LICENSE file for details.
Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a pull request
Support
For support and questions:
- Create an issue on GitHub
- Review the troubleshooting section
- Check the setup documentation
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.