Open source · Self-hosted

Crucible: open-source observability for AI agents and MCP servers.

Built in Rust and engineered for speed and throughput. Use it for agents, for MCP servers, or both, with an agent's tool calls linked to the server-side MCP spans.

TL;DR

Crucible is one Rust binary. It ingests OpenTelemetry traces over HTTP and gRPC, writes every request to disk before it acknowledges it, and stores telemetry in ClickHouse, with Postgres as the control plane. It serves a web UI, a REST API and an MCP server, so coding agents can query their own traces.

What Crucible gives you

Traces and sessions

Traces, spans, sessions and users, with a timeline, an agent graph and full-text search.

Cost and latency

The cost, tokens and latency of every trace and span, with p50 to p99 latency and dashboards to chart them.

MCP servers

Every MCP call recorded and linked to the agent's tool call through trace context, with analytics by server, tool, error, client, user, session and deploy, for the server or the client side.

How it works

One binary, from span to screen.

Crucible runs beside ClickHouse and Postgres, and every span takes the same four steps through it.

  1. 01

    Send

    Your agents and MCP servers send OpenTelemetry traces over HTTP or gRPC, from any OpenTelemetry SDK or instrumentation library, from Crucible's SDKs, or through the MCP proxy, which needs no code changes.

  2. 02

    Write ahead

    Crucible validates each request in a single pass over its bytes, then appends it to a write-ahead log. Concurrent requests share one fsync, and your app gets its acknowledgment only once its spans are on disk.

  3. 03

    Store once

    A shipper batches spans into ClickHouse in its native column format, compressed. Each insert carries a token from its place in the log, so a retry after a timeout or a crash never stores a span twice.

  4. 04

    Read

    Recent spans sit in an in-memory index, so a trace can be read as soon as it is acknowledged. The web UI, the REST API, the SQL workspace and the MCP server read the same data, and alerts and exports run on it.

  • One Rust binary
  • OpenTelemetry traces
  • ClickHouse 26.3 or newer
  • Postgres 15 or newer

Why we built it

You cannot maintain what you cannot see.

rightmodeler takes the work out of the loop, not the judgment, and that work starts with seeing what your production AI systems do: every model call, what it cost, how long it took, and every MCP tool it reached. We built Crucible to be that instrument panel, and to keep up with the traffic agents produce.

Built in Rust, for speed and throughput.

Agent traffic is heavy: long prompts, large tool payloads, and bursts of spans when agents fan out. Crucible is written in Rust with no unsafe code, and its ingest path is built to do as little work per span as it can.

parseone pass over the request bytes, no copies, no allocation
commitgroup commit: concurrent requests share one fsync
encodeClickHouse's native column format, LZ4, built in process
insertone insert per batch and partition, resent byte for byte
memoryfixed byte budgets, then 429 or 503 with Retry-After
buildopt-level 3, thin LTO, one codegen unit, mimalloc

the ingest path, as built

  • Every acknowledged span is on disk.

    Crucible acknowledges a request only after its spans are written to the log and synced, and a batch that ClickHouse never confirmed is sent again after a crash with the same token, so it lands once. We test this with deterministic simulation that injects disk, network, ClickHouse and crash faults, swarm testing across configurations, a formal model of the ingest protocol, and machine-checked proofs of the log format.

  • Both sides of the tool call.

    When an agent's MCP client passes trace context with each request, as Crucible's SDKs do, the agent's tool call and the server's span of it land in one trace. A slow or failing tool shows up where the agent felt it.

  • Yours to run.

    Crucible is open source under the MIT license and runs on infrastructure you control: your traces stay in your ClickHouse, and your accounts, projects and keys in your Postgres.

Get started

Run it on your own machine.

You need Docker, plus curl and openssl in a POSIX shell (Git Bash or WSL on Windows). Download the Compose file, start Crucible with a bundled ClickHouse and Postgres, and send your first trace.

  1. 01

    Get the Compose file

    # needs Docker; makes a crucible folder for the Compose file, which runs the published Crucible image

  2. 02

    Start the stack

    # in bash or zsh: writes three secrets and the release's image to .env, then starts ClickHouse, Postgres and Crucible

  3. 03

    Create your organization

    # prints the one-time setup link

    Open the printed /setup/ link on http://127.0.0.1:8080, create your organization and its owner, then create an API key under Settings, then API keys.

  4. 04

    Send traces

    # point any OpenTelemetry exporter at Crucible

    Your traces appear at http://127.0.0.1:8080/traces/ as soon as Crucible acknowledges them. These variables cover traces only, which is all Crucible takes, so metrics and logs stay where they go today. Crucible's SDKs for TypeScript, Python, Go and Rust send the same OTLP and add helpers for agents and MCP servers.

The quickstart in the Crucible docs walks through each step in more detail.

Read the quickstart

Questions and feedback: ask in Q&A and share ideas in Ideas on GitHub Discussions, and report bugs in GitHub issues.

Works with rightmodeler

crucible export writes your traces as OpenTelemetry JSON, and the rightmodeler CLI replays them to validate cheaper or newer models against the outputs you accepted. Crucible does not run the validation loop itself. Coding agents can also ask Crucible about their runs through its MCP server.

FAQ

What is Crucible?
Open-source, self-hosted observability and analytics for AI agents and MCP servers, under the MIT license. It is one Rust binary that ingests OpenTelemetry traces and serves a web UI, a REST API and an MCP server, with ClickHouse for telemetry and Postgres for the control plane.
How do I send it data?
Send OTLP traces over HTTP, as protobuf or JSON, or over gRPC, from any OpenTelemetry SDK or exporter. Spans from OpenInference, OpenLLMetry, the Vercel AI SDK, MLflow and Pydantic AI are mapped as they arrive. Crucible's SDKs for TypeScript, Python, Go and Rust add agent helpers and an MCP server wrapper, and the MCP proxy records an MCP server's calls with no code changes and forwards its traffic unchanged.
How do I install it?
With Docker: the Compose file runs the published Crucible image, for amd64 and arm64, beside a bundled ClickHouse and Postgres. Or install the crucible binary from the GitHub release with its shell or PowerShell installer. The durability described below holds on Linux and macOS; the Windows binary is for development.
Is it for agents or for MCP servers?
Either, or both. Use it for agents only, for MCP servers only, or for both together, with an agent's tool calls linked to the server-side MCP spans through trace context.
Where does my data live?
On infrastructure you run. Crucible is self-hosted only: telemetry goes to ClickHouse 26.3 or newer, on a single server or a self-hosted cluster of replicas coordinated by ClickHouse Keeper, and accounts, projects and keys go to Postgres 15 or newer. The Docker Compose stack bundles both.
Why Rust?
For speed, throughput and predictable memory. Crucible parses OTLP without copying it, shares each fsync across concurrent requests, writes ClickHouse's native column format itself and holds memory inside fixed budgets, with no garbage collector pausing ingest. It all runs as one binary next to ClickHouse and Postgres.
How does it avoid losing spans?
It acknowledges a request only after its spans are written to a write-ahead log and synced to disk, and each batch reaches ClickHouse with a deduplication token, so a retry never stores a span twice. When it is saturated, it answers 429 or 503 with Retry-After instead of dropping data. We test this with deterministic simulation that injects faults, swarm testing, a formal model of the ingest protocol and proofs of the log format.
How does it work with rightmodeler?
crucible export writes your traces as OpenTelemetry JSON, and the rightmodeler CLI replays them to validate cheaper or newer models against the outputs you accepted. Crucible does not run the validation loop or swap models. Coding agents can also ask Crucible about their runs through its MCP server, whose tools list and search traces, read spans and payloads, report MCP server analytics and create exports.
Is there a hosted version?
No. Crucible is self-hosted only: you run it, with your own ClickHouse and Postgres, wherever you run Docker or its binary.