Skip to content
AgenticAIWiki
  1. Learn
  2. Part 7
  3. 35. MCP explained
  4. 35.1

Lesson 35.1 · 1 of 6 · 4 min read · Reviewed 24 Nov 2026

Why MCP exists

By the end, you can

  • Explain the problem MCP solves.
  • Describe MCP as a standard for connecting AI apps to tools and data.

Before MCPModel Context Protocol (MCP): An open protocol that standardises how AI applications connect to tools, data and prompts through servers., connecting an AI app to a tool meant writing glue code for that app and that tool. Three apps and ten tools meant thirty integrations, each slightly different.

The idea

The Model Context Protocol is an open standard, introduced by Anthropic in 2024, for how AI applications talk to tools and data sources. A tool is wrapped once as an MCP serverMCP server: A program that exposes tools, resources and prompts to AI applications using the Model Context Protocol.. Any app that speaks MCP, an MCP client, can use it.

It’s often compared to USB-C for AI: one plug shape, many devices.

What you get

  • Reuse: the same GitHub, database or Slack server works in Claude Code, Claude Desktop, the Agent SDKClaude Agent SDK: Anthropic’s library for building agents on the same loop that powers Claude Code, with tools, hooks, subagents and MCP. and other compatible apps.
  • An ecosystem: many ready-made servers exist for common systems.
  • Separation: the people who own a system can ship its MCP server; agentAgent: A system where a model decides its own next steps, calling tools in a loop until the task is done. builders just connect to it.

What MCP is not

It doesn’t decide when to use a tool; the model still does that. And it doesn’t make a tool safe: you still apply least privilegeLeast privilege: Giving each component only the access it needs for its task, and no more. (34.5) and guardrailsGuardrail: A control that keeps an AI system within safe and allowed behaviour, such as input checks, tool limits or output filters. (chapter 45).

Key points

  • Without a standard, every AI app needs a custom integration for every tool: M apps times N tools.
  • The Model Context Protocol (MCP) is an open standard so one server works with any compatible app.
  • Build a tool once as an MCP server and use it from Claude Code, Claude Desktop, the Agent SDK and other clients.
Hands-on labRuns in the Playground

Count integrations with and without MCP

Show with numbers why a shared protocol beats pairwise glue as apps and tools grow.

You will have: A small table of integration counts for several organisation sizes, with the saving for each.

Steps

  1. Read the starter: each row is a number of AI apps and a number of tools.
  2. Write custom_glue(apps, tools): one integration for every app and tool pair.
  3. Write with_mcp(apps, tools): one server per tool plus one client per app.
  4. Print a row per organisation with both counts and the saving.
  5. Add your own organisation's rough numbers as a final row.

Done when

  • The 3 apps and 10 tools row shows 30 with glue and 13 with MCP.
  • The saving grows faster than either input as the rows get bigger.
  • Your own row prints without errors.

Open in the Playground No API key needed.

Starter code (Python)
orgs = [(3, 10), (6, 15), (20, 40)]

def custom_glue(apps, tools):
    # TODO: every app needs its own integration for every tool
    return 0

def with_mcp(apps, tools):
    # TODO: each tool is wrapped once as a server; each app has one MCP client
    return 0

print("apps tools glue  mcp  saved")
for apps, tools in orgs:
    g, m = custom_glue(apps, tools), with_mcp(apps, tools)
    print(f"{apps:>4} {tools:>5} {g:>5} {m:>4} {g - m:>6}")
# TODO: add a row for your own organisation
Show a solution
orgs = [(3, 10), (6, 15), (20, 40), (8, 25)]  # the last row is "my organisation"

def custom_glue(apps, tools):
    return apps * tools          # M x N

def with_mcp(apps, tools):
    return apps + tools          # M + N

print("apps tools glue  mcp  saved")
for apps, tools in orgs:
    g, m = custom_glue(apps, tools), with_mcp(apps, tools)
    print(f"{apps:>4} {tools:>5} {g:>5} {m:>4} {g - m:>6}")
print("Glue grows as M x N; MCP grows as M + N.")
Quick checkYour team wrote the same Jira integration three times for three AI apps. What does MCP offer?
How sure are you?
Pick an answer and how sure you are