All articles

What is MCP? How AI agents are connected to your systems

The Model Context Protocol connects AI agents to mailboxes, databases and CRM systems. How it works, who uses it and which security questions it raises.

A chatbot answers questions. An AI agent gets things done: it reads emails, schedules meetings, searches databases or opens a ticket. To do that, it needs access to the systems where this work happens. Today, that access is usually provided through an open standard: the Model Context Protocol, or MCP.

This article explains what MCP is, how it is structured and why it matters so much for the security of your AI agents.

The problem MCP solves

Before MCP, every AI application needed its own integration for every tool. If you wanted to connect your assistant to the calendar, the ticketing system and the customer database, you needed three separate integrations, and three more for the next assistant. With many applications and many tools, the effort quickly gets out of hand.

MCP turns this around: a tool is made available once as a so-called MCP server, and every AI application that speaks MCP can use it. MCP is therefore often compared to a USB port. The comparison captures the essence: one common connector replaces many special cables.

The specification names its own role model: the Language Server Protocol, which standardises how programming languages are supported across development tools. MCP applies this idea to AI applications.

Where MCP comes from and who uses it

Anthropic released MCP as an open standard in November 2024. In December 2025, the protocol was handed over to the newly formed Agentic AI Foundation, a foundation under the umbrella of the Linux Foundation, co-founded by Anthropic, Block and OpenAI (Linux Foundation, MCP blog).

At that point, according to Anthropic, there were already more than 10,000 publicly available MCP servers, and MCP was supported by ChatGPT, Claude, Cursor, Gemini, Microsoft Copilot and Visual Studio Code, among others (Anthropic). MCP is no longer a niche topic; it is the socket that a large share of AI agents is plugged into.

How MCP is structured

MCP distinguishes three roles (specification):

  • Host: the AI application you work with, such as a chat assistant, a development environment or a custom-built agent.
  • Client: a connector inside the host. There is a separate client for each connected server.
  • Server: the service that provides capabilities to the agent, for example access to a mailbox, a file system or a database.

They exchange messages in JSON-RPC 2.0 format, a simple and widely used standard for requests and responses between programs. An MCP server can run on the same machine as the host or anywhere on the internet.

The three building blocks: tools, resources, prompts

An MCP server can offer three kinds of capabilities. What matters is who decides when each one is used (MCP documentation):

Building blockWhat it isWho decides when it is used
ToolsFunctions that do something: send an email, change a record, write a filethe AI model
ResourcesData that is read: file contents, database schemas, documentationthe application
PromptsPrepared instruction templates for recurring tasksthe human

For security, the first row matters most. With tools, the model itself decides whether and when to call them. It relies on the description that the server provides for each tool, in other words on text that the model reads and interprets.

An everyday example

Imagine an agent in accounts payable that checks and files incoming invoices. Three servers are connected via MCP: the mailbox, the document archive and the accounting system.

  1. The agent fetches new emails via the mailbox server.
  2. It reads the attached invoice and matches it against the purchase order via the accounting server.
  3. It files the document via the archive server and marks the email as done.

This is exactly the kind of work agents are meant for. At the same time, it shows what comes together: the agent reads content from outside, from senders nobody controls, and it holds permissions in internal systems.

Why MCP is a security question

MCP itself is not an insecure protocol. But it makes visible how much power an agent is given. Every connected server is a permission the agent can use, and therefore also a permission an attacker may try to exploit through the agent.

The specification takes this seriously. It states explicitly that tools can execute arbitrary code and must be treated with appropriate caution. Tool descriptions should be considered untrusted unless obtained from a trusted server, and hosts must obtain explicit user consent before invoking any tool (specification, section Security and Trust & Safety). At the same time, it acknowledges that MCP cannot enforce these principles at the protocol level. Applications have to implement them, and ultimately so do the organisations that deploy them.

Three risks stand out:

  • Prompt injection: an attacker hides instructions in content the agent reads, for example in an email or a document. We explain how this works in our article Prompt injection explained.
  • Tool poisoning: an MCP server describes a tool as harmless, but the description contains hidden instructions to the model (Invariant Labs).
  • Overly broad permissions: an agent that is only supposed to read invoices may, through a connected server, also be able to trigger payments or send data outside.

What you can do now

You do not need to be a protocol expert to ask the most important questions:

  • Which MCP servers are connected? Many organisations lack a complete overview, especially when staff set up agents themselves.
  • Where do the servers come from? From the system vendor, from a public directory or built in-house? Who maintains them, and who notices changes?
  • What permissions does each agent really have? Does the principle of least privilege apply, or does the agent have access because it was convenient?
  • Does the agent read external content and can it send data at the same time? This combination is particularly dangerous.
  • Are critical actions approved by humans and logged?

These questions are at the heart of our Agent Security Check. Whether an agent can actually be tricked into a harmful action only becomes clear through controlled attack testing such as in the MCP Test Range.

In brief

  • MCP is an open standard through which AI agents connect to tools and data. It is now developed by the Agentic AI Foundation under the Linux Foundation.
  • An MCP server provides tools, resources and prompts. The model itself decides when to use tools.
  • Every connected server extends what an agent can do, and therefore what an attacker can achieve through it.
  • The specification requires consent, control and caution. Applications and the organisations deploying them have to put this into practice.

Want to know where your AI agents stand?

In a 30-minute intro call, we assess together which risks are typical for your application.

Book an intro call No obligation, via video, with a member of our founding team.