プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Nats Trail

作者:solsolettidevバージョン 0.6.1i★ –iパソコンで動く
レジストリ名io.github.solsolettidev/nats-trail

インストール

概要

作者による説明(英語の原文)

Read-only NATS and JetStream observability: trace a request across streams, rank what is broken.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他
  • 入力が必要なもの:NATS_TRAIL_TOKEN

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: NATS_TRAIL_API, NATS_TRAIL_TOKEN

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "nats-trail": {
      "command": "npx",
      "args": [
        "-y",
        "@nats-trail/mcp"
      ],
      "env": {
        "NATS_TRAIL_API": "your-value",
        "NATS_TRAIL_TOKEN": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add nats-trail --env NATS_TRAIL_API=your-value --env NATS_TRAIL_TOKEN=your-value -- npx -y @nats-trail/mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "nats-trail": {
      "command": "npx",
      "args": [
        "-y",
        "@nats-trail/mcp"
      ],
      "env": {
        "NATS_TRAIL_API": "your-value",
        "NATS_TRAIL_TOKEN": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "nats-trail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nats-trail/mcp"
      ],
      "env": {
        "NATS_TRAIL_API": "your-value",
        "NATS_TRAIL_TOKEN": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • NATS_TRAIL_API env
    URL of the NATS Trail bridge, e.g. http://127.0.0.1:4000. Without it the server answers only from local state and cannot reach JetStream.
  • NATS_TRAIL_TOKEN 秘密 env
    Bearer token for the bridge, required when it has auth enabled. A read-scoped token is enough: this server never mutates.

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント solsolettidev で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの32684件のうち0%よりスターが多い
  • このカテゴリのほかの32684件のうち53%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの32684件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Nats Trailは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:NATS_TRAIL_TOKEN

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.6.1)がレジストリに届いたのは35 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, Master CSS

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

クラウドで動く★ 211一昨日更新
インストール

Master CSS

作者:master-co

Inspect Master CSS classes, generated CSS, and project stylesheets from your AI client.

パソコンで動く今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Give an AI agent safe access to your production event bus.

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.


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.

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:


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 TrailTypical NATS MCP server
Tool schemasExplicit JSON input and output schemas per toolNone, or input only
Result sizelimit is required, capped at 200, with cursorsUnbounded
Long scansmaxScan budget with explicit truncation warningsScans until it dies
Message shapesubject, timestamp, stream/seq, truncation flag, extracted request_id / correlation_idRaw payload dump
ErrorsStructured envelope with code and retriableStack traces or plain strings
WritesUnreachable from the agent runtimepublish, KV and object writes exposed
AuditEvery call logged with origin and token identity; mutations with their argumentsNone
"Read-only" here means unreachable, not disabled

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

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:

docker compose up

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

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

See 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.

From source

git clone https://github.com/solsolettidev/nats-trail

cd nats-trail npm install npm start

Development with hot reload

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.

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:

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

Or wire it manually:

{

"mcpServers": { "nats-trail": { "command": "natstrail-mcp", "env": { "NATS_TRAIL_API": "http://127.0.0.1:4000", "NATS_TRAIL_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.


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.


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.

JetStream — streams, subjects, counts and consumer health. and a selected message rendered as a JSON tree"> NATS Core — live subject subscription with filters.

DLQ — auto-detected dead letters with reason and origin.

Viewer — tree, raw, search, fullscreen, copy-path.

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 audit identity, and POST /api/integration/enrich/sentry to attach NATS context to an error without exposing credentials.

Full list in docs/features.md · CLI reference in docs/cli.md.


Security

Credentials live in contexts stored locally under data/ (git-ignored). The UI never holds the NATS connection — it always goes through the bridge, which pools one connection per context.

The server binds to 127.0.0.1 by default because /api/contexts and /api/connect are unauthenticated local endpoints. To expose the Integration API and the WebSocket, configure bearer tokens with NATS_TRAIL_TOKENS=name:token or data/tokens.json; audit entries then record the authenticated token name per call.

A shared deployment has no built-in login on purpose: identity comes from whatever fronts the service (an ingress with OIDC, oauth2-proxy, Cloudflare Access, Teleport or network isolation), so no passwords are stored here. Contexts declared through NATS_TRAIL_CONFIG resolve ${VAR} from the environment and cannot be edited or deleted through the API.


Roadmap

Tracked in docs/roadmap.md.

Phases 0–3 are complete. npm release · KV and Object Store browsing · server health · binary payload handling · nkey auth · subject discovery · flow reconstruction · health summary · incident enrichment for Sentry, Grafana, Datadog and PagerDuty · stream, consumer and KV administration · MCP registry listing · indexed correlation search · declarative config and a Helm chart. All writes are human-only, behind scoped tokens and audited with their arguments.

Next: cluster awareness, deliberately deferred rather than pending work.

Deliberately out — protobuf and msgpack *field* decoding (needs a per-subject schema registry) and competing with NUI on GUI breadth. See docs/roadmap.md.

Planned, not started: for teams that explicitly want agent wri

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く