Skip to main content

Harness Chaos Engineering MCP

The Harness Chaos Engineering MCP (Model Context Protocol) tools enable users to test application resilience through natural language prompts in Claude Desktop. This integration allows DevOps, QA, and SRE teams to discover, learn about, and execute chaos experiments with minimal learning curve.

Video Tutorial

Here's a step-by-step guide on setting up and using the MCP tools:

Installation & Configuration

note

For a detailed guide on how to setup Harness MCP server, refer to Harness MCP Server documentation.

Prerequisites

  • Access to Harness Platform with Chaos Engineering enabled
  • Claude Desktop (paid version)
  • Harness API key

Step 1: Build the MCP Server Binary

  1. Clone the Harness MCP server repository from GitHub.
  2. Build the binary from source code
  3. Copy the binary to a directory accessible by Claude Desktop

Step 2: Configure Claude Desktop

  1. Create or modify the claude_desktop_config.json file
  2. Add MCP server configuration:
{
"mcpServers": {
"harness": {
"command": "/path/to/harness-mcp-server",
"args": [],
"env": {
"HARNESS_API_KEY": "your-api-key-here",
"HARNESS_DEFAULT_ORG_ID": "your-org-id",
"HARNESS_DEFAULT_PROJECT_ID": "your-project-id",
"HARNESS_BASE_URL": "https://your-harness-instance.harness.io"
}
}
}
}
  1. Restart Claude Desktop

Step 3: Verify Installation

  1. Open Claude Desktop

  2. Navigate to Tools section

  3. Verify Harness tools are available

    Verify Harness tools

  4. Chaos-related tools will have "chaos" prefix

    Chaos tools

Available MCP Tools

ToolPurposeExample Use
chaos_experiments_listDiscover available testsFind all experiments for your service
chaos_experiment_describeDeep dive into specificsUnderstand what a test actually does
chaos_experiment_runExecute resilience testsStart testing with auto-configuration
chaos_experiment_run_resultAnalyze outcomesGet detailed resilience reports
chaos_probe_describeGet probe detailsUnderstand monitoring and validation
chaos_probes_listList available probesDiscover monitoring capabilities

Usage Examples

Here are practical examples of how to interact with the Harness Chaos Engineering MCP tools using natural language:

Discovery & Learning

Service-specific experiment discovery:

"I am interested in catalog service resilience. Can you tell me what chaos experiments are available?"

Output: Filtered list of experiments specific to your service with categorization.

Understanding experiment details:

"Describe briefly what a particular chaos experiment does?"

Output: Technical details, target services, expected outcomes, and business impact.

Resilience scoring insights:

"Describe the resilience score calculation details of a specific chaos experiment?"

Output: Scoring methodology, performance metrics used, and interpretation guide.

Execution & Monitoring

Running targeted experiments:

"Can you run a specific experiment for me?"

Output: Automatic parameter detection, experiment execution, and monitoring setup.

Structured experiment overview:

"Can you list the network chaos experiments and the corresponding services targeted? Tabulate if possible."

Output: Structured table showing experiments, target services, and current status.

Probe discovery:

"Show me all available chaos probes and describe how they work"

Output: Complete probe catalog with monitoring capabilities and usage guidance.

Analysis & Reporting

Experiment result analysis:

"Summarise the result of a particular chaos experiment"

Output: Performance impact, resilience score, business implications, and recommendations.

Probe configuration details:

"Describe the HTTP probe used in the catalog service experiment"

Output: Probe configuration, validation criteria, and monitoring setup details.

Comprehensive resilience assessment:

"Scan the experiments that were run against particular service in the last one week and summarise the resilience posture for me."

Output: Comprehensive resilience report with trends and actionable insights.