Skip to main content

spotdowntime-mcp

See how your MCP server's tools behave for real users: calls, error rate and latency per tool, with an alert when a tool starts failing. It works with servers built on the official Python SDK, mcp: MCPServer and the low-level Server on mcp 2.x, and FastMCP on mcp 1.x.

pip install spotdowntime-mcp
from mcp.server.mcpserver import MCPServer  # on mcp 1.x: from mcp.server.fastmcp import FastMCP
from spotdowntime_mcp import instrument

mcp = MCPServer("docs")
instrument(mcp)  # reads SPOTDOWNTIME_MCP_KEY

@mcp.tool()
def search_docs(query: str) -> str:
    ...

Get the key from your MCP server monitor's page in Spot Downtime (Tool calls → Set up), and set it as SPOTDOWNTIME_MCP_KEY where the server runs. Calls show up on the monitor's page within a minute.

What's sent

For each tools/call: the tool's name, how long it took in milliseconds, and whether it worked. A call fails when the tool raises or returns an error result (isError).

Nothing else: no arguments, results, error messages, session IDs or anything about who called. Calls are sent in batches every 10 seconds from a background thread in your server, never from your users.

Options

reporter = instrument(
    mcp,
    key="mcpk_…",          # default: SPOTDOWNTIME_MCP_KEY
    flush_interval=10.0,   # seconds between batches
    on_error=lambda err: None,  # a batch couldn't be sent (it's dropped); default: one warning
)

reporter.stop()  # on shutdown: sends what's left (also done at exit)

Reporting never raises into your server and never delays a tool call. If Spot Downtime can't be reached, batches are dropped. No dependencies beyond the standard library; Python 3.10 or later.

Works with mcp 1.x and 2.x, whether you call instrument before or after registering tools. On 2.x it's added to the server's own middleware list.

Metadata

Release files for spotdowntime-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spotdowntime-mcp 0.1.1
File Size Uploaded Provenance Actions
spotdowntime_mcp-0.1.1.tar.gz 8.2 kB With provenance Details for spotdowntime_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spotdowntime-mcp 0.1.1
File Interpreter ABI Platform Actions
spotdowntime_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for spotdowntime_mcp-0.1.1-py3-none-any.whl

Total release size: 14.8 kB

Release files / spotdowntime_mcp-0.1.1.tar.gz

Download URL spotdowntime_mcp-0.1.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
12d2b675867ab4bb0912e1446fd95e26c40556140d4b5cb2bf174870a6aad72d
BLAKE2b-256 checksum
How to use checksums
52c62d539afc3c8bc161660dbeace1524e18a42cca155fe691601b39149d8c38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / spotdowntime_mcp-0.1.1-py3-none-any.whl

Download URL spotdowntime_mcp-0.1.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db4459cba2662778174f39e9f4c2749bf91ce3339c914abbd105e0ec8d65afa4
BLAKE2b-256 checksum
How to use checksums
47ab5c940bd9da1118e31dbff947dde774832dae1f52418041a266a4fc230add
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for spotdowntime-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spotdowntime_mcp-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page