AI Tools

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

PartWhat it isExample
HostThe AI app you useA chat app, a code editor, a coding agent
ClientThe connector inside the host that talks to one serverOne per connected server
ServerA small program that offers tools or dataA GitHub server, a database server, a files server
youAI app (host)MCP clientMCP serverGitHub / files / database
The host talks to servers through MCP clients.

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

  1. You ask: "What are the open bugs in my project?"
  2. The model sees a list_issues tool from the GitHub MCP server and decides to call it.
  3. The host sends the request through the MCP client to the server.
  4. The server calls GitHub and returns the list.
  5. 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.

Rahul Agarwal

Instructor, SkillByAI

Web developer for 15 years. Teaches developers and founders to build real products with open-source AI tools.

Get the next tutorial by email

One email when a new post lands, with the code ready to run. No spam.

By subscribing you agree to receive emails from SkillByAI. Unsubscribe anytime.