mcp-demo-server-otel
Demonstration of a Remote MCP server instrumented with OpenTelemetry tracing and sending traces to Datadog.
MCP OpenTelemetry Server Demo
Demonstration of a Remote MCP server instrumented with OpenTelemetry tracing and sending traces to Datadog. This provides a single connected trace from MCP server through to any backend APIs or databases giving you a complete understanding of your MCP server availability.
Features:
- Bundles a lightweight OpenTelemetry collector using rotel
- Scripts that deploy to Render
- Pushes trace spans to Datadog (using early experimental rotel trace support)
- Pulls the latest weather forecast from a configurable backend API
Deploying to Render
- Clone repo
- Setup a new webservice in Render using the repo fork
- Set the following Render properties:
- Build script:
./scripts/render-build.sh
- Run script:
./scripts/render-start.sh
- Build script:
- Set the following environment variables:
DATADOG_API_KEY
: Your Datadog API keyDATADOG_REGION
: defaults to us1, options: us3, us5, eu, ap1WEATHER_API
: API endpoint of an API returning weather forecast given a zipcode
- Deploy!
You can use the MCP Inspector to connect to your new MCP Server's endpoint for testing.
TODO
This application does not include authentication/authorization support, so make sure to adjust to your particular needs. Cloudflare has discussed their recent approach for how to use an OAuth flow for MCP.
Developing
This project uses uv, to get started use uv sync
to install dependencies.
Related MCP Servers
View all monitoring servers →mcp-grafana
by grafana
A Model Context Protocol (MCP) server for Grafana providing access to your Grafana instance and its ecosystem.
kubectl-mcp-server
by rohitg00
Kubectl MCP Server is a Model Context Protocol server for Kubernetes, enabling AI assistants to interact with Kubernetes clusters using natural language.
LitterBox
by BlackSnufkin
LitterBox is a controlled sandbox environment for security professionals to develop and test payloads, offering advanced analysis capabilities.
search1api-mcp
by fatwang2
A Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.
mcp-jfrog
by jfrog
Model Context Protocol (MCP) Server for the JFrog Platform API, enabling repository management, build tracking, release lifecycle management, and more.
mcp-monitor
by polishedcat
A system monitoring tool that exposes system metrics via the Model Context Protocol (MCP).
prometheus-mcp-server
by pab1it0
A Model Context Protocol (MCP) server for Prometheus, enabling access to Prometheus metrics and queries through standardized MCP interfaces.