Module 6 · Lesson 1 · 12 min read
What is the Model Context Protocol (MCP)?
What Is the Model Context Protocol?
Introduction
Every agent needs tools and data, and every service has a different way of connecting. The Model Context Protocol (MCP) is an open standard that unifies this way. In this lesson we understand the problem it solves, its roles and core components, and where it stands relative to function calling, according to the latest specification, dated 2026-07-28.
Learning objectives
- Explain the problem of multiple integrations that MCP addresses
- Name the host, client and server roles and the three core components
- Distinguish between MCP and function calling inside the model
- Read a simple MCP request according to the 2026-07-28 specification
The problem: an integration for every pair
Imagine you have three AI applications (a chat assistant, a code editor and a research agent), and you want to connect each of them to four services (the calendar, files, the course database and the ticketing system). Without a common standard you need to write a separate integration for every pair: 3 × 4 = 12 integrations, each with its own way of describing tools and handling errors. And with every new application or service the number grows.
The Model Context Protocol (MCP) is an open standard that defines a common language between the two sides: each service is written once as an MCP server, and each application learns once how to be a host that talks to servers. The work then becomes close to 3 + 4 instead of 3 × 4.
Roles and components in brief
MCP is based on three roles (we cover them in detail in the next lesson):
- Host: the application the person uses, which contains the language model and decides what is shown to it.
- Client: a component inside the host that connects to a single server and talks to it with the protocol.
- Server: a program that offers specific capabilities, such as a server for course files or for the library database.
And the server offers three basic types of components (primitives):
| Component | Who controls it | Example |
|---|---|---|
| Tools | The model decides to call them | Looking up a course timetable |
| Resources | The application decides what is added to the context | The content of the course plan file |
| Prompts | The user chooses them explicitly | A "Summarize the lecture" prompt |
The current version: 2026-07-28
Specification versions are named by dates. The latest is 2026-07-28, and its most notable feature is that it is stateless: there is no initialization handshake at the start of the connection; instead every request carries the protocol version in the _meta field under the key io.modelcontextprotocol/protocolVersion. If the client sends a version the server does not support, the server returns error -32022. And the server must provide the server/discover method so the client can learn about the server and its capabilities.
MCP messages are written in JSON-RPC 2.0 format. This is a request to call a tool according to the current version:
{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "get_course_schedule",
"arguments": {"course_code": "CS101"},
"_meta": {"io.modelcontextprotocol/protocolVersion": "2026-07-28"}
}
}MCP and function calling
You may ask: isn't the function calling we studied in the tools module enough? The two complement each other and do not compete. Function calling describes how the model requests that a tool be run inside a single application. MCP describes how the application discovers the tools in external servers and calls them in a unified way. In practice: the host fetches the list of tools from the MCP servers, presents them to the model in function calling format, and when the model chooses a tool the client sends a tools/call request to the appropriate server.
A practical example: a university assistant with two servers
A university assistant connects to two servers: a courses server and a library server. The following simulation in Python (with no libraries and no real model) shows the core idea: the host does not know the details of each service; it gathers the tools from all the servers through the same interface, then routes the call to its owner:
class FakeServer:
def __init__(self, name, tools):
self.name, self.tools = name, tools
def list_tools(self):
return [{"name": n, "description": d} for n, (d, _) in self.tools.items()]
def call_tool(self, name, arguments):
return self.tools[name][1](**arguments)
courses = FakeServer("courses", {
"get_course_schedule": ("Course timetable", lambda course_code: f"{course_code}: Sunday 10:00"),
})
library = FakeServer("library", {
"search_books": ("Search books", lambda query: [f"Introduction to {query}"]),
})
registry = {}
for server in (courses, library):
for tool in server.list_tools():
registry[tool["name"]] = server
print("Available tools:", list(registry))
print(registry["get_course_schedule"].call_tool("get_course_schedule", {"course_code": "CS101"}))
print(registry["search_books"].call_tool("search_books", {"query": "agents"}))Adding a third server needs no change to the host's logic, and that is the value of the standard.
There are official SDKs for the protocol, including the Python package mcp (version 2.3.0) and the TypeScript package @modelcontextprotocol/sdk (version 1.32.2) (according to the official documentation, reviewed 18 November 2026).
Summary
MCP is an open standard that unifies how AI applications connect to tools and data, turning the integration problem from a product into a sum. Its roles are the host, the client and the server, and its core components are tools, resources and prompts. The 2026-07-28 specification is stateless: the version is sent in _meta with every request, and the server provides server/discover, while initialize is an old flow. And MCP complements function calling rather than replacing it.
Terms
| Term | English | Definition |
|---|---|---|
| Model Context Protocol | Model Context Protocol (MCP) | An open standard for connecting AI applications to tools and data |
| Host | Host | The application the person uses, which contains the model |
| Client | Client | A component in the host that connects to a single server |
| Server | Server | A program that offers tools, resources and prompts through the protocol |
| Primitive | Primitive | A type of capability the server offers: a tool, a resource or a prompt |
| Stateless | Stateless | A design in which every request carries what it needs without a prior initialization session |
Review questions
- Why does MCP reduce the number of integrations needed between applications and services?
- What is the difference between function calling and MCP, and how do they work together?
- Where is the protocol version sent in the 2026-07-28 specification, and what changed from older versions?
- Give an example of a tool, a resource and a prompt in an MCP server for a university course.
References
- MCP Specification 2026-07-28: Changelog modelcontextprotocol.io Reviewed on 2026-11-18
- MCP Specification 2026-07-28: Versioning modelcontextprotocol.io Reviewed on 2026-11-18
- MCP Python SDK (PyPI) pypi.org Reviewed on 2026-11-18
