By the end of this lesson you will explain MCP in plain words, name the parts of an MCP setup, and know exactly what you are saying yes to when your agent asks to use a tool.
You need: a coding agent you already use (Claude Code, Codex, OpenCode or Cursor) · Time: 7 minutes
Your coding agent is good at working inside one project folder. But a lot of your real work lives somewhere else:
- Priya runs her family's kirana shop. Her stock sheets (
stock-nov.csv) sit in a separate folder, not in her app's folder. - Arjun's college project has 14 open issues on GitHub that he keeps copying into the chat one by one.
- Sana wants to see if her portfolio website looks right on a phone, but the agent can't open a browser.
- A tuition centre keeps its fees in a database that the agent can't see.
So you copy, paste, screenshot and explain. It is slow, and the agent only ever sees the part you remembered to paste.
Why?An agent can only work with what it can see. If you are the only bridge between the agent and your data, you become the slowest part of every task.
- Priya runs her family's kirana shop. Her stock sheets (
MCP (Model Context Protocol) is an open standard that lets AI apps connect to outside tools and data in one common way. The official docs compare it to a USB-C port for AI apps: one shape of plug, many devices.
Before MCP, every AI app needed its own special connection for every tool. With MCP, a company or developer builds one MCP server for their tool, and any agent that speaks MCP can use it. The same GitHub server works in Claude Code, Codex, OpenCode and Cursor.
Three new words:
- MCP server: a small program that gives your agent new abilities, like "read files in this folder" or "list GitHub issues".
- Tool: one single action a server offers, like
read_text_fileorlist_issues. - Connect / add a server: telling your agent where the server is, so it can use its tools.
Why?Because MCP is a standard, what you learn in this course works in every agent you use. You learn the idea once and change only the setup command.
Every MCP setup has the same parts:
- Host: the AI app you talk to. Your coding agent is the host.
- MCP client: a small connector inside the host. The host makes one client for each server it connects to.
- MCP server: the program that offers tools.
- Tools and data: the real thing the server reaches, like a folder, a browser or a database.
One host, one client per server, one job per server. Match them Match each part with what it is
Tap an item on the left, then its meaning on the right.
Why?When something breaks, knowing the parts tells you where to look: is the agent (host) set up right, did the server start, or did the tool itself fail?
A server can offer three kinds of things. You will use the first one almost all the time:
- Tools: actions the agent can run. "List the files in this folder", "open this web page", "run this read-only SQL query".
- Resources: data the agent can read, like a file's contents or a database's table list.
- Prompts: ready-made prompt templates from the server. In Claude Code, a server's prompts show up as commands when you type
/.
When your agent connects, it asks each server: "what tools do you have?" The server sends back a list with a name and a short description for each tool. The agent reads those descriptions to decide which tool fits your request.
Why?Those tool descriptions are text that goes into the agent's context, the short-term memory you met in What an AI coding agent really does. More servers means more text to carry. Lesson 5 shows how to keep that small.
Servers come in two kinds:
- Local server (also called stdio): a program your agent starts on your own laptop. Good for things on your computer, like a folder or a browser. Many are started with
npx, which needs Node.js installed. - Remote server (also called HTTP): a server that runs online, at a web address like
https://mcp.supabase.com/mcp. Good for online services like GitHub or Supabase. Many ask you to sign in through your browser once. That sign-in is called OAuth: you approve access on the company's own page, and you never paste a password into the agent.
Local (stdio) Remote (HTTP) Runs on your laptop the company's computers You add it with a command, like npx ...a URL Login usually a key in an environment variable often a browser sign-in (OAuth) or a token Example a folder, a browser GitHub, Supabase Why?A local server can touch whatever your laptop account can touch, so you limit it with flags (like "this one folder only"). A remote server can touch whatever your account on that website can touch, so you limit it with the account, token or URL you give it.
- Local server (also called stdio): a program your agent starts on your own laptop. Good for things on your computer, like a folder or a browser. Many are started with
Say Priya has connected a folder server and types: "Which items in my November stock are below 10?" Here is what happens:
- The agent reads her request and the list of tools it has.
- It picks a tool, for example
read_text_file, and fills in the details (which file). - Before running it, the agent shows an approval prompt: the tool name and the details it wants to send.
- Priya reads it and approves (or says no).
- The server does the work and sends the result back.
- The result goes into the chat, and the agent answers using it.
Here is what an approval prompt looks like in Cursor. Claude Code, Codex and OpenCode show the same idea in the terminal:

The agent stops and waits. Nothing runs until you click Run tool.Source: Cursor (Anysphere) · cursor.com · Screenshot © Anysphere, used for education · used for education (image credits) Put in order Put these steps in the right order
Tap the steps in the order you would do them. Tap a placed step to remove it.
- 1
Why?The approval prompt is your safety gate. Read the tool name and its details before you say yes, the same way you read a command before you run it.
- MCP is a standard plug that lets any agent use outside tools through MCP servers.
- The parts: host (your agent), one MCP client per server, the server, and the real tool or data behind it.
- Servers offer tools (actions), resources (data) and prompts (templates).
- Local servers run on your laptop; remote servers run online and often use a browser sign-in.
- Next: Add your first server, a read-only folder, in the agent you use.
Create a free account to save your progress and open every lesson. Create free account