What is MCP? The Model Context Protocol, simply explained
MCP explained for beginners: why AI apps needed a common way to plug into tools and data, how hosts, clients and servers fit together, and what to watch for.
On this page
MCP, the Model Context Protocol, is an open standard that lets AI apps connect to tools and data in one common way. Anthropic introduced it in late 2024, and since then many AI apps and developer tools have added support. If you have read about AI agents, MCP is the plumbing that connects them to the outside world.
The problem before MCP
AI assistants become far more useful when they can reach your files, your calendar, your database or GitHub. But every AI app connected to every tool in its own custom way.
With 5 AI apps and 20 tools, that is up to 100 separate connections to build and maintain. Every new tool had to be wired into every app again.
The idea: one plug for everything
Everyday comparison: USB-C. Before it, every phone and laptop had a different charger. With one common port, any charger works with any device.
MCP does the same for AI. A tool is built once as an MCP server, and any app that speaks MCP can use it.
The three parts
| Part | What it is | Example |
|---|---|---|
| Host | The AI app you use | A chat app, a code editor, a coding agent |
| Client | The connector inside the host that talks to one server | One per connected server |
| Server | A small program that offers tools or data | A GitHub server, a database server, a files server |
What a server can offer
An MCP server can share three kinds of things:
- Tools: actions the model can take, like "create issue" or "run query".
- Resources: data the app can read, like a file or a database table.
- Prompts: ready-made instructions a user can pick, like "review this pull request".
When the host connects, it asks the server what it offers. The model then sees the list of tools, with names and descriptions, and can decide when to use them.
How a request flows
- You ask: "What are the open bugs in my project?"
- The model sees a
list_issuestool from the GitHub MCP server and decides to call it. - The host sends the request through the MCP client to the server.
- The server calls GitHub and returns the list.
- The model reads the list and writes your answer.
Local and remote servers
- A local server runs on your own computer, often started by the host app. Good for files and local tools.
- A remote server runs on the internet and is reached over HTTP. Good for online services, usually with a login step.
Why students should care
- Building an MCP server is a great project. A small server with two or three useful tools, such as one for your college timetable, teaches APIs, JSON and AI integration together. Add it to your portfolio.
- It is a real job skill. Teams building AI features increasingly expose their internal tools through MCP.
What to watch out for
Connecting an AI to tools also connects it to risk:
- Only install servers you trust. A server runs code and can see the data you give it.
- Give the least access needed. A read-only database server is safer than one that can delete tables.
- Approve risky actions. Good hosts ask you before a tool does something that can't be undone.
- Watch for prompt injection. Text returned by a tool, like a web page or an email, can contain hidden instructions. It should be treated as data, not commands.
Quick recap
- MCP is an open standard for connecting AI apps to tools and data.
- Build a tool once as an MCP server; any MCP host can use it.
- Hosts contain clients; clients talk to servers; servers offer tools, resources and prompts.
- Trust, least privilege and approvals keep it safe.