HexStrike AI MCP Server

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.

Category
访问服务器

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

  1. Download this MCP server:
git clone https://github.com/b-bogus/hexstrike-ai_mcp_server.git
cd hexstrike-ai_mcp_server
  1. Install dependencies:
pip install -r requirements.txt
  1. Start HexStrike Flask API (on same machine):
# Download and run HexStrike AI from https://github.com/0x4m4/hexstrike-ai
python3 hexstrike_server.py
  1. 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 scanning
  • rustscan_scan() - Ultra-fast port scanning
  • amass_enum() - Subdomain enumeration
  • subfinder_scan() - Passive subdomain discovery

Web Application Security

  • gobuster_scan() - Directory enumeration
  • nuclei_scan() - Vulnerability scanning with 4000+ templates
  • sqlmap_scan() - SQL injection testing
  • httpx_scan() - HTTP probing and technology detection

Binary Analysis

  • ghidra_analyze() - Advanced reverse engineering
  • radare2_analyze() - Binary analysis framework
  • gdb_debug() - GNU debugger with exploit development
  • volatility_analyze() - Memory forensics

Cloud Security

  • prowler_assess() - AWS/Azure/GCP security assessment
  • trivy_scan() - Container vulnerability scanning
  • kube_hunter_scan() - Kubernetes penetration testing

AI Intelligence & Workflows

  • ai_analyze_target() - AI-powered target analysis
  • ai_select_tools() - Intelligent tool selection
  • bugbounty_reconnaissance() - Bug bounty hunting workflows
  • ctf_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 /health endpoint 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:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

Support

For support and questions:

  • Create an issue on GitHub
  • Review the troubleshooting section
  • Check the setup documentation

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选