MCP server that lets AI agents send telemetry to explicitly provided endpoints.
Current MVP tools:
push_prometheus_metricfor Prometheus Pushgatewaypush_otlp_tracefor OTLP HTTP trace export
Each tool requires an endpoint argument. The server does not infer a default endpoint. Each result states which endpoint was targeted.
- TypeScript + Node.js
@modelcontextprotocol/serverzodprom-client- OpenTelemetry JS trace exporter
npm install
npm run build
npm run testDevelopment entrypoint:
npm run devProduction entrypoint:
node dist/src/index.jsSends one metric sample to the exact Pushgateway endpoint provided by the caller.
Implementation:
- Tool registration:
src/server.ts - Handler:
src/tools/push-prometheus-metric.ts - Validation:
src/schemas/prometheus.ts - Sink service:
src/services/prometheus-pushgateway.ts
Important inputs:
endpointjobNamemetricNamemetricTypevaluehelp
Exports one span to the exact OTLP traces endpoint provided by the caller.
Implementation:
- Tool registration:
src/server.ts - Handler:
src/tools/push-otlp-trace.ts - Validation:
src/schemas/otlp.ts - Sink service:
src/services/otlp-trace-export.ts
Important inputs:
endpointserviceNamespanNameattributesdurationMsor explicit timestamps
Optional environment variables are parsed in src/config.ts.
SERVER_NAMESERVER_VERSIONMETRIC_TIMEOUT_MSTRACE_TIMEOUT_MSMAX_LABELSMAX_ATTRIBUTESMAX_STRING_LENGTH
- No auth yet
- No batching
- No OTLP metrics tool yet
stdiotransport only