otel-mcp
otel-mcp
OpenTelemetryのトレース、メトリクス、ログを、3つのOTLPワイヤ形式のいずれかで、同時に1つ以上のOTLPエンドポイントに出力するMCPサーバーです。
grpc— OTLP/gRPC (HTTP/2上のprotobuf)http/protobuf— OTLP/HTTP バイナリprotobufhttp/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_ENDPOINTOTEL_EXPORTER_OTLP_PROTOCOL(grpc|http/protobuf|http/json)OTEL_EXPORTER_OTLP_HEADERS(カンマ区切りのk=vペア)OTEL_EXPORTER_OTLP_INSECURE(gRPC TLSの切り替え)
ツール
エンドポイント管理
ツール | 目的 |
| 名前付きOTLP送信先(URL、プロトコル、シグナル、ヘッダーなど)を登録します。 |
| 名前を指定してエンドポイントを削除します。 |
| すべてのエンドポイントを削除します。 |
| 現在のエンドポイントを列挙します。 |
| エンドポイントと利用可能な模倣プロファイルを表示します。 |
エンドポイントは呼び出しごとに選択されます。シグナルを出力するすべてのツールは endpoints: [names] 引数を受け取ります。省略した場合は、そのシグナルタイプを受け入れるすべてのエンドポイントにファンアウトします。
生シグナルの出力
ツール | 入力の形状 |
|
|
|
|
|
|
模倣(Mimicry)
ツール | 目的 |
| すべてのプロファイルとそのパラメータを表示します。 |
| プロファイルを1つ実行し、そのバンドルを一度送信します。 |
| プロファイルをループ実行して、持続的なトラフィックをシミュレートします。 |
組み込みプロファイル:
プロファイル | 外観 |
| HTTPセマンティック規約、アクセスログ、リクエストカウンター、レイテンシヒストグラムを備えたサーバー・スパン。 |
|
|
|
|
| メッセージングセマンティック規約を備えたプロデューサー/コンシューマー・スパン。 |
|
|
| リソース = 完全な |
|
|
セッション例
> 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"}}
]新しい模倣プロファイルの追加
src/otel_mcp/mimics.py内でMimicBundleを返す関数を作成します。同ファイルの末尾にある
PROFILES辞書に登録します。list_mimic_profilesを呼び出して、パラメータが正しく読み込まれたか確認します。
プロファイルは宣言的なままです。それぞれがスパン/メトリック/ログの仕様を返し、それらが同じジェネレーターパイプラインを流れるため、リソースの適切なマージ、ワイヤ形式のサポート、ファンアウトが自動的に継承されます。
Maintenance
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
- Alicense-qualityDmaintenanceAn MCP server implementation that enables dynamic configuration of OpenTelemetry Collectors, allowing users to add, remove, and configure receivers, processors, and exporters through MCP tools.2652GPL 3.0
- AlicenseBqualityCmaintenanceA mock MCP server for testing MCP client implementations and development workflows. Supports tools, prompts, and resources across multiple transport protocols (stdio, HTTP, SSE).1MIT
- AlicenseBqualityCmaintenanceMCP server for analyzing OpenTelemetry traces with performance and error diagnosis, supporting loading from files, AWS X-Ray, and CloudWatch.8MIT
- AlicenseAqualityDmaintenanceMCP server that gives AI agents access to your application's OpenTelemetry traces for querying, analysis, and debugging.5262MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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