The Model Context Protocol (MCP) is a client-server standard for exposing tools, resources and prompts to LLM apps, so a capability written once works with any MCP-speaking client such as Claude Desktop, IDEs and agents.

MCP (Model Context Protocol)Diagram with these labels, in reading order: Client requests tools; Server responds with tools; Model calls tools; Model uses tools; MCP Client; Discovers Tools; MCP Server; Advertises Tools; Tool Invocation; by Model; Standardized; Discovery & Schema; Reusable Tool; Ecosystem.Client requests toolsServer responds with toolsModel calls toolsModel uses toolsMCP ClientDiscovers ToolsMCP ServerAdvertises ToolsTool Invocationby ModelStandardizedDiscovery & SchemaReusable ToolEcosystem
MCP Client-Server Interaction

Discovery and invocation between client and server

An MCP server advertises its tools and resources over one of two standard transports: standard input/output (stdio) or Streamable HTTP. When a client such as an application or IDE connects, it discovers those tools through a standardized process and presents them to the model as callable resources.

  1. The MCP client connects and discovers tools from the MCP server.
  2. The server advertises its tools over the transport.
  3. The model invokes the tools using the standardized schema.

The model calls these tools like any function. What MCP standardizes is discovery, schema definition and invocation across vendors. A client can use a data analysis tool from a server without knowing how it works. If the server updates or changes a tool, the client adapts without a rewrite of the integration logic.

The closest software analogue is the Language Server Protocol (LSP), where one language server serves many editors. MCP differs in what it brokers: tools and data for a large language model (LLM) host, rather than language intelligence for an editor.

Why N times M integrations become N plus M

Hand-writing a wrapper per tool works for a few tools. With N tools and M applications it means N × M integrations, and each tool change must be applied to every integration. Effort is duplicated and applications drift apart.

MCP standardizes the protocol, so the work becomes N + M: any MCP client can talk to any MCP server.

When MCP is worth the protocol overhead

  • Use MCP when tools are reused across several applications or shared externally, and different clients need the same set of tools behind one interface.
  • Skip MCP when a single bespoke tool serves one application. A direct function definition is simpler and avoids protocol overhead.
Control against reusability You give up some per-tool control and gain a reusable, swappable interface across applications.

Example scenario: timeouts on 20% of requests

Example scenario: MCP fails to connect on 20% of requests and callers see timeouts. The figure is illustrative.

MCP (Model Context Protocol)Diagram with these labels, in reading order: Timeout Errors; Network Latency; Protocol Mismatch; Inspect Network Logs; Check MCP Version; Increase Timeout Settings; Update Client Protocol.Timeout ErrorsNetwork LatencyProtocol MismatchInspect Network LogsCheck MCP VersionIncrease Timeout SettingsUpdate Client Protocol
MCP Debugging Flow

A likely cause is a server bottleneck under concurrent requests, particularly if context retrieval is not tuned for high throughput. An overloaded server or network latency makes the delays worse. Diagnose in order:

  1. Measure MCP server response times for context retrieval requests under load.
  2. Log server CPU and memory use during peak times to find resource limits.
  3. Check network latency between client and server with ping tests.

The remedy is to optimize the retrieval algorithm or scale the server horizontally, which raises infrastructure cost. Monitor average response time and server resource use.

Primary source. Introducing the Model Context Protocol, Anthropic, 25 November 2024.

Back to the knowledge baseRequest an assessment