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.
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.
- The MCP client connects and discovers tools from the MCP server.
- The server advertises its tools over the transport.
- 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.
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.
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:
- Measure MCP server response times for context retrieval requests under load.
- Log server CPU and memory use during peak times to find resource limits.
- 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.