GitHub - redwaysecurity/the-hive-mcp-server: This project provides a standardized way to interact with TheHive's security incident response platform through the Model Context Protocol. (original) (raw)

TheHive MCP Server

A Model Context Protocol (MCP) server implementation for TheHive, enabling seamless integration with MCP clients. This project provides a standardized way to interact with TheHive's security incident response platform through the Model Context Protocol.

Implemented MCP Tools

The following MCP tools are implemented and available:

Setup

Dependencies

This project depends on the official TheHive client library (thehive4py). It will be automatically installed when you install this package.

Environment Variables

Set the following environment variables:

HIVE_URL= # Required: TheHive instance URL (e.g., https://thehive.company.com:9000) HIVE_API_KEY= # Required: API key for authenticating with TheHive instance

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{ "mcpServers": { "thehive-mcp-server": { "command": "uvx", "args": ["thehive-mcp-server"], "env": { "HIVE_URL": "https://your-thehive-host:9000", "HIVE_API_KEY": "your-api-key" } } } }

Alternative configuration using uv:

{ "mcpServers": { "thehive-mcp-server": { "command": "uv", "args": [ "--directory", "/path/to/mcp", "run", "python", "-m", "thehive_mcp.main" ], "env": { "HIVE_URL": "https://your-thehive-host:9000", "HIVE_API_KEY": "your-api-key" } } } }

Replace /path/to/mcp with the actual path to the root directory where you've cloned the repository.

Manual Execution

You can also run the server manually:

Install dependencies

pip install .

Set environment variables

export HIVE_URL="http://localhost:9000" export HIVE_API_KEY="your-api-key"

Run the server

python -m thehive_mcp

License

This project is licensed under the MIT License. See LICENSE file for details.