Skip to main content
Glama

caldera-mcp

MCP server for MITRE Caldera adversary emulation platform.

Connects any MCP-compatible AI client (Claude, Cursor, VS Code, etc.) to a running Caldera instance. Build attack scenarios from natural language, inspect connected agents, and manage operations — all through conversation.

Important: This tool connects an AI to a live adversary emulation platform. Only point it at Caldera instances you own and are authorized to operate. Always review scope before executing any operation.


Tools (17)

Group

Tools

Health

caldera_health_check

Agents

caldera_list_agents, caldera_get_agent

Abilities

caldera_list_abilities, caldera_get_ability, caldera_create_ability, caldera_delete_ability

Adversaries

caldera_list_adversaries, caldera_get_adversary, caldera_create_adversary, caldera_update_adversary, caldera_delete_adversary

Operations

caldera_list_operations, caldera_get_operation, caldera_create_operation, caldera_set_operation_state, caldera_get_operation_results, caldera_delete_operation

Key behaviors:

  • caldera_list_abilities supports filters: technique_id, tactic, platform

  • caldera_create_operation defaults to state="paused" — operations never start automatically

  • Input validation enforced on technique IDs (ATT&CK format), platforms, and executors


Related MCP server: Letta MCP Server

Requirements

  • Python 3.12+ or Docker

  • A running MITRE Caldera instance (v5.x)

  • The Caldera red team API key


Installation

Requires uv.

CALDERA_URL=http://my-caldera:8888 \
CALDERA_API_KEY=your-red-api-key \
uvx caldera-mcp

pip

pip install caldera-mcp
CALDERA_URL=http://my-caldera:8888 CALDERA_API_KEY=your-red-api-key caldera-mcp

Docker (SSE / server mode)

docker run --rm \
  -e CALDERA_URL=http://my-caldera:8888 \
  -e CALDERA_API_KEY=your-red-api-key \
  -p 8081:8081 \
  ghcr.io/cowboy-samurai/caldera-mcp \
  --transport sse

Configuration

Variable

Required

Default

Description

CALDERA_API_KEY

Yes

—

Caldera red team API key

CALDERA_URL

No

http://localhost:8888

Caldera server base URL

The red team API key can be found in your Caldera config (conf/local.yml → api_key_red), or in the container logs if auto-generated.


MCP client setup

Claude Code

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "caldera": {
      "command": "uvx",
      "args": ["caldera-mcp"],
      "env": {
        "CALDERA_URL": "http://my-caldera:8888",
        "CALDERA_API_KEY": "your-red-api-key"
      }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "caldera": {
      "command": "uvx",
      "args": ["caldera-mcp"],
      "env": {
        "CALDERA_URL": "http://my-caldera:8888",
        "CALDERA_API_KEY": "your-red-api-key"
      }
    }
  }
}

SSE mode (remote Caldera)

If your Caldera instance is remote and you want the MCP server to run as a persistent process:

caldera-mcp --transport sse --host 127.0.0.1 --port 8081

Then configure your client to connect via SSE:

{
  "mcpServers": {
    "caldera": {
      "type": "sse",
      "url": "http://localhost:8081/sse"
    }
  }
}

Usage examples

Once connected, talk to your AI client naturally:

List all alive agents
Find abilities for T1059.001 on Windows
Create an adversary from these techniques: T1566.001, T1059.001, T1003.001
What operations are currently running?

Operations created through this server default to paused state. Always review scope — techniques, commands, and targeted hosts — before resuming any operation.


License

Apache 2.0

Available Tools

18 tools
caldera_create_abilityB

Create a new ability in Caldera.

Args: name: Human-readable ability name (e.g. 'Dump LSASS memory'). tactic: ATT&CK tactic (e.g. 'credential-access', 'discovery'). technique_id: ATT&CK technique ID (e.g. 'T1003.001'). technique_name: ATT&CK technique name (e.g. 'OS Credential Dumping: LSASS Memory'). platform: Target platform — 'windows', 'linux', or 'darwin'. executor: Executor name — 'psh' (PowerShell), 'cmd', 'sh', or 'python'. command: The command to execute. Use #{variable} for Caldera facts. description: Optional description of what the ability does. timeout: Execution timeout in seconds (default 60).

Returns: JSON string with the created ability including its generated ability_id.

Inputs: name (required), tactic (required), technique_id (required), technique_name (required), +5 more. Returns: Generic wrapper for non-object return types.

caldera_create_adversaryA

Create a new adversary profile from an ordered list of ability IDs.

Args: name: Human-readable adversary name (e.g. 'APT29 Credential Access'). ability_ids: Ordered list of Caldera ability UUIDs. description: Optional description of the adversary's TTPs or scenario context.

Returns: JSON string with the created adversary including its generated adversary_id.

Inputs: name (required), ability_ids (required), description. Returns: Generic wrapper for non-object return types.

caldera_create_operationA

Create a new operation in Caldera.

Operations are created in 'paused' state by default — always perform scope review and get explicit user confirmation before resuming execution.

Args: name: Human-readable operation name. adversary_id: UUID of the adversary profile to run. group: Agent group to target (leave empty for all connected agents). state: Initial state — 'paused' (default) or 'running'.

Returns: JSON string with the created operation including its operation ID.

Inputs: name (required), adversary_id (required), group, state. Returns: Generic wrapper for non-object return types.

caldera_delete_abilityA

Delete an ability from Caldera by its ID.

Args: ability_id: The Caldera ability UUID to delete.

Returns: Confirmation string.

Inputs: ability_id (required). Returns: Generic wrapper for non-object return types.

caldera_delete_adversaryA

Delete an adversary profile from Caldera.

Args: adversary_id: The Caldera adversary UUID to delete.

Returns: Confirmation string.

Inputs: adversary_id (required). Returns: Generic wrapper for non-object return types.

caldera_delete_operationA

Delete an operation from Caldera.

Args: operation_id: The Caldera operation ID to delete.

Returns: Confirmation string.

Inputs: operation_id (required). Returns: Generic wrapper for non-object return types.

caldera_get_abilityA

Get full details for a single ability including all executors and commands.

Args: ability_id: The Caldera ability UUID.

Returns: JSON string with the full ability object.

Inputs: ability_id (required). Returns: Generic wrapper for non-object return types.

caldera_get_adversaryA

Get full details for a single adversary profile including ability ordering.

Args: adversary_id: The Caldera adversary UUID.

Returns: JSON string with the full adversary object.

Inputs: adversary_id (required). Returns: Generic wrapper for non-object return types.

caldera_get_agentA

Get full details for a specific agent by its PAW identifier.

Args: paw: The agent's PAW (unique identifier assigned by Caldera).

Returns: JSON string with full agent details including alive status.

Inputs: paw (required). Returns: Generic wrapper for non-object return types.

caldera_get_operationA

Get full details for an operation including its execution chain.

Args: operation_id: The Caldera operation ID.

Returns: JSON string with the full operation object including chain results.

Inputs: operation_id (required). Returns: Generic wrapper for non-object return types.

caldera_get_operation_resultsA

Get a structured summary of operation execution results.

Args: operation_id: The Caldera operation ID.

Returns: JSON string with execution summary and per-ability results.

Inputs: operation_id (required). Returns: Generic wrapper for non-object return types.

caldera_health_checkA

Verify that the Caldera server is reachable and return version information.

Returns: JSON string with server health status and version details.

Inputs: no named parameters. Returns: Generic wrapper for non-object return types.

caldera_list_abilitiesA

List available abilities in Caldera, with optional filters.

Useful for finding what abilities already exist before creating new ones, or for mapping ATT&CK technique IDs to Caldera ability IDs when building an adversary from a STIX bundle.

Args: technique_id: Filter by ATT&CK technique ID (e.g. 'T1059.001'). Leave empty to return all techniques. tactic: Filter by ATT&CK tactic (e.g. 'execution', 'discovery'). Leave empty to return all tactics. platform: Filter by executor platform — 'windows', 'linux', or 'darwin'. Leave empty to return all platforms.

Returns: JSON string with a compact list of matching abilities (id, name, tactic, technique_id, platforms).

Inputs: technique_id, tactic, platform. Returns: Generic wrapper for non-object return types.

caldera_list_adversariesA

List all adversary profiles in Caldera.

Returns: JSON string with a compact list of adversaries (id, name, description, ability count).

Inputs: no named parameters. Returns: Generic wrapper for non-object return types.

caldera_list_agentsA

List all agents connected to Caldera.

Args: platform: Optional platform filter — 'windows', 'linux', or 'darwin'. Leave empty to return all platforms. alive_only: If True, only return agents that have checked in recently (within 3x their sleep_max interval). Default False.

Returns: JSON string with a list of agents and their status.

Inputs: platform, alive_only. Returns: Generic wrapper for non-object return types.

caldera_list_operationsA

List all operations in Caldera with their current state and progress.

Returns: JSON string with a compact list of operations (id, name, state, adversary, progress).

Inputs: no named parameters. Returns: Generic wrapper for non-object return types.

caldera_set_operation_stateA

Change the state of an existing operation.

Valid transitions: paused → running (resume execution) running → paused (pause execution) running → stop (terminate cleanly)

Args: operation_id: The Caldera operation ID. state: Target state — 'running', 'paused', or 'stop'.

Returns: JSON string with the updated operation state.

Inputs: operation_id (required), state (required). Returns: Generic wrapper for non-object return types.

caldera_update_adversaryA

Update an existing adversary profile.

Args: adversary_id: The Caldera adversary UUID to update. name: New name (leave empty to keep existing). ability_ids: New ordered ability list (leave empty to keep existing). description: New description (leave empty to keep existing).

Returns: JSON string with the updated adversary.

Inputs: adversary_id (required), name, ability_ids, description. Returns: Generic wrapper for non-object return types.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 18 tools

    Disambiguation5/5

    Every tool targets a distinct resource-action pair (ability, adversary, operation, agent). No two tools have overlapping purposes; even similar verbs like 'get' and 'list' are clearly differentiated by singular vs. plural. An agent can easily select the right tool.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with the server prefix 'caldera_'. The verbs (create, delete, get, list, update, health_check, set) are uniform and predictable. No mixing of styles or ambiguous verbs.

    Tool Count4/5

    18 tools is slightly above the typical 3-15 well-scoped range, but each tool serves a clear purpose for managing Caldera resources. The count feels justified given the domain (multiple CRUD operations, agent listing, health check, state management) and not excessive.

    Completeness4/5

    The tool surface covers CRUD for abilities, adversaries, and operations, plus agent querying and state management. Minor gaps exist: no update_ability or update_operation (though update_adversary is present), and no delete_agent. These are not critical but slightly reduce completeness.

    Related MCP Connectors

    Related MCP Servers