
gbrigandi/mcp-server-thehive
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP Server for TheHive
개요
An MCP (Model Context Protocol) server that provides AI models and automation tools with access to TheHive incident response platform. This server acts as a bridge between MCP clients (like AI assistants) and TheHive, allowing them to: - Retrieve and analyze security alerts - Access case information - Promote alerts to cases - Perform incident response operations 1. - Retrieve a list of alerts from TheHive - Optional limit parameter (default: 100) - Returns formatted alert information including ID, title, severity, and status 2. - Get detailed information about a specific alert - Required alert_id parameter - Returns comprehensive alert details 3. - Retrieve a list of cases from TheHive - Optional limit parameter (default: 100) - Returns formatted case information 4. - Get detailed information about a specific case - Required case_id parameter - Returns comprehensive case details 5.
README
원문 README의 일부입니다. 원문 보기.
MCP Server for TheHive
An MCP (Model Context Protocol) server that provides AI models and automation tools with access to TheHive incident response platform.
Overview
This server acts as a bridge between MCP clients (like AI assistants) and TheHive, allowing them to:
- Retrieve and analyze security alerts
- Access case information
- Promote alerts to cases
- Perform incident response operations
Features
Available Tools
-
get_thehive_alerts - Retrieve a list of alerts from TheHive
- Optional
limitparameter (default: 100) - Returns formatted alert information including ID, title, severity, and status
- Optional
-
get_thehive_alert_by_id - Get detailed information about a specific alert
- Required
alert_idparameter - Returns comprehensive alert details
- Required
-
get_thehive_cases - Retrieve a list of cases from TheHive
- Optional
limitparameter (default: 100) - Returns formatted case information
- Optional
-
get_thehive_case_by_id - Get detailed information about a specific case
- Required
case_idparameter - Returns comprehensive case details
- Required
-
promote_alert_to_case - Promote an alert to a case
- Required
alert_idparameter - Returns information about the newly created case
- Required
-
create_thehive_case - Create a new case in TheHive
- Required
titleanddescriptionparameters - Optional parameters:
severity,tags,tlp,pap,status,assignee,case_template,start_date - Returns information about the newly created case
- Required
Installation
Prerequisites
- Access to a TheHive 5 instance
- Valid TheHive API token
Downloading Pre-compiled Binaries
You can download pre-compiled binaries for various operating systems from the GitHub Releases page. Download the appropriate binary for your system, make it executable, and place it in your desired location.
Building from Source
git clone
cd mcp-server-thehive
cargo build --release
Configuration
The server requires the following environment variables:
THEHIVE_URL- TheHive API base URL (default:http://localhost:9000/api)THEHIVE_API_TOKEN- TheHive API token (required)VERIFY_SSL- Whether to verify SSL certificates (default:false)RUST_LOG- Logging level (optional, e.g.,debug,info)
Environment File
Create a .env file in the project root:
THEHIVE_URL=https://your-thehive-instance.com/api
THEHIVE_API_TOKEN=your-api-token-here
VERIFY_SSL=true
RUST_LOG=info
Getting a TheHive API Token
- Log into your TheHive instance
- Go to User Settings → API Keys
- Click Create API Key
- Copy the generated token and use it as
THEHIVE_API_TOKEN
Usage
Running the Server
# Using cargo
cargo run
# Using the built binary
./target/release/mcp-server-thehive
Integration with MCP Clients
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"thehive": {
"command": "/path/to/mcp-server-thehive",
"env": {
"THEHIVE_URL": "https://your-thehive-instance.com:9000/api",
"THEHIVE_API_TOKEN": "your-api-token-here"
}
}
}
}