The short answer

An MCP server is not healthy merely because its process is running. For an agent product, a useful health model separates four questions:

  1. Is the process alive?
  2. Can the server complete the MCP handshake and speak the protocol?
  3. Can a representative tool execute successfully?
  4. Are the dependencies required for that tool healthy?

Treat these as different signals with different owners and alert rules. A single 200 OK endpoint collapses them into one misleading status, while an alert for every failed agent tool call creates noise from invalid arguments, user cancellations, rate limits, and ordinary application errors.

The founder’s goal is not to watch every failure. It is to know quickly whether agents can complete customer work and whether an outage requires action from you.

Why one MCP health check is not enough

MCP uses JSON-RPC 2.0 messages over stateful client-server connections. The lifecycle starts with an initialize request: the client and server negotiate protocol versions and capabilities before normal operation begins.

That makes an HTTP liveness probe necessary but insufficient. A process can return a response while failing to negotiate capabilities, list tools, execute a tool, or reach a database. The server may be alive and still unable to deliver the outcome your customer asked for.

This distinction also matters because a server may be exposed in several forms:

  • A local child process communicating over standard input and output
  • A remote service using an HTTP-based transport
  • A streamable HTTP service where the client maintains a session
  • A gateway that fronts one or more upstream MCP servers

The implementation changes, but the monitoring questions do not. Your health system should remain meaningful across deployment models.

The four-layer health model

1. Process availability: is the server running?\n

This is the cheapest layer and the foundation for automatic recovery. It answers only whether the process or service instance exists.

For a local process, the supervisor can check whether the child process is still running. For a remote deployment, use the platform’s liveness mechanism and restart the instance when the liveness check fails.

A liveness probe should be:

  • Cheap
  • Independent of external APIs and databases
  • Unable to create a dependency cascade
  • Focused on detecting a wedged or exited process

Do not make liveness depend on the third-party services your tools call. If a database outage causes every instance to restart, you may turn a recoverable dependency problem into a broader outage.

Useful signal: process state, heartbeat age, or platform liveness status.

Typical action: restart or replace an unhealthy instance.

2. Protocol readiness: can the server participate in an MCP session?

Readiness asks whether the server can establish and maintain a valid MCP session. This is closer to the real service boundary than process availability.

A readiness check should perform a bounded initialization exchange:

  1. Open the appropriate transport.
  2. Send an initialize request with a supported protocol version and client capabilities.
  3. Confirm that the server returns a valid response with a compatible protocol version and server capabilities.
  4. Complete the remaining lifecycle steps required by your transport.
  5. Close the session cleanly.

The exact shutdown behavior depends on the transport and SDK in use. What matters is that the check verifies the protocol path rather than substituting a generic HTTP request.

Store the selected protocol version and negotiated capabilities. They are valuable when a client and server fail after deployment, because the evidence tells you whether negotiation completed or whether the failure happened later.

Useful signal: successful initialization and lifecycle completion within a timeout.

Typical action: remove the instance from traffic, restart it, or withhold it from agent routing.

3. Tool execution: can a representative operation work?\n

Protocol readiness still does not prove that tools function. A server can negotiate correctly and then fail when asked to list tools or execute one.

Create a small, deterministic execution probe. It should use a harmless tool operation that exercises the important server code path without mutating customer data.

Good candidates include:

  • A read-only status or list operation
  • A synthetic record in a dedicated test tenant
  • A dry-run operation supported by the server
  • A tool invocation whose arguments are stable and easy to construct

The probe should validate the response, not merely accept any JSON-RPC response. Check that:

  • The expected tool result is returned
  • The tool did not return an MCP error object
  • The result contains the required shape or marker
  • The call finishes within the server’s latency budget

Avoid using an LLM as the health-check driver. Agent-generated arguments introduce variability, cost, and false failures. A deterministic probe gives you a repeatable signal about the MCP server itself.

Useful signal: successful execution of a known read-only tool with a valid result.

Typical action: mark the server “not ready for work,” even if the process is alive.

4. Dependency health: can the server reach what the tool needs?

The final layer covers databases, APIs, filesystems, identity providers, queues, and other services required by MCP tools.

Do not necessarily test every dependency on every probe. A dependency check is useful only when the dependency is required for the server’s advertised capabilities and its failure has a meaningful effect on customers.

For each critical dependency, capture:

  • Whether the server can connect
  • Whether authentication succeeds
  • Whether the dependency responds within a meaningful deadline
  • Whether the failure is transient or persistent
  • Whether the affected tool can degrade safely

A database connection check is not equivalent to executing a query against the table your tool reads. Likewise, an HTTP status from an external API does not prove that the server holds usable credentials. Prefer a narrow operation that validates the path the tool will actually take.

Useful signal: dependency-specific state, error category, and last successful use.

Typical action: report degraded capability, fail over, or trigger a domain-specific remediation.

Design the health contract before writing probes

Use a small status model that reflects what an agent can actually do. Avoid a vague healthy: true flag.

A practical contract might be:

{
  "status": "ready | degraded | unavailable",
  "process": "running | restarting | stopped",
  "protocol": "ready | incompatible | timeout",
  "execution": "pass | fail | skipped",
  "dependencies": {
    "primary_database": "pass",
    "external_api": "degraded"
  },
  "checked_at": "server-generated timestamp"
}

This status belongs to a monitoring endpoint or service, not necessarily to the MCP tools themselves. Exposing a conventional health endpoint is convenient for orchestrators, but it should summarize the same checks used by your monitoring system.

A useful rule is:

  • Unavailable: the server cannot support an agent workflow at all.
  • Degraded: some advertised capabilities work, while others do not.
  • Ready: the expected server path works within its defined limits.

If a server has several independent tool families, prefer per-capability status over one global label. A server that can search records but cannot send email is not fully healthy, but it may still be useful for read-only workflows.

Prevent noisy alerts during agent workflows

A failed tool call is not automatically a server-health incident. It can result from malformed arguments, a missing credential, a denied permission, a user cancellation, a third-party rate limit, or a business-rule rejection.

Classify outcomes before deciding whether to page.

Separate health failures from request failures

Treat these as request-level errors rather than server outages:

  • JSON-RPC input or validation errors
  • Tool arguments rejected by the server
  • Authentication or authorization failures for one request
  • User cancellation or timeout
  • Expected business errors
  • Rate limits imposed by a dependency

Treat these as health signals when they are systemic and reproducible:

  • The process exits or repeatedly restarts
  • Initialization fails across isolated attempts
  • The deterministic tool probe fails independently of customer traffic
  • Critical dependencies are unreachable across multiple checks
  • The server returns malformed protocol responses

An MCP runtime-fault study described failures across protocol interactions, tool invocations, schema enforcement, state management, model-provider integration, security validation, and timeouts or cancellation. That breadth is a reason to classify errors carefully, not to treat every exception as the same outage.

Use consecutive-failure thresholds

A single failed probe can be caused by a brief network interruption. Require several consecutive failures unless the failure is unambiguously terminal, such as an exited process or incompatible protocol version.

The right threshold depends on probe frequency and business tolerance. The important point is to use time and repetition rather than alert immediately on every transient failure. You can also distinguish:

  • Immediate alert: process crash, failed restart loop, or confirmed security/configuration failure
  • Short-window alert: repeated readiness or execution failures
  • Dashboard-only signal: degraded dependency, rate limit, or expected request error

Alert on capability, not every request

An alert should say what customer capability is impaired. “MCP server down” is less actionable than:

“The CRM server cannot complete initialization after three attempts; agent calls to customer search and record update are unavailable.”

Include the failing layer, affected tools, last successful check, dependency involved, and recent probe errors. Do not include full customer payloads or sensitive tool arguments in alert messages.

Keep synthetic checks separate from customer traffic

A failed customer request may reflect bad input. A synthetic probe should establish a known-good path. If both fail, confidence rises. If only customer traffic fails, investigate request semantics, permissions, or workload.

Avoid a probe that shares credentials or a test tenant with live customer operations in a way that masks outages. Conversely, do not make the synthetic path depend on a feature customers never use merely to make the dashboard green.

A practical implementation sequence

Step 1: Draw the dependency boundary

List the server’s advertised tools and the resources each one needs. Mark which dependencies are critical, optional, or degradable.

Do not begin by instrumenting every HTTP client in the codebase. Begin with customer-visible capabilities.

Step 2: Select one probe per important capability

For a small server, this may be:

  • One initialization probe
  • One read-only tool probe
  • Two dependency checks

For a larger server, create separate probes for independent capability groups. A single representative probe cannot prove that every tool works.

Step 3: Set timeouts from workflow budgets

The health check must finish faster than the agent workflow it protects. Otherwise, monitoring becomes another source of latency and duplicate work.

Use separate budgets for:

  • Transport connection
  • Protocol initialization
  • Tool execution
  • Dependency calls

A dependency timeout should not consume the entire readiness timeout. Bound each stage and record where the time was spent.

Step 4: Define the status transition rules

Write them before implementation. For example:

  • A restarted process remains unavailable until the protocol probe passes.
  • A protocol-ready server with a failed optional dependency is degraded, not unavailable.
  • A failed execution probe makes affected capabilities unavailable even if the process is alive.
  • A single rate-limited dependency does not imply that the MCP server itself failed.

These rules prevent dashboard disagreements and make alert behavior predictable.

Step 5: Verify behavior under controlled failures

Test the monitoring design by injecting controlled failures in development or staging:

  • Stop the process.
  • Return an incompatible protocol version.
  • Make the representative tool return an MCP error.
  • Block one dependency.
  • Introduce a slow response.
  • Return a malformed result.

The expected outcome is not only “the alert fires.” It is that the correct layer becomes unhealthy, the right capability is marked affected, and unrelated alerts stay quiet.

What to record for incident diagnosis

Retain structured metadata for every check:

{
  "server_id": "crm-primary",
  "server_version": "release identifier",
  "protocol_version": "negotiated protocol version",
  "probe": "read_customer_by_test_id",
  "result": "fail",
  "failure_layer": "dependency",
  "dependency": "primary_database",
  "error_category": "connect_timeout",
  "duration_ms": 1500,
  "checked_at": "server-generated timestamp"
}

Avoid recording arbitrary customer data in probe results. Stable error categories are more useful for dashboards than raw stack traces, while detailed traces can remain in restricted logs.

For distributed servers, include a deployment or instance identifier. Otherwise, you may see a healthy aggregate while a particular agent route continues to target a broken instance.

Decisions for a small team

You do not need a large monitoring platform on day one. You need a dependable distinction between states and a small number of actionable signals.

A sensible minimum implementation is:

  1. Platform liveness for process recovery
  2. A real MCP initialization check
  3. One harmless, deterministic tool call
  4. Checks for the few dependencies required by that tool
  5. Error classification and consecutive-failure alerting
  6. A status contract that names affected capabilities

If your server depends on a third-party MCP implementation, audit whether its permissions and expected capabilities are documented before exposing it to production agents. That connects availability monitoring with your MCP permission scope audit checklist. If the server’s maintenance status or release cadence is uncertain, the solo founder’s guide to detecting stale MCP servers helps with a related operational decision.

Frequently asked questions

Should the health check call an LLM?

Usually, no. Use deterministic tool calls. Model behavior can vary and may obscure whether the MCP server is healthy.

Is a TCP or HTTP liveness check enough?

No. It can prove that a process is reachable, but not that MCP initialization, tool execution, and critical dependencies work.

Should one failed dependency make the whole server unavailable?

Not necessarily. Mark the affected capability degraded or unavailable. Reserve a global unavailable state for failures that prevent meaningful use of the server.

How often should readiness checks run?

Frequently enough to detect customer-impacting failures, but less often than normal agent traffic. Use repeated failures and consecutive checks to distinguish persistent problems from transient noise. The right interval depends on your workflow’s cost of failure and the probe’s resource cost.

Should synthetic probes run from inside the server?

An internal check can validate code and dependencies, but it may miss network, routing, or transport problems between the agent host and server. For production coverage, include an external probe that follows the same path agents use.

The bottom line

The best MCP health check does not try to detect every possible error. It protects a defined agent capability with the least ambiguous signal available.

Keep process liveness for recovery, MCP initialization for readiness, deterministic tool execution for functional proof, and dependency checks for the causes behind failures. Then separate request errors from systemic health failures before alerting.

That design gives founders what they need: fewer interruptions, faster diagnosis, and alerts that say whether customer work can continue—not merely that a process emitted an error.

Sources