We often begin building agentic systems with optimism. A language model can reason, tools can execute actions, and frameworks promise orchestration. For early prototypes, this setup works well. The agent responds correctly, tools fire as expected, and everything feels productive.
The friction appears later. Adding a new tool requires modifying the agent logic. Reusing that tool in another project means rewriting interfaces. Updating prompts risks breaking execution paths. Over time, the system becomes fragile rather than intentional.
This experience is common across agent frameworks, tool-calling APIs, and orchestration layers. The underlying issue is not model capability, but how systems integrate tools, prompts, and context.
The Model Context Protocol (MCP) addresses exactly these integration problems.
What is MCP?
Model Context Protocol (MCP) is an open protocol that standardizes how applications expose tools, data, and prompts to language models through a client–server architecture.
At its core, MCP defines a consistent way for systems to provide context to models. Instead of embedding tool logic, prompts, and data access directly inside agent code, MCP moves these concerns into dedicated servers with explicit contracts.

An important design principle behind MCP is that models should focus on reasoning, not integration details. By standardizing how context is exposed, MCP allows agent systems to evolve without constant rewrites of glue code.
Note: Anthropic introduced MCP as an open protocol to enable interoperability across tools, frameworks, and models. This prevents developers from being locked into a single ecosystem.
Why use MCP?
Modern agentic systems share a consistent set of integration challenges:
- Tool definitions tied to framework APIs: Tools are often implemented using framework-specific abstractions. This tightly couples tool logic to a particular runtime or orchestration library.
- Limited reuse outside the framework: A tool written for one agent framework rarely works elsewhere without adapters, wrappers, or duplication. Even simple utilities end up rewritten multiple times.
- Tight coupling between reasoning and execution: Prompts, decision logic, and tool execution frequently live together, making systems harder to test, audit, and evolve independently.
In small experiments, these problems are manageable. A single agent with two tools can tolerate some coupling. However, as you add more tools, the agent becomes harder to reason about. As teams grow, inconsistencies emerge in how they define tools and prompts. As models evolve, integration code becomes brittle and expensive to maintain. At scale, these issues become structural bottlenecks.

MCP approaches the problem by redefining where tools, prompts, and context live. With MCP:
- Models focus on reasoning.
- Clients coordinate interactions.
- Servers expose capabilities through stable contracts.
By separating these concerns, MCP transforms tools and prompts into reusable infrastructure rather than embedded logic.
MCP architecture at a glance
MCP follows a client–server architecture with three primary roles:
- MCP host: The environment where models run, such as an IDE, application, or agent runtime.
- MCP client: The component that manages communication between the model and one or more MCP servers.
- MCP server: A process that exposes tools, resources, and prompts through the MCP protocol.
This separation ensures that tool logic can evolve independently of model logic.
Communication and transport
MCP uses JSON-RPC as its communication format, enabling structured, debuggable, and language-agnostic messaging. Servers can communicate using multiple transports, including:
stdiofor local processes- HTTP-based streaming for remote servers
This design makes MCP suitable for both local development and production environments.

Core primitives of an MCP server
MCP defines three core primitives that servers can expose.
- Tools
- Resources
- Prompts

Each serves a distinct purpose and acts as a first-class concept within the protocol.
Tools
Tools are callable functions that perform actions or computations. They represent concrete capabilities an agent can rely on, such as executing business logic, interacting with external APIs, querying databases, or triggering workflows. By exposing these capabilities through MCP, tools become reusable building blocks shared across systems.
Example: Defining a simple tool
Resources
Resources are read-only data objects that provide context without triggering execution. They are useful for exposing reference data, configuration, or documents that inform model reasoning.
Example: Exposing a resource
Resources allow models to access structured data without invoking tools or altering system state.
Prompts
Prompts are parameterized templates that guide model behavior consistently. Unlike embedded prompt strings, MCP prompts are discoverable assets that teams can version, audit, and reuse.
Example: Defining a prompt
Scenario: Exposing a shared capability through MCP
Consider a requirement where multiple agentic workflows need to convert units between kilometers and miles.
One agent may answer user questions (“How many miles is 10 km?”). Another may normalize data before storage. A third may generate reports requiring consistent units. Each workflow needs the same capability, but none should own the conversion logic.
Without a clear boundary, this logic is often duplicated across agents or embedded directly in prompts. Over time, these small utilities become difficult to maintain. With MCP, you treat unit conversion as a shared capability exposed by a server.
Implementing the shared tool
The following MCP server exposes a single tool for unit conversion.
This tool contains only domain logic. It does not reference prompts, models, or agent behavior. Its responsibility is explicit and narrow.
Using the tool from different contexts
From an MCP client’s perspective, the interaction is straightforward:
- Discover the available tools the server exposes.
- Invoke the appropriate tool with structured inputs.
- Return the result to the model for reasoning or response generation.
The key distinction is architectural. The same MCP server can now support multiple agents, workflows, or even different models without modification. The agents reason about when to use the tool, while the server determines how the conversion is performed.
Note: MCP does not eliminate complexity; it relocates it to locations where you can manage it explicitly.
This pattern avoids framework-specific coupling, enables reuse, and preserves a clean separation between reasoning and execution.
When to use MCP?
MCP is a strong fit for:
- Multi-tool agentic systems.
- Long-lived agents that evolve over time.
- Teams working across multiple frameworks or models.
In these contexts, standardization provides compounding benefits.
MCP in the broader ecosystem
MCP is emerging as a shared infrastructure for agentic systems. An ecosystem of MCP servers is forming around databases, file systems, APIs, and developer tools, allowing capabilities to be reused across agents and frameworks. Because MCP is model-agnostic, these servers can outlive individual models or orchestration libraries, providing continuity as systems evolve.
As agentic systems become more common, architectural clarity is as vital as model capability. MCP introduces clear boundaries early, treating tools, prompts, and context as infrastructure. This approach enables reuse, testability, and long-term maintainability.