Skip to main content
Glama
@originchain/telemetry-mcp

@originchain/telemetry-mcp

Official

@originchain/telemetry-mcp

An MCP server that gives an AI agent OriginChain's telemetry tools: log patterns, semantic incident analysis, distributed traces and service graphs.

Works with Claude Desktop, Cursor, Continue, Cline, Zed AI, and anything else that speaks the Model Context Protocol.

Which package do I want?

There are two, and they do different jobs.

Package

Talks to

Tools

@originchain/mcp-server

your database

ask, SQL, vector search, full-text, schemas

@originchain/telemetry-mcp (this one)

the telemetry agent

log volume, patterns, incidents, traces, service graph

They do not conflict. Configure both if you want both.

Related MCP server: Spyglass AI MCP Server

Install

npm install -g @originchain/telemetry-mcp

Or let your MCP host fetch it on demand with npx, as below.

Configure

The telemetry agent normally runs inside a private network, so you reach it through a port-forward. Point this at wherever that forward listens.

Claude Desktop, in claude_desktop_config.json:

{
  "mcpServers": {
    "originchain-telemetry": {
      "command": "npx",
      "args": ["-y", "@originchain/telemetry-mcp"],
      "env": {
        "OC_TELEMETRY_AGENT": "http://127.0.0.1:8892"
      }
    }
  }
}

Cursor, in .cursor/mcp.json, uses the same shape.

Variable

Default

Meaning

OC_TELEMETRY_AGENT

http://127.0.0.1:8892

Base URL of the telemetry agent

OC_TELEMETRY_TIMEOUT

120000

Per-call timeout in milliseconds

Tools

Tool

Use it for

log_volume

Total volume and distinct pattern count

top_patterns

Highest-volume log patterns

similar_patterns

Meaning-based search, finds related patterns sharing no keywords

recent_events

The actual recent log lines, with real values rather than templates

recent_errors

Top error patterns in a window, with the window's total volume

incident_analysis

One call fusing semantic cluster, latest occurrence, trace chain, service graph and rate anomaly

service_graph

Who calls whom, with call counts

fts_search

Keyword search over log template text

trace_lookup

Every span of one distributed trace

sql_query

One read-only SELECT for a specific filtered lookup

Two notes worth knowing, because they change the answers you get.

Do not filter on severity for a loose "any errors?" question. Services here log recoverable failures at WARN, so filtering on ERROR finds nothing and reads as "no errors". Filter by service or by substring instead.

Prefer recent_events over a sorted sql_query when you want actual log lines. Ordering over the occurrences table times out.

If a tool fails

The most common failure is that the agent is not reachable, because the port-forward is not running. The server says so explicitly rather than returning a bare connection error, so the message in your agent's transcript should tell you what to fix.

How it works

This process is deliberately thin. It advertises the tool surface over stdio and forwards each call to the agent's /tool endpoint. The tools themselves run next to the data: semantic search embeds the query server-side, and incident analysis fuses five separate lookups into one call. Keeping that logic on the server means this package does not have to track the rollup schema, and it means your own host model does the orchestration rather than a model hard-coded here.

Licence

MIT. Copyright Silicoyn Technologies Pvt Ltd.

Available Tools

10 tools
incident_analysisA

FLAGSHIP: one call fuses semantic cluster + latest occurrence (with the real log line) + trace causal chain + service graph + rate anomaly, cited. Use for compound incident questions.

Inputs: query_text (required), k, window_min.

log_volumeA

Total log volume and distinct pattern count, instant from the rollup.

Inputs: no named parameters.

recent_errorsA

Top ERROR/FATAL patterns in the last N minutes WITH the window's total volume, so 'no errors' is interpretable; also returns the actual recent error lines.

Inputs: minutes.

recent_eventsA

The ACTUAL most-recent log lines (real values, not the / template), newest first — for 'what was the latest X', 'show the actual line', recent payment/auth/timeout events (ANY severity). Filter by service, severity, and/or a substring. For a loose 'error/problem' do NOT set severity=ERROR (those usually log as WARN); filter by service or contains.

Inputs: limit, minutes, service, contains, +1 more.

service_graphA

Service dependency edges (who calls whom, call counts) from the maintained rollup. Pass a service for depends_on/called_by; omit for the whole graph.

Inputs: service.

similar_patternsA

Semantic (meaning-based) search over log patterns — finds related patterns even when they share no keywords. Query embedded server-side; returns cited matches.

Inputs: query_text (required), k.

sql_queryA

One read-only SELECT for a specific filtered lookup. occurrences has a body column = the actual scrubbed log line (recent rows only). No ORDER BY over occurrences (times out); prefer recent_events for actual lines.

Inputs: sql (required).

top_patternsC

The highest-volume log patterns, instant from the rollup.

Inputs: limit.

trace_lookupB

All spans of one distributed trace, ordered by start time.

Inputs: trace_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools target clearly distinct concerns: aggregates, pattern search, raw lines, errors, traces, and dependency graphs. Some overlap exists between fts_search and similar_patterns, and between recent_events and recent_errors, but descriptions are explicit enough that an agent can disambiguate.

    Naming Consistency4/5

    All names use lowercase snake_case and are mostly noun-phrase query names like log_volume, top_patterns, and service_graph. A few names like trace_lookup and sql_query hint at actions, so the pattern is not perfectly uniform, but it is readable and predictable.

    Tool Count5/5

    Ten tools is well-scoped for a telemetry server. Each tool covers a distinct analytical need—aggregation, pattern search, raw log access, error analysis, incident synthesis, dependencies, traces, and SQL—without feeling bloated or redundant.

    Completeness5/5

    The surface covers the core telemetry workflow comprehensively: finding patterns, searching semantically and by keyword, inspecting actual log lines, analyzing errors, investigating entire incidents, tracing requests, and exploring service dependencies. The read-only SQL escape hatch also covers edge cases, so there are no obvious dead ends.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables AI agents to query Prometheus metrics and Loki logs for intelligent alert investigation and troubleshooting. Provides service discovery, metric querying, log searching, and correlation tools to help identify root causes of issues.
      9
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables LLMs to query telemetry data via the Spyglass AI agent, providing intelligent insights about application performance, errors, and bottlenecks.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language querying and analysis of OpenTelemetry traces, metrics, and logs stored in Elasticsearch/OpenSearch, allowing AI assistants to investigate performance issues, find root causes, and explore system behavior.
      16 npm
      14
      MIT