Velamuvi AIAcademy

Lesson 1 of 9 · Concepts

What Is MCP?

The Model Context Protocol (MCP) is an open standard connecting AI apps to tools and data. The problem it solves, how it works and what servers can offer.

  • 5 min read
  • Intermediate
  • Reviewed
In this lesson you will learn
  • Explain what the Model Context Protocol is and the problem it solves
  • Describe MCP's main parts: hosts, clients and servers
  • Name the three things servers offer: tools, resources and prompts
  • Know where MCP fits next to plain tool calling

One standard instead of hundreds of connectors

In the Tool and Function Calling course, you wrote tools inside your own app. That works, but every AI app needs its own code for every service: a chat app's GitHub tools can't be reused by a code editor, and a company that wants its database available to five AI apps writes five integrations.

MCP is often compared to USB-C for AI: one standard connector, instead of a different cable for every device. Technically it was inspired by the Language Server Protocol, which did the same for programming languages in code editors.

Try it yourselfPython
# Without a shared standard, every AI app needs its own connector for every service.
apps = ["Chat assistant", "Code editor", "Support bot", "Research agent"]
services = ["Google Drive", "GitHub", "Slack", "Postgres", "Calendar", "Jira"]

custom_connectors = len(apps) * len(services)     # each pair built separately
with_mcp = len(apps) + len(services)              # each app speaks MCP once, each service has one server

print(f"{len(apps)} apps and {len(services)} services")
print(f"Custom integrations needed: {custom_connectors}")
print(f"With MCP: {with_mcp} (one client in each app, one server per service)")

# Add one new service: how much extra work?
print(f"\nAdding one more service: {len(apps)} new connectors without MCP, 1 new server with MCP")

Without a standard, the work grows with apps × services. With MCP it grows with apps + services, and a new service becomes available to every app at once.

The big picture

Servers can offer three kinds of things:

FeatureWhat it isExample
ToolsFunctions the model can callcreate_issue, search_notes, run_query
ResourcesData the app can read and give to the modelA file, a database schema, a document
PromptsReady-made instructions the user can pick“Review this pull request”, “Summarise my week”

Messages between them use JSON-RPC 2.0, a simple format for requests and responses in JSON, sent either through a local program's input and output (stdio) or over the web (Streamable HTTP).

MCP and tool calling

MCP doesn't replace tool calling; it builds on it. Inside the host, the model still uses ordinary tool calling. MCP standardises the other side: how the host discovers which tools exist on a server and how it runs them. The host lists a server's tools, passes their definitions to the model as normal tool definitions, and when the model calls one, the host forwards the call to the server.

Common mistakes

Practice exercise

Work out why a standard saves so much work as the number of apps and services grows.

Your solutionPython
apps = 10
services = 25

# Print how many integrations are needed without a standard (every app with every
# service) and with MCP (one client per app plus one server per service):
# Without MCP: 0
# With MCP: 0
print("Without MCP: 0")
print("With MCP: 0")
Knowledge check

What problem does MCP mainly solve?

Summary

  • MCP is an open standard for connecting AI apps to tools and data.
  • Hosts (AI apps) connect to servers (wrapped services) through MCP.
  • Servers offer tools, resources and prompts.
  • MCP standardises discovering and running tools; inside the host, the model still uses tool calling.

Next: hosts, clients and servers in more detail.

Finished reading? Tick it off to track your progress.