Skip to main content
ClaudeWave
MCP ServersRegistry oficial0 estrellas0 forks● TypeScriptApache-2.0Actualizado today
ClaudeWave Trust Score
77/100
✓ Trusted
Passed
  • ✓Open-source license (Apache-2.0)
  • ✓Actively maintained (<30d)
  • ✓Documented (README)
Flags
  • !No description
Last scanned: 10/3/2026
Install in Claude Code / Claude Desktop
Method: NPX · nats-trail
Claude Code CLI
claude mcp add nats-trail -- npx -y nats-trail
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "nats-trail": {
      "command": "npx",
      "args": ["-y", "nats-trail"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Casos de uso

Resumen de MCP Servers

<p align="center">
  <img src="docs/assets/banner.svg" alt="NATS Trail — the agent-native observability layer for NATS and JetStream" width="880">
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/nats-trail"><img alt="npm" src="https://img.shields.io/npm/v/nats-trail?style=flat-square&color=4cc4ff&label=npm"></a>
  <a href="LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-4cc4ff?style=flat-square"></a>
  <a href="https://www.npmjs.com/package/nats-trail"><img alt="Node version" src="https://img.shields.io/node/v/nats-trail?style=flat-square&color=8b97a7"></a>
  <img alt="TypeScript strict" src="https://img.shields.io/badge/TypeScript-strict-8b97a7?style=flat-square">
  <img alt="Agent surface: read-only" src="https://img.shields.io/badge/agent%20surface-read--only-3fb950?style=flat-square">
</p>

<p align="center">
  <b>Give an AI agent safe access to your production event bus.</b><br>
  <sub>A web UI, a CLI and an MCP server over one bounded query engine — so humans and agents debug NATS from the same source of truth.</sub>
</p>

---

## Why this exists

Every NATS GUI answers *"what is in this stream?"*. That is the easy question.

The hard question in an event-driven system is **"why did this one flow fail?"** — and answering it
means following a single `request_id` across four streams, three services and a dead-letter subject.
Today you do that by hand, with a terminal per stream.

NATS Trail answers that question directly, and exposes the answer to **agents** as a typed, bounded,
read-only tool contract — so you can point Claude at production and ask.

<p align="center">
  <img src="docs/assets/trace.svg" alt="A single request id traced across four streams, merged chronologically, ending in a dead-letter event" width="880">
</p>

```bash
nats-trail trace --request-id req-0001d --limit 20
```

Or, from an agent: *"Why did the refresh for s3-events fail?"* — and it lands on the message that
actually broke, with the retry state and the correlation ids already extracted:

<p align="center">
  <img src="docs/assets/screenshot-viewer.png" alt="The message viewer showing a bronze.etl.failed event in tree view, with error, code, attempt count and retries_exhausted" width="880">
</p>

---

## The part nobody else does

There are several NATS MCP servers. They shell out to the `nats` CLI, return raw dumps, and expose
`publish` and `delete` while describing themselves as read-only.

NATS Trail treats the agent surface as a **contract**, not a wrapper:

| | NATS Trail | Typical NATS MCP server |
|---|---|---|
| Tool schemas | Explicit JSON input **and** output schemas per tool | None, or input only |
| Result size | `limit` is **required**, capped at 200, with cursors | Unbounded |
| Long scans | `maxScan` budget with explicit truncation warnings | Scans until it dies |
| Message shape | subject, timestamp, stream/seq, truncation flag, extracted `request_id` / `correlation_id` | Raw payload dump |
| Errors | Structured envelope with `code` and `retriable` | Stack traces or plain strings |
| Writes | **Unreachable from the agent runtime** | `publish`, KV and object writes exposed |
| Audit | Every call logged with origin and token identity; mutations with their arguments | None |

### "Read-only" here means unreachable, not disabled

<p align="center">
  <img src="docs/assets/boundary.svg" alt="The UI and CLI reach both read and write paths; the MCP runtime is wired only to the read path" width="880">
</p>

NATS Trail *can* write: publish, purge, delete messages, consumers and streams. Those live behind
`/api/mutate`, reachable from the UI and the CLI.

`executeMcpTool()` receives an `McpRuntimeData` interface that exposes only read functions. There is
no disabled `publish` behind a feature flag — **there is no `publish` to call.** A misconfigured
environment variable cannot purge your production stream, because the code path does not exist. CLI
write commands additionally refuse to run under `--agent`, and the test suite reads the source to
assert none of this has been quietly undone.

This is the only reason it is reasonable to hand an agent a `prod` context.

---

## Install

```bash
npx nats-trail serve
```

Open **http://127.0.0.1:4000** — one process serves the UI and the API.

Prefer containers? The compose file brings up NATS Trail next to a JetStream-enabled server:

```bash
docker compose up
```

On Kubernetes, the Helm chart declares contexts and correlation keys in `values.yaml` and keeps
credentials in a Secret:

```bash
helm install nats-trail ./charts/nats-trail -f my-values.yaml
```

See [`charts/nats-trail/README.md`](charts/nats-trail/README.md) for declarative config, why it is a
single-replica StatefulSet, and how authentication is delegated to whatever fronts the service.

<details>
<summary>From source</summary>

```bash
git clone https://github.com/solsolettidev/nats-trail
cd nats-trail
npm install
npm start
```

</details>

<details>
<summary>Development with hot reload</summary>

```bash
npm run dev
```

- UI: http://localhost:5173 (proxies `/api` and `/ws` to the bridge)
- API bridge: http://localhost:4000

`npm run dev` runs the TypeScript watcher, the API bridge and the UI together.

</details>

**Requirements:** Node.js >= 22 (for the built-in SQLite used by the correlation index) and a reachable NATS server (`nats-server -js` is fine).

---

## Use it as an MCP server

Point any MCP client at the stdio server. For Claude Code:

```bash
claude mcp add nats-trail -- npx -y @nats-trail/mcp
```

Or wire it manually:

```json
{
  "mcpServers": {
    "nats-trail": {
      "command": "natstrail-mcp",
      "env": {
        "NATS_TRAIL_API": "http://127.0.0.1:4000",
        "NATS_TRAIL_TOKEN": "<bearer token>"
      }
    }
  }
}
```

Twenty-five read-only tools, all returning the same envelope:

```
# start here when the topology is unknown
natstrail.discover_subjects        subjects that carry traffic + inferred payload shapes
natstrail.get_health_summary       what is broken right now, ranked
natstrail.reconstruct_flow         the causal chain for one request_id
natstrail.enrich_incident          flat context for an incident: flow + dead letters + health

# messages
natstrail.search_messages          natstrail.get_message_detail
natstrail.trace_by_request_id      natstrail.trace_by_correlation_id
natstrail.search_dlq               natstrail.run_filter

# topology
natstrail.list_streams             natstrail.get_stream_info
natstrail.list_consumers           natstrail.list_kv_buckets
natstrail.list_kv_keys             natstrail.get_kv_history
natstrail.list_object_buckets      natstrail.list_objects

# operations
natstrail.get_server_health        natstrail.list_server_connections
natstrail.list_contexts            natstrail.get_connection_status
natstrail.list_filters             natstrail.list_audit
natstrail.enrich_sentry
```

See [`docs/mcp-agent.md`](docs/mcp-agent.md).

---

## Three surfaces, one engine

```
                 ┌──  Web UI          explore visually, save filters
Query Engine  ───┼──  CLI             scripts, pipelines, humans in a terminal
  (core)         └──  MCP + HTTP API  agents, Sentry, dashboards
```

A filter you save in the UI is the same filter `nats-trail filter run` executes, and the same one
`natstrail.run_filter` hands an agent. Configure a context once; use it everywhere.

- **`packages/ui`** — React + Vite. Presentation only.
- **`packages/server`** — Express + WebSocket bridge. Owns connections and credentials.
- **`packages/core`** — the Query Engine: envelopes, limits, truncation, filters, error normalization.
- **`packages/cli`** — the `nats-trail` binary: query commands, `serve`, and an interactive shell.
- **`packages/mcp`** — tool contracts and the stdio server.

See [`docs/architecture.md`](docs/architecture.md).

---

## Features

**Inspect** — context selector (local / dev / staging / prod) with a prod confirmation gate, live
subject subscription, JSON pretty print with tree view and in-payload search, stream and consumer
browsing, auto-detected DLQ panel.

<table>
<tr>
<td width="50%"><img src="docs/assets/screenshot-jetstream.png" alt="JetStream panel listing streams with message counts, sizes and per-stream consumers with pending and ack-pending columns"><br><sub><b>JetStream</b> — streams, subjects, counts and consumer health.</sub></td>
<td width="50%"><img src="docs/assets/screenshot-core.png" alt="NATS Core panel with a live subscription to orders.> and a selected message rendered as a JSON tree"><br><sub><b>NATS Core</b> — live subject subscription with filters.</sub></td>
</tr>
<tr>
<td width="50%"><img src="docs/assets/screenshot-dlq.png" alt="DLQ panel listing dead-letter events with their original subject and failure reason"><br><sub><b>DLQ</b> — auto-detected dead letters with reason and origin.</sub></td>
<td width="50%"><img src="docs/assets/screenshot-viewer.png" alt="Message viewer in tree mode with a key filter"><br><sub><b>Viewer</b> — tree, raw, search, fullscreen, copy-path.</sub></td>
</tr>
</table>

**Understand** — subject discovery infers payload shapes from real traffic, flow reconstruction
turns one `request_id` into a causal chain, and the health summary ranks what is actually broken.

**Query** — bounded stream scans with cursors and time windows, filters by subject, date, text and
JSON event type, saved filters shared across all three surfaces. Binary payloads (protobuf, msgpack)
are detected and shown as hex dumps rather than mojibake.

**Browse** — KV buckets with per-key revision history including deletes, Object Store metadata, and
server health from the monitoring port (`varz` / `jsz` / `connz`).

**Change** — publish, request/reply, purge, and delete messages, consumers and streams, from the UI
and the CLI, behind confirmation. Never from the agent surface.

**Integrate** — read-only HTTP API under `/api/integration`, bearer tokens with per-token audi

Lo que la gente pregunta sobre nats-trail

¿Qué es solsolettidev/nats-trail?

+

solsolettidev/nats-trail es mcp servers para el ecosistema de Claude AI con 0 estrellas en GitHub.

¿Cómo se instala nats-trail?

+

Puedes instalar nats-trail clonando el repositorio (https://github.com/solsolettidev/nats-trail) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar solsolettidev/nats-trail?

+

Nuestro agente de seguridad ha analizado solsolettidev/nats-trail y le ha asignado un Trust Score de 77/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene solsolettidev/nats-trail?

+

solsolettidev/nats-trail es mantenido por solsolettidev. La última actividad registrada en GitHub es del 2026-10-03, con 0 issues abiertos.

¿Hay alternativas a nats-trail?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega nats-trail en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: solsolettidev/nats-trail
[![Featured on ClaudeWave](https://claudewave.com/api/badge/solsolettidev-nats-trail)](https://claudewave.com/repo/solsolettidev-nats-trail)
<a href="https://claudewave.com/repo/solsolettidev-nats-trail"><img src="https://claudewave.com/api/badge/solsolettidev-nats-trail" alt="Featured on ClaudeWave: solsolettidev/nats-trail" width="320" height="64" /></a>

Más MCP Servers

Alternativas a nats-trail