Skip to content

MCP: cheatsheet

MCP (Model Context Protocol) is a standard plug between AI apps and tools.
It does not make the model smarter. It makes tools reachable.
Build one server; several compatible AI apps can use it.
Without a standardWith MCP
How a tool reaches an appWired separately for each model or appOne server, many MCP-speaking apps
Who builds the connectionEach app's developer, again and againThe tool maker, once

The lecturer calls the old way repeated work to avoid. The official documentation compares MCP to a USB-C port.

RoleWhat it isExample
HostThe AI app you useA chat assistant, a code editor with AI features, a company chatbot
ClientPiece inside the host; holds one connection to one serverThe host creates one client per server
ServerProgram that offers capabilitiesA book provider's server; Playwright MCP

Where servers run. On your own machine, or somewhere on the internet.

CLIENT asks SERVER: which tools do you have?
HOST hands the tool list to the MODEL
MODEL picks a tool and arguments (Stage 1, as before)
CLIENT sends the call -> SERVER runs it (Stage 2, now in a server)
Result goes back into the conversation
MODEL writes the answer (Stage 3, as before)

The model never talks to the server. It requests an action; the client carries the request and the result, and the server acts.

OfferingWhat it isWho controls itExamples
ToolsActionsThe modelSearch flights, send a message
ResourcesRead-only dataThe appFile contents, database records
PromptsReusable templates that instruct the modelThe userA template showing how to look up a particular title

Memory hook: the model chooses tools, the app manages resources, the user picks prompts.

The lecturer's example: a poetry book for the teddy bear

Section titled “The lecturer's example: a poetry book for the teddy bear”
PartIn the example
HostThe AI chat app
ServerBuilt by a book provider (experts at serving that content)
ToolsFind books, recommend books
PromptsHow to look up a particular title; recommend to suit a reader's taste
ResourcesThe bear's personal collection; popular books that people buy
PieceJob
PlaywrightBrowser automation software; programmers drive it with code
Playwright MCPAn MCP server built on Playwright, published by the Playwright project
MCPThe connection: list tools, send calls, return results
The modelPicks the next step (go to an address, take a snapshot, click) and reads the outcome
What comes backA structured text description of the page (an accessibility snapshot) by default; screenshots are available too

Also true: the Playwright MCP documentation points coding agents to a command-line route it says uses less of the model's context. MCP is a standard way to connect, not the only way.

AskWhy
Who built it, and do I trust them?A tool's own description is only as trustworthy as its server
What can it reach?A server on your machine may have direct access to your system
Which tools can change things?Tools can run arbitrary code
Will my app ask before each action?The specification says the host app must get your explicit permission before running a tool; apps can let you approve some actions ahead of time, and MCP cannot enforce any of this itself

Playwright MCP's own line: "Playwright MCP is not a security boundary."

PitfallReality
"MCP is a tool."MCP is the connection. A server wraps a system and offers its actions as tools.
"The model talks to the server."The client does. The model reads the result and requests the next action.
"MCP belongs to one product."It came from the Anthropic team, per the lecturer; the docs describe an open-source standard supported by apps from several companies.
"More servers is always better."Each server is more software with access. Connect what you need.
  • MCP (Model Context Protocol): an open standard for connecting AI apps to outside tools and data.
  • Protocol: an agreed set of rules for how two pieces of software talk.
  • Host: the AI application the user works in.
  • Client: the piece inside the host that holds one connection to one server.
  • Server: a program that offers tools, resources, and prompts to AI apps.
  • Local server / remote server: a server running on your own machine, or one running somewhere on the internet.
  • Accessibility snapshot: in Playwright MCP, a structured text description of a web page, with a reference for each element.

MCP does not make the model smarter. It makes tools reachable.
The model asks, the client carries, the server acts.
Plug in only what you trust.