Trellix HX MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
⨠What is this?
Trellix HX MCP Server bridges the gap between AI assistants and your on-premises Trellix (FireEye) HX endpoint security appliance. Using the Model Context Protocol, it exposes 31 security tools that any MCP-compatible AI (Claude, Cursor, Windsurf, etc.) can use to:
š Hunt threats across your fleet of endpoints
šØ Triage alerts and drill into detection details
š”ļø Contain compromised hosts with network isolation
š¦ Acquire forensic evidence remotely
š Search IOCs across enterprise-wide sweeps
š§ Analyze indicators and detection conditions
Key Features
Feature | Description |
š Token-based auth | Automatic session token acquisition & refresh via |
ā” Rate limiting | 5 req/s token-bucket protects your appliance from overload |
šÆ Structured errors | Clean, actionable error messages parsed from HX API responses |
š Hostname resolution | Built-in |
š¦ Modern packaging | Install via |
Related MCP server: Megaraptor MCP
š¬ Demo
AI Security Analyst Chat
Ask questions in natural language ā the AI automatically calls the right HX tools and summarizes results:
The chat client uses OpenAI-compatible APIs (GPT-4o, GPT-5, Azure OpenAI, etc.) with automatic function calling to invoke the right MCP tools.
Interactive Test Runner
Validate all 31 tools against your real appliance in seconds:
Run
python test_tools.pyfor batch mode orpython test_tools.py -ifor interactive pick-and-run.
š”ļø Tools (31)
Category | Tools | Description |
System |
| Appliance version & health metrics |
Hosts |
| Hostname resolution, endpoint inventory & groups |
Alerts |
| Alert triage, drilldown & network containment |
Intel |
| IOC & threat indicator management |
Forensics |
| Remote evidence collection & download |
Search |
| Enterprise IOC sweeps & policies |
Scripts |
| Response script management |
resolve_hostname
Converts a hostname to its HX agent ID. Use this before any host-scoped tool.
resolve_hostname("LAPTOP-DEV-J09")
ā { agent_id: "xK9f2qBY...", hostname: "LAPTOP-DEV-J09", ip: "10.0.12.89", os: "Windows 11" }get_alert_details
Drill into a specific alert by ID for full event context.
get_alert_details(alert_id=8421)
ā Complete alert record: indicator, host, event, timestamps, resolutionget_indicator_details
Get full indicator definition including all conditions and platforms.
get_indicator_details(category="Custom", indicator_name="suspicious-dns-beacon")
ā Conditions, platforms, severity, descriptiondownload_file_acquisition
Download a completed file acquisition as a ZIP archive.
download_file_acquisition(acquisition_id=1234)
ā "Downloaded acquisition 1234 (2,456,789 bytes)"ā” Quick Start
1. Clone & Install
git clone https://github.com/bry4nsec/trellix-hx-mcp.git
cd trellix-hx-mcp
python3 -m venv venv
source venv/bin/activate
# Option A: Modern install (recommended)
pip install . # core MCP server
pip install '.[chat]' # + LLM chat client
# Option B: Traditional install
pip install -r requirements.txt2. Configure
cp .env.example .env
# Edit .env with your HX appliance credentials# .env
HX_HOST=https://your-hx-appliance.example.com
HX_USER=your_api_username
HX_PASS=your_api_password
# Optional: for the LLM chat client (chat.py)
LLM_ENDPOINT=https://api.openai.com/v1
LLM_MODEL=gpt-4o
LLM_API_KEY=your_api_key_here3. Verify Connection
python test_tools.py # run all 28 read-only tools
python test_tools.py -i # interactive mode with write toolsš Integration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"trellix-hx": {
"command": "/path/to/trellix-hx-mcp/venv/bin/python",
"args": ["/path/to/trellix-hx-mcp/server.py"],
"env": {
"HX_HOST": "https://your-hx-appliance.example.com",
"HX_USER": "your_api_user",
"HX_PASS": "your_api_pass"
}
}
}
}Cursor / Windsurf / Continue.dev
All MCP-compatible editors support a similar configuration. Point the MCP client at server.py with your environment variables.
MCP Inspector
mcp dev server.pyOpens an interactive web UI to browse and test all 31 tools manually.
Standalone LLM Chat
python chat.pyInteractive terminal chat with automatic function calling. Supports any OpenAI-compatible API endpoint (OpenAI, Azure OpenAI, VortexAI, local models via Ollama, etc.).
šļø Architecture
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Client (Claude, Cursor, etc.) ā
ā ā
ā "Show me hosts with recent alerts" ā
ā ā ā
ā LLM decides to call: resolve_hostname ā list_alerts ā
ā ā ā
ā Tool results ā LLM summarizes ā User sees clean output ā
āāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Protocol (stdio / SSE)
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā server.py (FastMCP) ā
ā ā
ā āāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāāāāāāā ā
ā ā Token ā ā Rate ā ā Structured ā ā
ā ā Auth ā ā Limiter ā ā Error Handler ā ā
ā ā (auto) ā ā (5 req/s) ā ā (HXAPIError) ā ā
ā āāāāāā¬āāāāāā āāāāāāāā¬āāāāāāāā āāāāāāāāāā¬āāāāāāāāāāāā ā
ā āāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāā ā
ā ā¼ ā
ā _query(method, endpoint) ā
ā ā ā
ā āāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā 31 Tools: resolve_hostname, list_alerts, ā ā
ā ā get_alert_details, list_indicators, ā ā
ā ā manage_containment, trigger_triage, ... ā ā
ā āāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā HTTPS + X-FeApi-Token
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Trellix HX On-Prem Appliance ā
ā (HX v3 REST API) ā
ā ā
ā /hx/api/v3/hosts /hx/api/v3/alerts ā
ā /hx/api/v3/indicators /hx/api/v3/acqs/files ā
ā /hx/api/v3/searches /hx/api/v3/scripts ... ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāš Project Structure
trellix-hx-mcp/
āāā server.py # MCP server ā 31 tools, token auth, rate limiting
āāā test_tools.py # Interactive test runner (batch + pick-and-run)
āāā chat.py # LLM chat client (OpenAI-compatible)
āāā pyproject.toml # Modern Python packaging (pip install .)
āāā requirements.txt # Fallback dependency list
āāā assets/ # README images and demo recordings
āāā .env.example # Template credentials (safe to commit)
āāā .gitignore # Protects .env, venv/, __pycache__/š Security Notes
Never commit your .env file. It contains your real HX appliance credentials. The .gitignore is already configured to exclude it.
Authentication: Initial token via HTTP Basic Auth, then session tokens (
X-FeApi-Token) for all subsequent requestsTLS:
verify=Falsefor self-signed certificates (standard in on-prem deployments)Rate Limiting: Token-bucket at 5 req/s to prevent appliance overload
Write Safety: Destructive tools (
manage_containment,trigger_triage,create_file_acquisition) are documented with ā ļø warnings and require explicit confirmation in the test runner
š Requirements
Requirement | Details |
Python | 3.10+ |
HX Appliance | Trellix HX On-Prem with API v3 access |
API User | Account with appropriate role permissions |
Network | HTTPS connectivity to the appliance |
š¤ Contributing
Fork the repository
Create your feature branch (
git checkout -b feat/new-tool)Test against a real appliance with
python test_tools.pySubmit a Pull Request
š License
MIT ā see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Enrich, search, assess, and manage threat intelligence through 80+ typed MCP tools.
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Hosted MCP server from TwitterAPI.io that gives AI agents read-only access to Twitter/X data. 12 tools: tweet search with X operators, user profiles, a user's latest tweets, followers and followings, replies, quotes, retweeters, mentions and trends. Connect at https://mcp.twitterapi.io/mcp with a TwitterAPI.io API key or account sign-in; usage is paid per result returned. Separately, TwitterAPI.io also offers x402 pay-per-call HTTP endpoints (tweet search, user info, a user's latest tweets) paid in USDC on Base or Solana with no account or API key; see https://docs.twitterapi.io/x402-pay-per-call. The MCP server itself uses an API key or sign-in.
Read-only search of 2,189 AI agent tools (MCP servers, x402 APIs) with daily automated trust scores.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides LLMs with access to Threat.Zone's malware analysis capabilities through standardized MCP tools, allowing for file and URL analysis, sandbox execution, and threat intelligence retrieval.3114GPL 3.0
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with the Velociraptor digital forensics and incident response platform for endpoint management and threat hunting. It supports artifact collection, VQL query execution, and automated forensic investigation workflows.353MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Splunk SIEM and TheHive SOAR through a unified MCP interface, providing 12 tools for alert triage, case management, and security operations.MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for Check Point Harmony Endpoint that exposes policy, asset, vulnerability, quarantine, and remediation API methods as MCP tools, with per-request credential isolation and automatic two-step authentication.-