MCP monitor
Monitor Model Context Protocol servers that expose tools to AI agents, catch authentication failures, stream disconnects, and protocol drift before your agents do.
MCP (Model Context Protocol) servers expose tools, resources, and prompts to AI agents. AI assistants, custom agents, and most newer agent frameworks reach out to MCP servers to extend what they can do: file system access, database queries, internal API calls.
When an MCP server goes down, AI agents do not fail loudly, they silently lose a capability. A monitoring pipeline that only counts HTTP response codes will not see the problem. The MCP monitor probes the actual protocol: it verifies that the server answers the MCP discovery or handshake request (server/discover, or initialize and tools/list on older revisions).
When to use
- Self-hosted MCP servers: internal tool catalogs running on your own infrastructure.
- Vendor MCP endpoints: when you depend on a third-party MCP (DeepWiki, GitHub, Linear) for agent workflows.
- Gateway or proxy health: agents reach MCP through a gateway and the gateway is the weak link.
- Regression catch: a post-deploy check that your MCP server still exposes the expected surface.
Supported transports
The MCP specification lists three transports. UptimeWarden supports the two that are reachable over the network:
| Transport | URL pattern | Behaviour |
|---|---|---|
| Streamable HTTP | https://server.example.com/mcp | Default. Works with servers on the current revision (2026-07-28) and with the 2025 revisions, with or without sessions. The server may answer with JSON or an event stream. |
| HTTP+SSE (deprecated 2024-11-05 transport) | https://server.example.com/sse or URL contains event-stream | The monitor opens the stream and waits for the server's first event, which names the message endpoint. |
| STDIO | ./server.py, ./server.js | Not supported. STDIO requires a local process and is not reachable remotely. The monitor returns a clear "STDIO not supported" error. |
Transport selection is automatic. A URL with /sse or event-stream goes straight to the old SSE transport. Any other URL starts with Streamable HTTP, and a server that refuses the POST outright is tried once more as an old SSE server.
How the check runs
The monitor talks to the server the way a current MCP client does:
- Current servers (2026-07-28 and later). It sends
server/discoverwith the protocol version in the headers and in_meta. A result means up. If the server lists only newer versions, the monitor retries once with one of them. - Servers on the 2025 revisions. If
server/discoveris not understood, the monitor runs theinitializehandshake, uses the session the server hands out, and callstools/list(orpingwhen the server has no tools). A result means up. The monitor then ends the session, so a check every minute does not leave sessions behind on your server. It never invents a session id. - Old HTTP+SSE servers. If the POST is refused outright, the monitor opens the event stream and expects the endpoint event.
Event-stream answers are read in full: progress notifications and keep-alive comments are skipped, and a JSON-RPC error inside the stream counts as down. Once a server is known to speak only the 2025 revisions, the monitor skips step 1 for an hour.
The response time is the time of the last request (server/discover or tools/list), not the sum of the handshake.
Creating the monitor
-
On the Monitors page choose Add monitor.
-
Choose AI Model Protocol (MCP) as the type (some types sit under Show 7 more types).
-
Fill in:
- Display name: e.g.
GitHub MCP server - MCP Endpoint: The MCP server endpoint (
https://...). SSE-based servers typically end in/sse; HTTP Streamable servers typically end in/mcp. - Check interval: the minimum depends on your plan; see the pricing page for current values.
- Timeout (sec) under Alert settings: default 30 s, enough for most servers.
- Display name: e.g.
-
Save with Start monitoring.
Reaching internal endpoints
By default UptimeWarden only contacts public MCP endpoints. For private or internal MCP servers, run a custom agent inside your environment; private network access is enabled per-agent.
What "up" actually tests
The check verifies that the server answers the protocol's discovery or handshake. It does not:
- List every individual tool.
- Try to invoke a tool.
- Validate authentication beyond "the request was not rejected."
If your MCP server uses per-tool authorisation and one tool is broken, this monitor still reports up. For deeper validation, run the failing-tool call from a synthetic test (outside the scope of MCP monitor).
Authenticated endpoints
Many MCP servers require a bearer token (for example an API key). It goes into the monitor's custom headers, for example Authorization: Bearer <token>. The monitor sends custom headers on every request of the check. It does not let them replace the protocol headers (Mcp-Session-Id, MCP-Protocol-Version, Mcp-Method).
The web UI has no custom-header field for MCP monitors (the Terraform provider has none either); headers are set only through the customHeaders field of the API. A server that needs a header therefore cannot be set up from the UI.
Use a token that can only read. The check sends only discovery or handshake requests (server/discover, initialize, tools/list or ping).
Servers that only accept an interactive OAuth sign-in cannot be checked with a static header. For those, expose an unauthenticated /health endpoint and monitor it with an HTTP monitor.
Common failure modes
| Error | Likely cause |
|---|---|
STDIO-based MCP endpoints are not supported in remote mode | The URL points to a filesystem path. STDIO MCPs cannot be monitored remotely. |
MCP HTTP request failed: connection refused | The server is not running or the port is wrong. |
HTTP 401 / HTTP 403 | The server requires authentication. Add the header as a custom header through the API; see "Authenticated endpoints". |
The URL does not answer as an MCP endpoint | The URL serves something else (a website, a different path). Check the server's MCP path, often /mcp. |
MCP tools/list failed: … | The handshake worked but the server could not list its tools. The message is the server's own. |
HTTP 410: Gone on a /sse URL | The server dropped the old SSE transport. Use its Streamable HTTP URL, often /mcp. |
SSE stream closed before the server sent its endpoint event | The old SSE server is up but sends nothing. Check server logs. |
SLA and notifications
- Down: any of the steps fails.
- Recovery: a subsequent check completes.
- Multi-location consensus: supported.
- SLO tracking: supported.
FAQ
Q: Does this call an individual tool? A: No, it only sends discovery or handshake requests (a protocol-level health check). Invoking a real tool could have side effects (sending email, charging a card), so the check stays passive.
Q: My MCP server is behind Cloudflare Access. What do I do?
A: Create an Access service token and add its two headers, CF-Access-Client-Id and CF-Access-Client-Secret, to the monitor's customHeaders field through the API; the web UI has no field for this.
Q: The check says up, but my agent still errors when calling a tool.
A: The MCP monitor does not guarantee per-tool health. Use it as a protocol-level indicator and layer a synthetic test on top for tool-level validation.
Related topics
- WebSocket Monitor: for long-lived streaming protocols
- HTTP Monitor: for token-authenticated REST endpoints
- Health Prediction: forecasts and recommendations built from your monitor history