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

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "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 →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related developer tools servers