If you have followed AI news this year, you have seen three letters everywhere: MCP. Software vendors are announcing "MCP servers", AI assistants are adding "MCP connectors", and teams building AI agents are asking whether they need it too.
This guide explains what the Model Context Protocol is in plain terms, how it works, what it is good for, and the security questions to answer before you connect an AI agent to anything important.
What is MCP?
The Model Context Protocol (MCP) is an open standard for connecting AI applications to external tools and data. Instead of writing a custom integration for every pair of AI app and business system, you expose a system once as an MCP server, and any MCP-compatible AI application can use it.
A useful comparison is USB-C. Before a common port, every device needed its own cable. With one standard plug, any charger works with any phone. MCP aims to do the same for AI: one standard way for an agent to discover what a system offers and to use it.
Anthropic introduced MCP as an open standard in November 2024. Adoption spread quickly: OpenAI and Google DeepMind both announced support in 2025, and in December 2025 MCP was donated to the Agentic AI Foundation, a fund under the Linux Foundation, so no single company controls its future. The current specification revision is dated 28 July 2026.
How MCP works
MCP has three roles, described in the official specification:
- Host: the AI application the user works in, such as a chat assistant, an IDE, or your own agent.
- Client: the connector inside the host that talks to one server.
- Server: a small program that exposes a system, such as your CRM, a database, or a file store, in the MCP format.
Messages travel as JSON-RPC 2.0, a simple and widely used format. The specification defines two standard transports: stdio, for a server running as a local process on the same machine, and Streamable HTTP, for a server running remotely on a network.
What a server can offer
An MCP server can provide three kinds of capability:
- Tools: actions the AI model can call, such as "create invoice", "search orders", or "book a meeting".
- Resources: data the model or user can read, such as documents, records, or files.
- Prompts: reusable templates and workflows that a user can start, such as "summarise this week's support tickets".
The host can also offer elicitation, which lets a server ask the user for missing information mid-task, for example "Which customer account do you mean?".
The key point is discovery. When an agent connects, it asks the server what it can do and receives a list of tools with names, descriptions, and input schemas. The agent doesn't need to know your system in advance.
Why MCP matters for a business
For a company, MCP changes the economics of AI integrations.
- Build once, use in many places. An MCP server for your inventory system can be used by an internal assistant today and by a different AI tool next year, without rewriting the integration.
- Less vendor lock-in. Because MCP is an open standard with broad industry support, your integrations aren't tied to one AI provider.
- A growing ecosystem. Many popular business platforms now publish official MCP servers, so connecting an agent to common tools can be configuration rather than custom code.
- A clear boundary. The server decides exactly which actions and data are available. That makes it easier to review, test, and limit what an AI can do.
Practical examples
- A customer-support assistant that can look up an order and its delivery status, but cannot issue refunds without human approval.
- A sales assistant that reads CRM notes before a call and drafts a follow-up email for a person to review.
- An operations assistant that queries stock levels and flags items below a reorder threshold.
- An internal knowledge assistant that searches policies and documents, with each answer linking back to its source.
If you are new to agents, it helps to understand the loop that sits behind every one of these. See What makes an AI system agentic? for a practical definition.
A minimal MCP server in Python
The official Python SDK makes a basic server short. This example exposes one tool and one resource for a small order system:
from mcp.server import MCPServer
mcp = MCPServer("Orders")
ORDERS = {
"A-1001": {"status": "shipped", "carrier": "DHL"},
"A-1002": {"status": "processing", "carrier": None},
}
@mcp.tool()
def order_status(order_id: str) -> str:
"""Return the status of an order by its ID, e.g. A-1001."""
order = ORDERS.get(order_id.strip().upper())
if order is None:
return f"No order found with ID {order_id}."
carrier = order["carrier"] or "not assigned yet"
return f"Order {order_id}: {order['status']} (carrier: {carrier})."
@mcp.resource("policy://returns")
def returns_policy() -> str:
"""The company's returns policy."""
return "Items can be returned within 30 days in original condition."Install the SDK with pip install "mcp[cli]", then run mcp dev server.py to open the MCP Inspector, a local tool for calling your server's tools by hand before you connect a real AI application.
Notice what the AI never gets: direct database access. It can only call order_status with an order ID, and your code decides what comes back.
The security risks you must plan for
MCP makes it easy to give an AI system real capabilities. That is exactly why security needs attention from day one. The specification itself states that tools represent arbitrary code execution and must be treated with caution, and that hosts must obtain explicit user consent before invoking any tool.
Risks to understand:
- Prompt injection. Text the agent reads, such as an email, a web page, or a document, can contain instructions written by an attacker. If the agent obeys them, it may misuse the tools it has access to.
- Tool poisoning. In 2025, security researchers showed that a malicious MCP server can hide instructions inside its tool descriptions, which the model reads but the user usually doesn't. Treat descriptions from servers you don't control as untrusted.
- Vulnerable components. MCP software is still young, and serious bugs have been found and fixed. For example, CVE-2025-6514, a critical flaw in the widely used
mcp-remotepackage, allowed a malicious server to run commands on the user's machine. It was fixed in version 0.1.16. - Over-broad access. A server that can read every customer record or delete files gives a misled agent the same power.
A checklist for adopting MCP safely
- Start read-only. Give the first version access to lookups and searches only. Add actions that change data once you trust the behaviour.
- Apply least privilege. Each server should expose the smallest set of tools and data the use case needs, using credentials scoped to that purpose.
- Keep a human in the loop for consequential actions. Payments, refunds, deletions, and outgoing messages should require explicit approval.
- Use proper authentication for remote servers. The specification's authorization follows OAuth 2.1 practices. Connect through your identity provider instead of sharing static API keys.
- Validate inputs in the server. Treat every tool call as untrusted input, exactly like a public API request.
- Log every tool call. Record which tool was called, with which inputs, by which user, and what happened. You need this for debugging and for audits.
- Pin and update dependencies. Track security advisories for the MCP SDKs and servers you use.
- Test with hostile content. Before going live, feed the agent documents and messages that contain injected instructions and confirm it doesn't act on them.
When MCP is not the right choice
MCP is not required for every AI feature. If your application calls one model with two or three fixed functions that will never be shared with other AI tools, ordinary function calling in your code is simpler and has fewer moving parts.
MCP pays off when:
- several AI applications or agents need the same integrations,
- you want users to plug your system into AI tools they already use,
- you expect to switch or combine AI providers, or
- the number of tools is growing and needs a consistent, reviewable interface.
Frequently asked questions
Is MCP only for Claude?
No. Anthropic created it, but it is now an open standard governed under the Linux Foundation, with support from OpenAI, Google, Microsoft, and many other vendors.
Do I need MCP to build an AI agent?
No. An agent can call tools directly through a model provider's API. MCP becomes valuable when you want those tools to be reusable and portable across applications.
Is MCP secure?
The protocol defines security principles and an authorization model, but it cannot enforce safe behaviour by itself. Security depends on how servers and hosts are built and deployed: least privilege, user consent, authentication, input validation, and logging.
Can I make my own software available through MCP?
Yes. If your business has an internal system or a product with an API, you can build an MCP server for it. AI assistants and agents can then use it in a controlled way.
Conclusion
MCP is quickly becoming the standard way to connect AI agents to real systems. Its value is practical: build an integration once, use it with many AI tools, and keep a clear, reviewable boundary around what the AI can do.
The protocol doesn't remove the need for careful engineering. Start with a narrow, read-only use case, give the agent the least access it needs, keep people in charge of consequential actions, and log everything. With those foundations, MCP can turn an AI assistant from something that only talks into something that does useful work inside your business.