Skip to main content
Glama

otel-mcp

OpenTelemetryのトレース、メトリクス、ログを、3つのOTLPワイヤ形式のいずれかで、同時に1つ以上のOTLPエンドポイントに出力するMCPサーバーです。

  • grpc — OTLP/gRPC (HTTP/2上のprotobuf)

  • http/protobuf — OTLP/HTTP バイナリprotobuf

  • http/json — OTLP/HTTP proto3-JSON (仕様準拠)

また、よく知られたツール(nginx、postgres、redis、kafka、aws-lambda、kubernetes pod、汎用gRPCサービス)のような形状のリアルなシグナルバンドルを生成するツール模倣プロファイルも同梱されているため、コレクターやバックエンドに実際の環境のようなトラフィックを投入できます。

インストール

uv venv
uv pip install -e .

Related MCP server: Mock MCP Server

実行

otel-mcp           # stdio transport — wire into any MCP client

または、MCPクライアント設定(例: Claude Desktop、Claude Code)経由:

{
  "mcpServers": {
    "otel": {
      "command": "otel-mcp"
    }
  }
}

環境変数のブートストラップ

起動時に OTEL_EXPORTER_OTLP_ENDPOINT が設定されている場合、標準のOTEL環境変数を使用して default という名前のエンドポイントが登録されます:

  • OTEL_EXPORTER_OTLP_ENDPOINT

  • OTEL_EXPORTER_OTLP_PROTOCOL (grpc | http/protobuf | http/json)

  • OTEL_EXPORTER_OTLP_HEADERS (カンマ区切りの k=v ペア)

  • OTEL_EXPORTER_OTLP_INSECURE (gRPC TLSの切り替え)

ツール

エンドポイント管理

ツール

目的

add_endpoint

名前付きOTLP送信先(URL、プロトコル、シグナル、ヘッダーなど)を登録します。

remove_endpoint

名前を指定してエンドポイントを削除します。

clear_endpoints

すべてのエンドポイントを削除します。

list_endpoints

現在のエンドポイントを列挙します。

status

エンドポイントと利用可能な模倣プロファイルを表示します。

エンドポイントは呼び出しごとに選択されます。シグナルを出力するすべてのツールは endpoints: [names] 引数を受け取ります。省略した場合は、そのシグナルタイプを受け入れるすべてのエンドポイントにファンアウトします。

生シグナルの出力

ツール

入力の形状

send_trace

{service_name, spans[]} — 各スパンには namekindattributesduration_msstatusevents[]、およびネスト用のオプションの parent_name が含まれます。

send_metric

{service_name, metrics[]} — 各メトリックには namekind (counter/up_down_counter/gauge/histogram)、unitdescriptionpoints[] が含まれます。ヒストグラムはポイントごとにサンプルのリストを受け入れます。

send_log

{service_name, records[]} — 各レコードには bodyseverityseverity_textattributestimestamp_ns が含まれます。

模倣(Mimicry)

ツール

目的

list_mimic_profiles

すべてのプロファイルとそのパラメータを表示します。

mimic_tool

プロファイルを1つ実行し、そのバンドルを一度送信します。

generate_load

プロファイルをループ実行して、持続的なトラフィックをシミュレートします。

組み込みプロファイル:

プロファイル

外観

nginx / http-server

HTTPセマンティック規約、アクセスログ、リクエストカウンター、レイテンシヒストグラムを備えたサーバー・スパン。

postgres

db.system=postgresql を備えたDBクライアント・スパン + コネクションプール・メトリクス。

redis

db.system=redis を備えたDBクライアント・スパン。

kafka

メッセージングセマンティック規約を備えたプロデューサー/コンシューマー・スパン。

aws-lambda

faas.* + cloud.* リソース属性、Lambdaアクセスログ、呼び出しメトリクスを備えたサーバー・スパン。

k8s-pod

リソース = 完全な k8s.* 属性、コンテナCPU/メモリ/ネットワークメトリクス、Started イベントログ。

grpc

rpc.system=grpc を備えたサーバー・スパン。

セッション例

> add_endpoint name="otel-collector" url="http://localhost:4318" protocol="http/protobuf"
> add_endpoint name="jaeger-json"    url="http://localhost:4318" protocol="http/json" signals=["traces"]
> mimic_tool profile="nginx" options={"count": 50, "error_rate": 0.1}
> mimic_tool profile="postgres"
> generate_load profile="kafka" iterations=10 interval_seconds=2
> send_trace service_name="checkout" spans=[
    {"name": "POST /checkout", "kind": "server", "duration_ms": 42, "attributes": {"http.response.status_code": 200}},
    {"name": "charge_card",    "kind": "client", "parent_name": "POST /checkout", "duration_ms": 18,
     "attributes": {"peer.service": "stripe"}}
  ]

新しい模倣プロファイルの追加

  1. src/otel_mcp/mimics.py 内で MimicBundle を返す関数を作成します。

  2. 同ファイルの末尾にある PROFILES 辞書に登録します。

  3. list_mimic_profiles を呼び出して、パラメータが正しく読み込まれたか確認します。

プロファイルは宣言的なままです。それぞれがスパン/メトリック/ログの仕様を返し、それらが同じジェネレーターパイプラインを流れるため、リソースの適切なマージ、ワイヤ形式のサポート、ファンアウトが自動的に継承されます。

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    An MCP server implementation that enables dynamic configuration of OpenTelemetry Collectors, allowing users to add, remove, and configure receivers, processors, and exporters through MCP tools.
    26
    52
    GPL 3.0
  • A
    license
    B
    quality
    C
    maintenance
    A mock MCP server for testing MCP client implementations and development workflows. Supports tools, prompts, and resources across multiple transport protocols (stdio, HTTP, SSE).
    1
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    MCP server for analyzing OpenTelemetry traces with performance and error diagnosis, supporting loading from files, AWS X-Ray, and CloudWatch.
    8
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    MCP server that gives AI agents access to your application's OpenTelemetry traces for querying, analysis, and debugging.
    5
    26
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • An MCP server for Arcjet - the runtime security platform that ships with your AI code.

  • MEOK MCP Test MCP — golden-file + schema-drift + tool-failure tests for any MCP server. Drop-in

  • MCP server for managing Prisma Postgres.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/michigan-public-tech-org/otel_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server