MCP Directory
Back

mcp-go-sdk-otel

by curioswitch · Go · ★ 1

OpenTelemetry instrumentation for modelcontextprotocol/go-sdk

Install

go install github.com/curioswitch/mcp-go-sdk-otel@latest

Auto-generated from the repo's primary language — check the repo's own README for its exact install instructions.

Claude Desktop config

A starting point for your claude_desktop_config.json (auto-generated — the repo's README may specify a published package name or required env vars):

{
  "mcpServers": {
    "mcp-go-sdk-otel": {
      "command": "npx",
      "args": [
        "-y",
        "github:curioswitch/mcp-go-sdk-otel"
      ]
    }
  }
}

From the README

This library provides middleware to provide observability of MCP servers and clients using OpenTelemetry. Currently only trace propagation is implemented, full traces between when making tool calls that themselves generate traces such as for Gen AI SDKs. Add to your go.mod. Add middleware to clients and servers to enable instrumentation. While typical usage requires adding sending middleware to clients and receiving middleware to servers, it is possible to have invocations in the other direction and can make sense to add both. See the [package docs](https://pkg.go.dev/mod/github.com/curios…
Read full README on GitHub →

Related other servers