mcp-monitor-sdk
Hosted monitoring SDK for Python MCP servers. User guide · Developer guide
User guide
Create a server and API key at https://mcp-moniter.vercel.app/. Wrap your FastMCP server with this package. Tool-call metrics (name, duration, success/error) are batched and sent to the hosted API. They are not application logs. Open the same dashboard to see metrics and analytics for that key’s server.
pip install mcp-monitor-sdk
from mcp_monitor_sdk import MonitoredFastMCP
server = MonitoredFastMCP(
"todo-mcp",
api_key="replace-with-a-64-character-or-longer-api-key",
)
@server.tool()
def todos_list() -> str:
"""List all todos."""
return "No todos."
if __name__ == "__main__":
server.run()
Omit metrics_server_url in production. Default ingest is https://mcp-metrics-server.just-a-dev.workers.dev/v1/metrics.
Developer guide
Same payload as the JS SDK. Built to sit next to the official mcp package.
When developing this repo against a local API:
server = MonitoredFastMCP(
"todo-mcp",
api_key="replace-with-a-64-character-or-longer-api-key",
metrics_server_url="http://localhost:8000/v1/metrics",
)
Options
| Option | Required | Default | Notes |
|---|---|---|---|
api_key |
yes | Min 64 characters; sent as X-API-Key |
|
metrics_server_url |
no | Workers /v1/metrics |
Full ingest URL |
batch_size |
no | 10 | Max 100 |
retry_attempts |
no | 2 | 0 still tries once |
timeout_ms |
no | 5000 | |
flush_interval_ms |
no | 5000 | |
log_level |
no | info |
debug | info | warn | error | silent |
Failed flushes are restored to the buffer. Process exit drains remaining events over a sync HTTP POST. Body is a JSON array of events.
Local checkout:
pip install -e ./cloud/sdk/py
Publish:
cd cloud/sdk/py
python -m build
twine upload dist/*
Metadata
Release files for mcp-monitor-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_monitor_sdk-0.1.0.tar.gz | 7.8 kB | Without provenance | Details for mcp_monitor_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_monitor_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_monitor_sdk-0.1.0-py3-none-any.whl |
Total release size: 18.6 kB
Release files / mcp_monitor_sdk-0.1.0.tar.gz
| Download URL | mcp_monitor_sdk-0.1.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91767084be05f0cf1308c81d56737b91f093641f48b9b3623a4d19dbfbc33c6b
|
|
BLAKE2b-256 checksum How to use checksums |
96451583915dd7215bd9e7691bbe9583c704bb9f6e7c4b65e8c7cbf5c451893b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / mcp_monitor_sdk-0.1.0-py3-none-any.whl
| Download URL | mcp_monitor_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95d35e2406e3bac2f26daf34b4e399e94d67c80b7dccbe257a59040c5046d372
|
|
BLAKE2b-256 checksum How to use checksums |
36623e06207269d9b44737d1470b567014ada93ed3192395ad522bf9d658fc12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for mcp-monitor-sdk 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.