MCP explained: the Model Context Protocol
What MCP servers and clients are, how they talk, and what to check before connecting one to your AI tools.
The Model Context Protocol (MCP) is an open standard for connecting AI apps to tools and data. An MCP server offers tools (actions), resources (data to read) and prompts (templates). An MCP client, inside an IDE, a chat app or your own agent, lists what a server offers and calls it.
Servers run in two main ways: stdio, where the client starts the server on your computer and talks through standard input and output, and streamable HTTP, where the server runs as a web service, usually with sign-in. Tool definitions include annotations such as read-only, which clients use to decide when to ask the user.
An MCP server is code with access to something, so treat it like any dependency: install from sources you trust, pin versions, give it the narrowest credentials, and prefer read-only tools. Its tool descriptions go straight to the model, so a malicious server can try to steer it.
Cost. The protocol and the official SDKs are free and open source.
Use it when
- several AI tools need the same capability, such as reading logs.
- you want your IDE's assistant to use your team's tools.
- you're asked to approve an MCP server for use at work.
How it works
- Server
- Offers tools, resources and prompts.
- Client
- Lists and calls them for an AI app.
- stdio
- Local: the client starts the server.
- Streamable HTTP
- Remote: a web service with authentication.
- Annotations
- Hints such as read-only or destructive.
Options
- Local stdio server
- Simple, runs with your rights on your machine.
- Remote HTTP server
- Shared by a team, needs authentication and hosting.
Example. Harbourline Design's developers each had their own scripts for reading site logs. The platform team replaced them with one read-only MCP server; every developer's IDE assistant and the on-call agent now use the same, reviewed tool.
Don't confuse it with
- MCP tool
- Defined once, usable by any MCP client.
- Tool inside one agent
- Defined in that agent's code only.
Words to know
- MCP server
- A program that offers tools and data to AI apps.
- MCP client
- The part of an AI app that connects to servers.
- Transport
- How client and server exchange messages: stdio or HTTP.
Where to look
- MCP Python SDK
- Your IDE's MCP settings
Practise it
Read it in the guide, next to the tasks and labs.
Open in DevOps, Hands On