
The Hive 的 MCP 服务器
概览
一个MCP(模式上下文协议)服务器,为AI模型和自动化工具提供访问"TheHive"事件响应平台的机会. 这个服务器充当了MCP客户端(类似于AI助手)和TheHive之间的桥梁,允许他们: - 获取和分析安全警报 - 获取案件信息 - 促进对案件的警报 - 开展事件应对行动 1. 从TheHive - 可选限制参数(默认:100)中获取提醒列表 - 返回格式化提醒信息,包括ID、标题、严重程度和状态 2. 获取特定警报的详细信息 - 需要的提醒 id参数 - 返回全面提醒的细节 3. 从TheHive - 可选限制参数(默认:100)中获取案件列表 - 返回格式化的案件信息 4. 获取具体案件的详细资料----必要案件 id参数----返回综合案件细节 5 (韩语).
概述(AI 翻译)
一个MCP(模式上下文协议)服务器,为AI模型和自动化工具提供访问"TheHive"事件响应平台的机会.
□ 概览
这个服务器充当了MCP客户端(类似于AI助手)和TheHive之间的桥梁,允许他们:
- 获取和分析安全警报
- 查阅案件资料
- 促进对案件的警报
- 开展事件应对行动
□ 特性
可用的工具
- get thehive aerts - 从TheHive获取一份警报列表
- 可选 [[T0] 参数(默认:100)
- 返回格式化警报信息,包括身份证、头衔、严重程度和状况
- get thehive aert by id - 获取特定警报的详细信息
- 需要的[[T1]参数
- 返回全面警报细节
- Get thehive cases - 从TheHive获取案件清单
- 可选
limit参数(默认:100) - 回归格式化的案件信息
- get thehive case by id - 获得具体案件的详细资料
- 需要的[[T3]参数
- 回返综合案件细节
- ** 促进 提醒 对 案件** - 促进对案件的警惕
- 需要的[[T4]参数
本页由 AI 翻译,技术细节请以原文为准。
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 新手?先看 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"
}
}
}
}