---
title: "How we build and evaluate our MCP server for SRE agents"
description: "ClickHouse's open-source hdx-evals framework benchmarks MCP servers for SRE agents."
url: "https://swe.quest/articles/how-we-build-and-evaluate-our-mcp-server-for-sre-agents-1e13f28ed699c2db"
canonical: "https://clickhouse.com/blog/benchmarking-the-clickstack-mcp-server-with-hdx-evals"
source: "ClickHouse"
published: "2026-07-22"
difficulty: "medium"
kind: "Research"
reading_minutes: 14
tags: ["evals","ai-agents","observability","incident-response"]
---

# How we build and evaluate our MCP server for SRE agents

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-07-22, 14 min read, Research. Original: [https://clickhouse.com/blog/benchmarking-the-clickstack-mcp-server-with-hdx-evals](https://clickhouse.com/blog/benchmarking-the-clickstack-mcp-server-with-hdx-evals)

## Summary

ClickHouse's open-source hdx-evals framework benchmarks MCP servers for SRE agents. It seeds deterministic synthetic telemetry (tens of millions of spans and logs with planted anomalies and distractors) into ClickHouse and runs sandboxed Claude Code agents against each MCP/model combination. Grading combines weighted regex checks with proximity-based negative checks for distractors (40%), a blinded LLM judge (60%), and a rate-based penalty for agent-caused tool errors. Five scenarios cover root cause, latency regression, Simpson's-paradox segmentation, noise reduction and no-incident health checks. Against a raw SQL ClickHouse MCP, the higher-level ClickStack MCP gave 18% more accurate outcomes, 26% fewer tool calls and 2.4x more consistent results.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)

## Prerequisites

- Model Context Protocol basics
- OpenTelemetry traces and logs ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- LLM agents and tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

ClickStack MCP, ClickHouse MCP, hdx-evals, HyperDX, Claude Code, ClickHouse, OpenTelemetry

## Related posts

- [Announcing the Managed ClickStack MCP Server](https://swe.quest/articles/announcing-the-managed-clickstack-mcp-server-2e355443e7bc5530.md): ClickHouse · 2026-06-24 · Medium · 8 min read · Observability, AI agents, Analytics & OLAP
  ClickStack's MCP server, which exposes observability-specific investigation tools for logs, metrics and traces to agents like Claude Code, Cursor and Codex, is now available in Managed ClickStack on ClickHouse Cloud with OAuth and per-service dedicated compute.
- [Open House observability announcements: MCP server, AI Notebooks, and ClickStack Cloud](https://swe.quest/articles/open-house-observability-announcements-mcp-server-ai-notebooks-and-clickstack-027c56eb64027b0c.md): ClickHouse · 2026-05-27 · Easy · 9 min read · Observability, AI agents, Analytics & OLAP
  ClickHouse unveiled three observability updates: ClickStack Cloud, a serverless managed OpenTelemetry endpoint now in private preview; general availability of Managed ClickStack for teams that want control over ingestion and sizing; and AI Notebooks in beta, which turn incident investigations into branching, editable, shareable workspaces.
- [How we built a real-world evaluation platform for autonomous SRE agents at scale](https://swe.quest/articles/how-we-built-a-real-world-evaluation-platform-for-autonomous-sre-agents-at-scale-6a8c2348a0fba679.md): Datadog Engineering · 2026-04-07 · Medium · 15 min read · Evaluation, AI agents, SRE, Observability
  Datadog built a replayable offline evaluation platform for Bits Investigation, its autonomous SRE agent, after discovering that feature changes improving one investigation type silently regressed others.
- [Building Investigations: what it takes to build an AI SRE](https://swe.quest/articles/building-investigations-what-it-takes-to-build-an-ai-sre-97667cae8b2c0604.md): incident.io · 2026-10-01 · Medium · 14 min read · AI agents, Evaluation, SRE, Incidents & postmortems, Observability
  Building a reliable AI SRE took incident.io two years, far longer than the first promising prototype suggested, and the hard work sat in four areas around the model.
- [Your AI SRE needs better observability, not bigger models.](https://swe.quest/articles/your-ai-sre-needs-better-observability-not-bigger-models-2fd1d44f22e0b806.md): ClickHouse · 2026-01-01 · Medium · 20 min read · Observability, AI agents, Analytics & OLAP, Incidents & postmortems, SRE
  AI SRE copilots fail at root cause analysis mainly because of their data, not their models: legacy inverted-index observability stacks keep only 7-14 days of logs, drop high-cardinality fields like request and user IDs, answer queries slowly, and often charge per query.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
