The Model Context Protocol (MCP) is the most common way AI assistants are now connected to other software: your files, your calendar, your accounting system. This lesson explains, without code, what MCP is, the handful of ideas you need to understand it, where its risks come from, and a careful way to make your first connection. The developer version of this lesson builds a working example.
What MCP is, in one paragraph
The Model Context Protocol (MCP) is an open standard that defines how an AI application talks to outside tools and data sources. Anthropic released it in 2024 and it has since been widely adopted across the industry [1][2]. Before MCP, every AI product needed its own custom connection to every service. With MCP, a service can publish one connector, called an MCP server, and any AI application that speaks MCP can use it. The official specification describes it as a standardised way to share context with language models, expose tools to AI systems, and build composable integrations [3]. It is maintained in the open on GitHub, with official software kits in several programming languages [4].
The three parts: host, client, server
MCP describes three roles [3]:
- The host is the AI application you use: a chat app, a coding tool, a desktop assistant. It runs the language model, shows you what is happening, and is responsible for asking your permission.
- A client is the part of the host that manages one connection. If your assistant is connected to five services, it has five clients.
- A server is the connector for one service. It might be a small program running on your own computer (a local server) or a service run by a company over the internet (a remote server) [5].
A useful design principle in the specification is that servers should not be able to read the whole conversation or see into other servers. The host keeps the full conversation and passes each server only what it needs [6]. Whether a particular host actually enforces that well is a question to ask of the product, not something the protocol can guarantee.
What a server can offer
A server can offer three kinds of thing [5]:
| Kind | What it is | Who decides when it is used | Example |
|---|---|---|---|
| Tools | Actions the AI can take | The AI model, with your permission | “Create invoice”, “Search email”, “Move file” |
| Resources | Information the AI can read | The application | A file’s contents, a database table’s structure |
| Prompts | Ready-made instructions you can choose | You | “Summarise this week’s tickets” |
Tools are the part that matters most for safety, because they let the AI do things. The specification is blunt about it: tools “represent arbitrary code execution and must be treated with appropriate caution”, and hosts must get your explicit consent before invoking any tool [3]. It also says there should always be a human able to deny a tool being used, and that applications should show clearly when tools are being called [7].
Servers can also ask you for information mid-task through a feature called elicitation, for example asking you to confirm an action or choose between options [5].
Where the risks come from
MCP itself is a way of passing messages. The risks come from what those messages connect to, and from who wrote the server. The specification acknowledges this directly: it cannot enforce its security principles at the protocol level, so it is up to the applications and servers that implement it [3].
The main risks for a non-developer are:
A server you shouldn’t trust. A server is software. Installing a local one means running someone else’s code on your computer; connecting a remote one means giving a company access to some of your data. The MCP project’s own guidance says that a listing on a registry is not an endorsement, and that even curated catalogues describe their vetting as best effort [8].
Hidden instructions. Each tool comes with a description the AI reads to understand what it does. Security researchers showed in 2025 that a malicious server can hide instructions in those descriptions that the AI sees but you don’t, and use them to make the AI leak data or take actions you didn’t intend [9]. They called this a tool poisoning attack. The specification now tells applications to treat tool descriptions from untrusted servers as untrusted [7].
More access than the job needs. A server for your email might offer twenty tools, including send and delete, when you only wanted search. Connecting it gives the AI all twenty unless you turn some off.
Content that carries instructions. Even a trustworthy server returns content (emails, web pages, documents) that may contain text written to manipulate the AI. That is indirect prompt injection, covered in earlier lessons, and MCP does not remove it [11].
Academic reviews of the MCP ecosystem catalogue many more threats, from malicious developers to flaws in server code [2]. The practical defences are the same few habits.
Your first connection, step by step
Most people’s first MCP connection is to a remote server from a well-known company, added through the settings of an AI app. Here is a careful way to do it.
1. Decide what you want the AI to do
Write one sentence: “I want the assistant to find and summarise invoices in our accounting system.” That sentence tells you which tools you need (search and read) and which you don’t (create, edit, delete, send).
2. Check who publishes the server
Prefer servers published by the company that runs the service itself, linked from its own website or documentation. Be wary of a third party’s connector for someone else’s service, especially one that asks for broad access.
3. Connect and sign in properly
For remote servers, a good connection sends you to the service’s own sign-in page, where you log in and approve access. This uses OAuth, the same standard behind “Sign in with Google” buttons. The MCP specification builds its authorisation on OAuth so you never need to paste your password into the AI app [10]. If a connector asks you to type your password or paste an API key into a chat, stop.
4. Read what it asks for
The sign-in screen should list what the connector wants to do. If it asks for far more than your one sentence needs (for example, full access to all files when you wanted to read one folder), consider whether there’s a narrower option.
5. Turn off tools you don’t need
Many AI apps let you see the list of tools a server offers and switch individual ones off, or set them to always ask. Turn off anything that writes, sends or deletes until you have a reason to use it.
6. Test with something harmless
Ask for something low-stakes and watch what the app shows you. Check that it asks before using tools, and that you can see which tool it used.
7. Know how to disconnect
Find where to remove the connector in the AI app, and where to revoke its access on the service’s own website. Removing it from the app may not cancel the access you granted; revoking it at the service does.
A worked example
Hannah runs a three-person bookkeeping business. She wants her AI assistant to answer questions like “which clients have overdue invoices?” from her accounting software.
The accounting company publishes an official remote MCP server, linked from its help centre. Hannah adds it in her assistant’s connector settings and is sent to the accounting company’s sign-in page, which asks her to approve “read and write access to invoices, contacts and bank transactions”. She can’t narrow it there, so she approves and then opens the connector’s tool list in her assistant. It has fourteen tools. She turns off the six that create, edit, void or send, and leaves search, list and read tools on.
She asks: “List invoices more than 30 days overdue.” The assistant shows it is calling the “search invoices” tool, asks her to allow it, and returns a list. Afterwards Hannah writes in her agent register which connector she added, what she turned off, and that access can be revoked from the accounting company’s “connected apps” page.
Two months later she wants the assistant to draft reminder emails. She turns on one tool, “create draft”, and leaves “send” off. A person still presses send.
Key takeaways
MCP is an open standard that lets an AI application use tools and data from other services through connectors called servers, with the host application responsible for asking your permission. Servers offer tools (actions), resources (information) and prompts (ready-made instructions), and tools deserve the most care because the specification itself describes them as arbitrary code execution. The protocol cannot enforce safety on its own; the risks come from untrusted servers, hidden instructions in tool descriptions, broad access and manipulative content. A careful first connection uses an official server, signs in through the service rather than pasting passwords, switches off tools you don’t need, and notes how to revoke access at the service, not just in the app.
primitive’s pass product describes local MCP workflows through an optional desktop companion; the habits in this lesson apply to any MCP connection.
Sources and further reading
- Radosevich, B., & Halloran, J. (2025). MCP Safety Audit: LLMs with the Model Context Protocol Allow Major Security Exploits. arXiv preprint arXiv:2504.03767. https://arxiv.org/abs/2504.03767
- Hou, X., Zhao, Y., Wang, S., & Wang, H. (2025). Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions. arXiv preprint arXiv:2503.23278. https://arxiv.org/abs/2503.23278
- Model Context Protocol. (2026). Specification, revision 2026-07-28. https://modelcontextprotocol.io/specification/2026-07-28
- Model Context Protocol. (2026). SDKs and the modelcontextprotocol GitHub organisation. https://modelcontextprotocol.io/docs/2026-07-28/sdk ; https://github.com/modelcontextprotocol/modelcontextprotocol
- Model Context Protocol. (2026). Architecture overview (documentation for protocol revision 2026-07-28). https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture
- Model Context Protocol. (2026). Architecture (Specification, revision 2026-07-28). https://modelcontextprotocol.io/specification/2026-07-28/architecture
- Model Context Protocol. (2026). Tools (Specification, revision 2026-07-28). https://modelcontextprotocol.io/specification/2026-07-28/server/tools
- Model Context Protocol. (2026). Local Server Security (documentation for protocol revision 2026-07-28). https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/local-server-security
- Invariant Labs. (2025, 1 April). MCP Security Notification: Tool Poisoning Attacks. Invariant Labs blog. https://invariantlabs.ai/blog/mcp-security-notification-tool-poisoning-attacks
- Model Context Protocol. (2026). Authorization (Specification, revision 2026-07-28). https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization
- Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., & Fritz, M. (2023). Not what you’ve signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec ’23), 79–90. https://doi.org/10.1145/3605764.3623985 (preprint: https://arxiv.org/abs/2302.12173)