otel-mcp
otel-mcp
Ein MCP-Server, der OpenTelemetry-Traces, -Metriken und -Logs gleichzeitig an einen oder mehrere OTLP-Endpunkte sendet, und zwar in einem der drei OTLP-Wire-Formate:
grpc— OTLP/gRPC (Protobuf über HTTP/2)http/protobuf— OTLP/HTTP binäres Protobufhttp/json— OTLP/HTTP proto3-JSON (spezifikationskonform)
Er enthält außerdem Profile zur Werkzeug-Nachahmung, die realistische Signalbündel erzeugen, die wie bekannte Tools geformt sind (Nginx, Postgres, Redis, Kafka, AWS-Lambda, Kubernetes-Pod, generischer gRPC-Dienst), sodass Sie einen Collector oder ein Backend mit Datenverkehr füllen können, der wie eine echte Umgebung aussieht.
Installation
uv venv
uv pip install -e .Related MCP server: Mock MCP Server
Ausführung
otel-mcp # stdio transport — wire into any MCP clientOder über eine MCP-Client-Konfiguration (z. B. Claude Desktop, Claude Code):
{
"mcpServers": {
"otel": {
"command": "otel-mcp"
}
}
}Env-Bootstrap
Wenn OTEL_EXPORTER_OTLP_ENDPOINT beim Start gesetzt ist, wird ein Endpunkt namens default unter Verwendung der Standard-OTEL-Umgebungsvariablen registriert:
OTEL_EXPORTER_OTLP_ENDPOINTOTEL_EXPORTER_OTLP_PROTOCOL(grpc|http/protobuf|http/json)OTEL_EXPORTER_OTLP_HEADERS(durch Kommas getrenntek=v-Paare)OTEL_EXPORTER_OTLP_INSECURE(gRPC TLS-Umschalter)
Tools
Endpunkt-Verwaltung
Tool | Zweck |
| Registriert ein benanntes OTLP-Ziel (URL, Protokoll, Signale, Header, …). |
| Entfernt einen Endpunkt anhand des Namens. |
| Entfernt alle Endpunkte. |
| Listet die aktuellen Endpunkte auf. |
| Endpunkte + verfügbare Nachahmungsprofile. |
Endpunkte werden pro Aufruf ausgewählt: Jedes signalgebende Tool akzeptiert ein endpoints: [names]-Argument. Wenn Sie es weglassen, wird das Signal an alle Endpunkte gesendet, die diesen Signaltyp akzeptieren.
Rohsignal-Emission
Tool | Form der Eingabe |
|
|
|
|
|
|
Nachahmung (Mimicry)
Tool | Zweck |
| Zeigt jedes Profil mit seinen Parametern an. |
| Führt ein Profil aus und sendet dessen Bündel einmalig. |
| Führt ein Profil in einer Schleife aus, um anhaltenden Datenverkehr zu simulieren. |
Integrierte Profile:
Profil | Wie es aussieht |
| Server-Spans mit HTTP-Semconv, Zugriffslogs, Anforderungszählern & Latenz-Histogrammen. |
| DB-Client-Spans mit |
| DB-Client-Spans mit |
| Producer/Consumer-Spans mit Messaging-Semconv. |
| Server-Spans mit |
| Ressource = vollständige |
| Server-Spans mit |
Beispiel-Sitzung
> 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"}}
]Hinzufügen eines neuen Nachahmungsprofils
Schreiben Sie eine Funktion, die ein
MimicBundleinsrc/otel_mcp/mimics.pyzurückgibt.Registrieren Sie sie im
PROFILES-Dictionary am Ende dieser Datei.Rufen Sie
list_mimic_profilesauf, um zu bestätigen, dass die Parameter übernommen wurden.
Profile bleiben deklarativ: Jedes gibt Span-/Metrik-/Log-Spezifikationen zurück, die durch dieselbe Generator-Pipeline fließen, sodass sie automatisch die korrekte Ressourcen-Zusammenführung, Wire-Format-Unterstützung und Fan-Out erben.
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