Skip to main content

Tiny SDK that instruments MCP servers with Prometheus metrics + OpenTelemetry spans.

Project description

mcp-observatory-sdk

Tiny SDK that instruments MCP servers with Prometheus metrics + OpenTelemetry spans.

One-line adoption in a FastMCP server:

from fastmcp import FastMCP
from observatory_sdk import instrument

server = FastMCP("my-server")
instrument(server, service_name="my-server", prometheus_port=9090)
# ... register tools as usual ...

Zero runtime deps beyond prometheus-client and opentelemetry-api.

Companion project: mcp-observatory — the query-router MCP server that consumes the metrics this SDK emits.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_observatory_sdk-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_observatory_sdk-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_observatory_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: mcp_observatory_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_observatory_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 86da33c87df705d6a87c879045c0fc08f62d3eadcb6e86baccc0a1a5d2061e20
MD5 188d99b76b018e0b0b2a1f56468bb9a6
BLAKE2b-256 46e8c5db789a30c37b26305cbff413b572dff664839ade5b0191d59abf113a81

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_observatory_sdk-1.0.0.tar.gz:

Publisher: release.yml on vellankikoti/mcp-observatory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_observatory_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_observatory_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4d31a1aa70b6c41d54212b4e3f181621309390949106d16d92a224b74c123b4
MD5 70df71701f8f8869de93848495cdc4bd
BLAKE2b-256 cc16454ed22cb2d72081b3afc5a463f65bf15b85f629120c7f65629cf85fbb19

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_observatory_sdk-1.0.0-py3-none-any.whl:

Publisher: release.yml on vellankikoti/mcp-observatory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page