MCP ExplorerExplorer

Mcp Demo Server Otel

@streamfoldon 9 months ago
2 MIT
FreeCommunity
AI Systems
Demo of OpenTelemetry + MCP Remote Server

Overview

What is Mcp Demo Server Otel

mcp-demo-server-otel is a demonstration of a Remote MCP server that integrates OpenTelemetry for tracing and sends trace data to Datadog, providing insights into the server’s performance and availability.

Use cases

Use cases include monitoring the performance of backend APIs, analyzing server availability, and integrating with third-party APIs for real-time data retrieval.

How to use

To use mcp-demo-server-otel, clone the repository, set up a new web service on Render, configure the necessary environment variables including your Datadog API key and weather API endpoint, and deploy the service.

Key features

Key features include a lightweight OpenTelemetry collector, deployment scripts for Render, trace spans pushed to Datadog, and the ability to pull weather forecasts from a configurable backend API.

Where to use

mcp-demo-server-otel can be used in software development, monitoring, and performance analysis environments where understanding server availability and tracing requests is critical.

Content

MCP OpenTelemetry Server Demo

Datadog Trace Waterfall

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

  1. Clone repo
  2. Setup a new webservice in Render using the repo fork
  3. Set the following Render properties:
    • Build script: ./scripts/render-build.sh
    • Run script: ./scripts/render-start.sh
  4. Set the following environment variables:
    • DATADOG_API_KEY: Your Datadog API key
    • DATADOG_REGION: defaults to us1, options: us3, us5, eu, ap1
    • WEATHER_API: API endpoint of an API returning weather forecast given a zipcode
  5. 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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers