AI glossary

What is Model Context Protocol (MCP)?

Model Context Protocol, usually shortened to MCP, is an open standard for connecting AI applications to the tools and data they need. Anthropic introduced it in late 2024, and it has since become the common way for assistants, IDEs and agents to plug into outside systems. Think of it as a shared plug shape: build a connector once, and any compatible AI client can use it. I use MCP servers every day in my own engineering work, so this guide mixes the definition with what I have learned in practice.

Talk about an MCP server

The problem MCP solves

Before MCP, every integration was custom. If you wanted a model to read your task tracker, query your database and search your docs, you wrote glue code for each one, in each app, for each model provider. Ten tools across three AI apps meant thirty integrations to build and maintain.

MCP turns that into a simpler shape. A system exposes its capabilities once, as an MCP server. Any AI application that speaks the protocol can then discover and use them. The integration work moves from "every app times every tool" to "one server per tool".

What is Model Context Protocol, in parts?

The protocol defines three roles:

RoleWhat it isExample
HostThe AI application the user works inA desktop chat app, an IDE or a coding agent
ClientThe connector inside the host that talks to one serverOne client per connected server
ServerA program that exposes capabilities over MCPA server for a ticket tracker, a database or a file store

A server can offer three main kinds of capability:

  • Tools. Actions the model can call, such as "create a ticket" or "run this query". Each tool has a name, a description and a JSON Schema for its inputs.
  • Resources. Data the host can read and pass to the model as context, such as files, records or documents.
  • Prompts. Reusable prompt templates the server provides, which a user can pick to start a task in a consistent way.

Messages between client and server use JSON-RPC. Servers can run locally, started by the host as a process on your machine, or remotely over HTTP, where authorisation becomes a key part of the design.

How a request flows

Here is what happens when you ask an assistant with an MCP server connected to "find my open bugs and summarise them":

  1. Discovery. When the host starts, its client asks the server what tools, resources and prompts it offers.
  2. Selection. The host passes the tool descriptions to the model. The model decides that the "search issues" tool fits the request.
  3. Call. The model produces a tool call with arguments. The client sends it to the server.
  4. Result. The server runs the search against the real system and returns the result.
  5. Answer. The model reads the result and writes the summary.

The model never talks to your tracker directly. It only sees the tool descriptions and the results the server returns. That boundary is what makes MCP useful for control and review.

MCP and function calling

People often ask whether MCP replaces function calling. It doesn't. Function calling is the model's ability to produce a structured call to a tool you described. MCP is the standard for how those tools are packaged, discovered and served across applications. In most hosts, MCP tools reach the model through function calling. I cover the difference in detail in MCP vs function calling.

How I use MCP in practice

My engineering work is AI native and built on Claude Code. MCP servers are how my agents reach real systems: a task tracker, an inbox, a document store. My personal AI manager agent, for example, triages incoming work through MCP and routes each item to the right Claude Code session. I describe the whole setup in my AI native engineering workflow case study.

Three lessons from that work:

  • Tool descriptions are prompts. The model chooses tools by reading their names and descriptions. Vague descriptions lead to wrong choices. Clear ones, with an example of when to use the tool, make a visible difference.
  • Small, focused servers beat one giant server. A server with forty tools makes the model's choice harder and fills the context window. I would suggest grouping tools by job and connecting only what a given agent needs.
  • Read and write are different risks. Reading a document is low risk. Sending a message or changing a record is not. I keep write actions behind approval until the output is consistently right.

Security and trust

An MCP server is code that can act on your systems, so treat it like any other dependency:

  • Install servers from sources you trust, and review what each tool can do before you connect it.
  • Give servers the least access they need. A read-only token is often enough.
  • Watch for prompt injection. Content a server returns, like an email or a web page, can contain instructions aimed at the model. The host and your approval settings should stop that content from triggering actions on its own.
  • Use proper authorisation for remote servers, and never log tokens or personal data.

Building your own MCP server

If your product or internal system should be usable from AI assistants, an MCP server is now the standard route. The work is mostly design: choosing the right tools, writing clear descriptions and schemas, and deciding what needs approval. If you want help with that, see my MCP server development service or get in touch.

To see how tools fit into a larger multi-step loop, read my glossary page on what an agentic workflow is. For how tool calling works at the API level, my Responses API migration guide shows MCP connectors and function tools side by side.

Frequently asked questions

Who created Model Context Protocol?

Anthropic introduced MCP as an open protocol in late 2024. It is open, so other companies and the wider community build clients and servers for it, and many AI apps and developer tools now support it.

Is MCP only for Claude?

No. MCP is model agnostic. Any host that implements the client side can use MCP servers, whichever model sits behind it. That is the main reason to build on it: one server works across many AI applications.

What is the difference between an MCP server and an API?

An API is built for programs that already know how to call it. An MCP server wraps capabilities in a standard shape that AI hosts can discover and describe to a model, including tool descriptions and input schemas. Many MCP servers call an existing API underneath.

Is MCP safe to use?

It is as safe as the servers you connect and the permissions you give them. Use trusted servers, grant the least access needed, require approval for actions that change data, and be careful with content that could carry prompt injection.

Do I need to write code to use MCP?

Not to use existing servers. Most hosts let you add a server through settings or a config file. You need code when you want to expose your own system as an MCP server.

Let's talk about your project

Software Architect, AI Native. Google Certified Generative AI Leader with 14+ years of experience.

Talk about an MCP server