# thorcollective/threat-hunting-mcp-server architecture

> Architecture diagram of the GitHub repository thorcollective/threat-hunting-mcp-server, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thorcollective/threat-hunting-mcp-server
- Repository: https://github.com/thorcollective/threat-hunting-mcp-server

## Overview

Threat Hunting MCP Server exposes behavioral threat-hunting capabilities to an MCP client. The main workflow is a client request routed by the server into hunt interpretation or methodology, with hunt records and query guidance returned; PEAK tools can also generate report artifacts. Separate capabilities cover threat intelligence and community hunts, graph-based analysis, deception, cognitive analyst support, and optional Splunk/Atlassian integrations. The README documents these features, but several implementations were not sampled, so their internal links are omitted; source-index references support the server’s sampled module relationships.

Main entry points: [`src/server.py`](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/server.py) (MCP Server), [`src/tools/peak_tools.py`](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/tools/peak_tools.py) (PEAK Tools), [`src/models/hunt.py`](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/models/hunt.py) (Hunt Records), [`src/frameworks/hunt_framework.py`](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/frameworks/hunt_framework.py) (Hunt Framework)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["MCP Entry"]
  node_server["MCP Server<br/>[server.py]"]
  node_config["Configuration<br/>[config.py]"]
end

subgraph group_hunt["Hunt Methodologies"]
  node_hunt_model["Hunt Records<br/>[hunt.py]"]
  node_validators["Input Validation<br/>[validators.py]"]
  node_framework["Hunt Framework<br/>[hunt_framework.py]"]
  node_tahiti["TaHiTI Workflow<br/>[tahiti.py]"]
  node_peak_tools["PEAK Tools<br/>[peak_tools.py]"]
  node_peak_generator["PEAK Reports<br/>[hunt_generator.py]"]
  node_nlp["Hunt NLP<br/>[hunt_nlp.py]"]
end

subgraph group_intel["Intelligence"]
  node_threat_intel["Threat Intelligence<br/>[threat_intel.py]"]
  node_hearth_tools["HEARTH Tools<br/>[hearth_tools.py]"]
  node_hearth[("HEARTH Knowledge")]
  node_thor["THOR Collective<br/>[thor_collective.py]"]
end

subgraph group_analysis["Analysis Capabilities"]
  node_graph["Attack Graph Analysis<br/>[graph_engine.py]"]
  node_cognition["Analyst Support<br/>[hunter_brain.py]"]
  node_deception["Honeytokens<br/>[honeytokens.py]"]
end

subgraph group_connect["Integrations And Security"]
  node_splunk["Splunk Integration<br/>[splunk.py]"]
  node_atlassian["Atlassian Integration<br/>[atlassian.py]"]
  node_security["Security Controls"]
end

node_client(("MCP Client"))
node_splunk_service(("Splunk"))
node_atlassian_service(("Atlassian"))

node_client -->|"sends requests"| node_server
node_server -->|"loads configuration"| node_config
node_server -->|"routes hunts"| node_framework
node_server -->|"uses intelligence"| node_threat_intel
node_server -->|"processes requests"| node_nlp
node_server -->|"creates records"| node_hunt_model
node_server -->|"validates inputs"| node_validators
node_server -->|"registers tools"| node_hearth_tools
node_server -->|"registers tools"| node_peak_tools
node_server -->|"uses controls"| node_security
node_peak_tools -->|"generates reports"| node_peak_generator
node_peak_tools -->|"builds hunt records"| node_hunt_model
node_framework -->|"creates records"| node_hunt_model
node_hearth_tools -->|"queries hunts"| node_hearth
node_splunk -.->|"queries data"| node_splunk_service
node_atlassian -.->|"connects knowledge"| node_atlassian_service

click node_server "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/server.py"
click node_config "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/config.py"
click node_hunt_model "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/models/hunt.py"
click node_validators "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/models/validators.py"
click node_framework "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/frameworks/hunt_framework.py"
click node_tahiti "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/frameworks/tahiti.py"
click node_peak_tools "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/tools/peak_tools.py"
click node_peak_generator "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/peak/hunt_generator.py"
click node_nlp "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/nlp/hunt_nlp.py"
click node_threat_intel "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/intelligence/threat_intel.py"
click node_hearth_tools "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/tools/hearth_tools.py"
click node_hearth "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/intelligence/hearth_integration.py"
click node_thor "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/intelligence/thor_collective.py"
click node_graph "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/correlation/graph_engine.py"
click node_cognition "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/cognitive/hunter_brain.py"
click node_deception "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/deception/honeytokens.py"
click node_splunk "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/integrations/splunk.py"
click node_atlassian "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/integrations/atlassian.py"
click node_security "https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/security/security_manager.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server,node_config,node_client toneBlue
class node_hunt_model,node_validators,node_framework,node_tahiti,node_peak_tools,node_peak_generator,node_nlp toneAmber
class node_threat_intel,node_hearth_tools,node_hearth,node_thor toneMint
class node_graph,node_cognition,node_deception toneRose
class node_splunk,node_atlassian,node_security,node_splunk_service,node_atlassian_service toneIndigo
```

## Components

### MCP Entry

- [MCP Server](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/server.py): `src/server.py`
- [Configuration](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/config.py): `src/config.py`

### Hunt Methodologies

- [Hunt Records](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/models/hunt.py): `src/models/hunt.py`
- [Input Validation](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/models/validators.py): `src/models/validators.py`
- [Hunt Framework](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/frameworks/hunt_framework.py): `src/frameworks/hunt_framework.py`
- [TaHiTI Workflow](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/frameworks/tahiti.py): `src/frameworks/tahiti.py`
- [PEAK Tools](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/tools/peak_tools.py): `src/tools/peak_tools.py`
- [PEAK Reports](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/peak/hunt_generator.py): `src/peak/hunt_generator.py`
- [Hunt NLP](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/nlp/hunt_nlp.py): `src/nlp/hunt_nlp.py`

### Intelligence

- [Threat Intelligence](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/intelligence/threat_intel.py): `src/intelligence/threat_intel.py`
- [HEARTH Tools](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/tools/hearth_tools.py): `src/tools/hearth_tools.py`
- [HEARTH Knowledge](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/intelligence/hearth_integration.py): `src/intelligence/hearth_integration.py`
- [THOR Collective](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/intelligence/thor_collective.py): `src/intelligence/thor_collective.py`

### Analysis Capabilities

- [Attack Graph Analysis](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/correlation/graph_engine.py): `src/correlation/graph_engine.py`
- [Analyst Support](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/cognitive/hunter_brain.py): `src/cognitive/hunter_brain.py`
- [Honeytokens](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/deception/honeytokens.py): `src/deception/honeytokens.py`

### Integrations And Security

- [Splunk Integration](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/integrations/splunk.py): `src/integrations/splunk.py`
- [Atlassian Integration](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/integrations/atlassian.py): `src/integrations/atlassian.py`
- [Security Controls](https://github.com/thorcollective/threat-hunting-mcp-server/blob/main/src/security/security_manager.py): `src/security/security_manager.py`

### Other components

- **MCP Client**
- **Splunk**
- **Atlassian**

## Connections

- MCP Client → MCP Server: sends requests (evidence: `README.md`)
- MCP Server → Configuration: loads configuration (evidence: `src/server.py`)
- MCP Server → Hunt Framework: routes hunts (evidence: `src/server.py`)
- MCP Server → Threat Intelligence: uses intelligence (evidence: `src/server.py`)
- MCP Server → Hunt NLP: processes requests (evidence: `src/server.py`)
- MCP Server → Hunt Records: creates records (evidence: `src/server.py`)
- MCP Server → Input Validation: validates inputs (evidence: `src/server.py`)
- MCP Server → HEARTH Tools: registers tools (evidence: `src/server.py`)
- MCP Server → PEAK Tools: registers tools (evidence: `src/server.py`)
- MCP Server → Security Controls: uses controls (evidence: `src/server.py`)
- PEAK Tools → PEAK Reports: generates reports (evidence: `src/tools/peak_tools.py`)
- PEAK Tools → Hunt Records: builds hunt records (evidence: `src/tools/peak_tools.py`)
- Hunt Framework → Hunt Records: creates records (evidence: `src/frameworks/hunt_framework.py`)
- HEARTH Tools → HEARTH Knowledge: queries hunts (evidence: `src/tools/hearth_tools.py`)
- Splunk Integration → Splunk: queries data (evidence: `README.md`)
- Atlassian Integration → Atlassian: connects knowledge (evidence: `README.md`)
