A language model knows a great deal, but nothing about your data, nothing that happened after its training, and it cannot do anything by itself. The Model Context Protocol is the standard plug that lets an AI application reach the outside world. This part names the three roles involved, separates an agent from an MCP server, and shows when a model reaches for a tool and when it just answers.
Before any code, this part builds the vocabulary. Most early confusion with MCP is not about code at all; it is about who does what. Which part is "the AI"? Which part is "the agent"? Which part is the thing actually being built? Once those are pinned down, everything later is easier.
A large language model (the "AI" in Claude, GPT and the rest) is a program that reads text and writes text. Before it is released, it is trained on an enormous amount of text: books, websites, documentation, code. From that it learns a remarkable amount, which is why you can ask it "what is the capital of France?" and get "Paris" with no help at all.
But training stops at a date, and it only ever saw what was in the training data. That leaves three things a model fundamentally cannot do on its own:
| It cannot... | Example | Why |
|---|---|---|
| Know private data | "How many photos did I upload this month?" | Your account was never in its training data |
| Know fresh data | "What is the weather right now?" | Training stopped at a cutoff date |
| Do anything | "Create a ticket for this bug" | A model only produces text; it has no hands |
There is a fourth, subtler problem. When a model does not know something, it may still produce a confident-sounding answer. This is called hallucinating. Giving the model a way to look up real data is the most reliable cure: it answers from facts instead of guessing.
So an AI assistant needs a way to reach the outside world: to look things up and to take actions. That way is tools.
Tools are not new. For years, each AI application had its own plugin system. If you wanted your service to work with three different assistants, you built three different plugins, each to a different specification, and maintained all three.
The Model Context Protocol (MCP) replaces that with one open standard. You build an MCP server once, and any AI application that speaks MCP can use it: VS Code with GitHub Copilot, Claude, Cursor, or an agent someone writes themselves. It is often described as "USB-C for AI": one shape of plug, many devices.
The MCP architecture has three participants:
And one more participant that the architecture diagrams take for granted: the model itself, which usually runs in the cloud, on the AI provider's servers, not on your machine.
The most surprising detail: the model never talks to the MCP server. It only ever talks to the host. When it wants a tool, it asks the host, and the host makes the call. The next part follows that exchange message by message.
A restaurant is a good picture of it:
An MCP server can offer three kinds of capability, which the specification calls primitives:
| Primitive | What it is | Who usually picks it |
|---|---|---|
| Tools | Functions that can be called: run a query, call an API, write a file | The model, on its own judgement |
| Resources | Read-only data the application can attach to the conversation, like a file's contents | The application or the user |
| Prompts | Reusable prompt templates, like a slash command | The user |
The specification describes tools as model-controlled: the model discovers them and decides when to call them. That makes tools by far the most important primitive, and the rest of this topic is mostly about them. Some platforms, in fact, support only tools.
A tool, as the model sees it, is three things:
get_photo_count;The model cannot see your code. It decides whether to call a tool, and with which arguments, only from the name and the description. A vague description ("gets photos") leads to wrong calls; a precise one ("Counts the signed-in user's photos uploaded between two dates. Returns a single number.") leads to right ones.
Who writes that description? You do, the developer, as part of the server's code. The model only reads it. Part 3 shows exactly where it goes.
This is the most common confusion of all, so it gets its own section.
An agent is a model working in a loop with tools: it reads the request, decides on a step, calls a tool, reads the result, decides the next step, and repeats until the job is done. A useful formula:
Agent = model + instructions + tools + the loop. MCP server = tools only.
The MCP server is a toolbox. The agent is a worker who picks tools out of whichever toolboxes it is allowed to use.
Two consequences follow:
GitHub Copilot in Agent mode, Claude Code and similar products are ready-made agents: their makers wrote the instructions, and they use whichever tools are available.
In VS Code you can also write a custom agent: a Markdown file, by convention something.agent.md in a .github/agents/ folder, holding a job description and a list of allowed tools. For example, a code-review agent might look like this:
---
name: "Reviewer"
description: "Reviews a pull request for bugs and style problems."
tools:
- github/* # every tool from an MCP server named "github"
- read # a built-in tool for reading files
---
You are a careful code reviewer. Only comment on real problems...There is no code in that file. Choosing Reviewer in the chat's agent picker does not start a second agent: it is the same agent loop, wearing a different job description and allowed a narrower set of tools.
Not always. In a mode where tools are available, the model asks itself, in effect, "can I answer this from what I know, or do I need to look something up?"
| Question | Tool? | Why |
|---|---|---|
| "What is the capital of France?" | No | Learned in training |
| "Explain what OAuth is" | No | Learned in training |
| "How many photos did I upload this month?" | Yes | Private data |
| "What is the weather now?" | Yes | Fresh data |
| "Create a ticket for this bug" | Yes | An action in another system |
Chat applications often have several modes. In a plain chat or "ask" mode the host offers no tools at all, so the model can only answer from what it knows. In an agent mode the host offers the tools, and the model still decides, question by question, whether it needs one.
So a model is best thought of as a knowledgeable generalist who has never seen your database. Tools are how it looks things up.
Is an agent the same thing as an MCP server? No. The agent is the worker: model, instructions, the loop. The MCP server is a toolbox the agent can use. A project can contain both (an agent file and a server), which is exactly what makes the two easy to mix up.
Who decides to call a tool: the host, the model, or the server? The model. The host only carries the request, and the server only runs what it is asked to run. The server never chooses anything.
Who writes the tool descriptions? You do, in the server's code. The model reads them. They are the only way you can tell the model what a tool is for, which makes writing them part of the engineering, not an afterthought.
Is Copilot or Claude needed to use an MCP server? Yes. An MCP server has no intelligence of its own; it is a kitchen with no customers until a host with a model connects to it. Any MCP-capable host works.
If a server is running, will the chat always use it? It may. The host makes the server's tools available, but the model decides each time whether one fits. If the description is vague, or another tool sounds more suitable, it may not call yours.
When a custom agent is picked, is one agent calling another? No; it is the same agent with different instructions and tools. A real "agent hands work to another agent" pattern does exist, called subagents, where one agent delegates a whole task to another that works on its own and reports back. Choosing a custom agent from a list is not that.
Can the model answer general questions without any tool? Yes, from its training. Tools are only needed for what it cannot know (private or fresh data) and for what it cannot do (actions).