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.

AI app (host) + MCP clientJSON-RPC messagesMCP server (bakery-orders)
  1. 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

Question 1

1.What problem does MCP mainly solve?

Question 2

2.In MCP, which offers “bakery://policies/returns” for the app to read?

Question 3

3.What does the client send first when it connects to a server?

Question 4

4.Five AI apps need eight systems. How many pieces with MCP, versus custom integrations?

Quiz score: 0 of 4

Tip: answer every quiz question correctly first.

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.