# Kalmia

> Kalmia is a freemium MCP server for developer tools. Finds root-cause issues in your AI agent traces and exposes them to coding agents via MCP. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Web, API, CLI, Slack, Microsoft Teams
- **Website:** https://www.kalmia.dev
- **Repository:** https://github.com/kalmiaai/kalmia-plugin
- **MCP Registry name:** dev.kalmia/kalmia
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-19

## About

The README says Kalmia records what an AI agent does, triages each run, and investigates failures down to a root cause before alerting you. Detector agents cluster suspicious traces, and investigator agents work through individual traces to explain what went wrong. Findings are kept as knowledge that the product says improves later investigations.

The product also works as an MCP server at a hosted endpoint, so Claude Code, Cursor or another MCP client can read verdicts, grouped issues and cost data from your workspace while you work on the code. Traces can be sent through the Kalmia SDK for Python or TypeScript, or through an OpenTelemetry OTLP endpoint, and alerts and digests can go to Slack, Microsoft Teams or email.

The pricing page describes credit-based plans with a free tier, and an enterprise option that includes self-hosting. It suits teams running LLM agents in production who want failure analysis without reading raw traces by hand.

## Features

- **Root-cause trace verdicts:** Each trace gets a verdict and a root-cause span with cited related traces.
- **Detector and investigator agents:** Detector agents cluster suspicious runs while investigator agents examine individual traces.
- **MCP server access:** A streamable HTTP MCP endpoint lets coding agents query traces and start investigations.
- **OpenTelemetry and SDK ingestion:** Traces arrive through the Python or TypeScript SDK or an OTLP endpoint.
- **Alerts and digests:** Failures and findings can be sent to Slack, Microsoft Teams or email with evidence attached.
- **Prompt and behavior audits:** Traces can be checked against a system prompt or a behavior described in plain language.

## Good for

- Find the most common failure patterns across production agent runs
- Get a root-cause explanation for a specific failed trace from inside the editor
- Compare failure rates between two prompt or model variants
- Track token and API cost per run and per agent version

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http kalmia https://www.kalmia.dev/api/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://www.kalmia.dev/api/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "kalmia": {
      "url": "https://www.kalmia.dev/api/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "kalmia": {
      "type": "http",
      "url": "https://www.kalmia.dev/api/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "kalmia": {
      "serverUrl": "https://www.kalmia.dev/api/mcp"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://www.kalmia.dev/api/mcp
```

Enter a Name (for example "Kalmia"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for an API key. Add it under HTTP headers, using the header name from the server's docs.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "kalmia": {
      "type": "http",
      "url": "https://www.kalmia.dev/api/mcp"
    }
  }
}
```

## Tools

- `query_traces`: Query stored agent traces.
- `aggregate_traces`: Aggregate trace data.
- `compare_metrics`: Compare metrics across traces.
- `get_trace`: Fetch a single trace.
- `search_trace_content`: Search trace content.
- `get_span_detail`: Read details of a span.
- `get_monitoring_settings`: Read monitoring settings.
- `get_verdict`: Read a trace verdict.
- `list_anomaly_findings`: List anomaly findings.
- `list_issues`: List grouped issues.
- `get_issue`: Fetch one issue.
- `compare_variants`: Compare agent variants.
- `list_recent_runs`: List recent runs.
- `get_run_results`: Read run results.
- `get_case_diagnosis`: Read an eval case diagnosis.
- `compare_runs`: Compare runs.
- `analyze_trace`: Run analysis on a trace.
- `investigate_trace`: Start an investigation of a trace.
- `annotate_trace`: Annotate a trace.
- `run_sweep`: Start a monitoring sweep.
- `configure_monitoring`: Change monitoring settings.
- `connect_slack`: Connect Slack.
- `connect_teams`: Connect Microsoft Teams.

## FAQ

### How do I send traces to Kalmia?

Use the Kalmia SDK for Python or TypeScript to auto-capture LLM calls, or point an OpenTelemetry-instrumented library at the OTLP endpoint /api/otel/v1/traces.

### Are credits per workspace?

No. Credits belong to your account and are shared by every workspace you own.

### Does sending traces cost anything?

Ingesting, storing and browsing traces is free on every plan. Credits pay for analysis such as sweeps, root-cause runs and questions.

### Can I self-host Kalmia?

Yes, as a custom Enterprise plan. The pricing page says it is a Next.js application backed by Supabase.

### How do I add Kalmia to Claude Code?

Run this command in your terminal: claude mcp add --transport http kalmia https://www.kalmia.dev/api/mcp

### What are the best alternatives to Kalmia?

The closest alternatives to Kalmia are Keel, MCP Trace, Observe Instrument MCP, Flowlines and AgentLens.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status: checked automatically by AIPoweredBot on 22 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Keel](https://ai-powered.com/mcp/keel-3): Keel is an open-source MCP server for developer tools.
- [MCP Trace](https://ai-powered.com/mcp/mcp-trace): MCP Trace is an open-source MCP server for developer tools.
- [Observe Instrument MCP](https://ai-powered.com/mcp/observe-instrument-mcp): Observe Instrument MCP is an open-source MCP server for ai models and llm tooling.
- [Flowlines](https://ai-powered.com/mcp/flowlines): Flowlines is a freemium MCP server for analytics and data.
- [AgentLens](https://ai-powered.com/mcp/agentlens): AgentLens is an open-source MCP server for developer tools.
- [Kodelyth ECC](https://ai-powered.com/mcp/kodelyth-ecc): Kodelyth ECC is an open-source MCP server for developer tools.
- [Apitally](https://ai-powered.com/mcp/apitally): Apitally is an MCP server for developer tools.
- [TokenTrace](https://ai-powered.com/mcp/tokentrace): TokenTrace is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/kalmia
