Module 15 · MCP · Lesson 31 of 34
MCP: one plug for tools and data
Hosts, clients and servers; tools, resources and prompts; and a full session, message by message.
In this lesson · about 20 minutes
- Explain the problem MCP solves
- Name the roles (host, client, server) and the three things a server offers
- Follow an MCP session from handshake to tool call
Every AI app wants to connect to the same things: files, calendars, ticket systems, databases, internal APIs. Without a standard, each app writes its own integration for each system. Ten apps and twenty systems means up to two hundred custom connectors.
The Model Context Protocol (MCP) is an open standard for that connection, often compared to a USB-C port for AI. A system is wrapped once as an MCP server; any app that speaks MCP can use it.
- Host: the AI application the user works in (a chat app, an IDE, your own product). It owns the model, the conversation and the permissions.
- Client: the part of the host that keeps a connection to one server.
- Server: a program that exposes a system's capabilities.
A server can offer three kinds of things:
- Tools: actions the model can call (
get_order_status,create_ticket). - Resources: data the app can read into context, identified by a URI (a policy document, a file, a database record).
- Prompts: ready-made templates the user can pick ("Summarise this week's tickets").
Messages use JSON-RPC 2.0. Servers run locally (talking over standard input and output) or remotely (over HTTP), with authorisation for remote servers.
Try it · simulator
An MCP session, message by message
Watch an AI app connect to a bakery's MCP server: the handshake, discovering tools, calling one and reading a resource.
1. Client → Server · initialize
{ "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": { "name": "bakery-assistant", "version": "1.0" } } }The AI app (through its MCP client) opens a session and says which protocol version and features it supports.
Why a standard helps: integrations needed
Without a standard
24custom links
With MCP
10clients + servers
Check your understanding0 of 4 correct
Quiz score: 0 of 4
Written by Noviq Academy in its own words. The simulators are small teaching models that keep the real idea and leave out the scale; their numbers (prices, speeds, scores) are illustrative. Model names, prices and features change quickly, so check your provider's current documentation before you build. Read-aloud uses your device's built-in voices.