In brief
The Model Context Protocol (MCP) is an open standard for connecting AI applications to external systems: databases, files, ERP, CRM and APIs. Instead of writing a separate integration for every model and every system, a company exposes a system once as an MCP server, and any compatible AI application can use it. The server offers tools (operations to perform), resources (data to read) and prompt templates. The protocol is built on JSON-RPC 2.0, and for HTTP connections it defines authorization based on OAuth 2.1.
What MCP is and what problem it solves
A language model on its own knows only what it learned in training and what it receives in the conversation. For it to check an order's status in the ERP or add a note in the CRM, the application has to connect it to those systems. Without a standard, every connection is separate code: different for each model and different for each system.
The project website compares MCP to a USB-C port for AI applications: one standard way to connect many devices. The specification also notes that it took inspiration from the Language Server Protocol, which standardized programming language support across editors. MCP is supported by Claude, ChatGPT, Visual Studio Code and Cursor, among others.
For a company this simplifies the math: a warehouse system exposed as an MCP server works with different AI applications, and switching models does not require rewriting the integration.
Architecture: host, client and server
The specification describes three roles:
- host: the AI application a person uses, for example a desktop assistant or a company app with a language model; it manages connections, user consent and security;
- client: a connector inside the host; each client talks to exactly one server;
- server: a program that exposes the capabilities of a specific system, for example an ERP, a document store or a calendar; it can run locally or as a remote service.
An important design principle: a server does not see the whole conversation or other servers. It receives only the information needed to handle the request, and the host controls interactions between servers. So the ERP server never learns what the user wrote to the email server.
Messages use the JSON-RPC 2.0 format. The specification defines two transports: stdio for servers run locally and Streamable HTTP for remote servers. In the specification version dated July 28, 2026, the protocol is stateless: every request carries the protocol version and the client's capabilities, so the server does not depend on connection state.
Tools, resources and prompts
A server offers three kinds of capabilities:
| Element | What it is | Who decides to use it | ERP example |
|---|---|---|---|
| Tools | functions the model can call | the model, within the user's consent | `check_stock_level`, `create_order` |
| Resources | data and context to read | the application or the user | customer record, price list, delivery terms |
| Prompts | message templates and workflows | the user | “prepare a quote based on the inquiry” |
Every tool has a name, a description and a parameter schema in JSON Schema. The client fetches the list of tools with the `tools/list` method and calls them with `tools/call`. A sample tool definition (a stock check by item number):
{
"name": "check_stock_level",
"description": "Returns the available quantity of an item in a warehouse by item number",
"inputSchema": {
"type": "object",
"properties": {
"item_number": { "type": "string" },
"warehouse": { "type": "string" }
},
"required": ["item_number"]
}
}The client, in turn, can offer the server elicitation, meaning a request for additional input from the user during a request. The specification version dated July 28, 2026 marks the earlier client features, sampling and roots, as deprecated.
Having the model read company documents is a separate topic. When an MCP resource is enough and when you need semantic search is covered in the article on RAG and company documents.
Security and permissions
MCP gives the model access to data and the ability to perform operations, so the specification puts security first. The key rules that follow from it:
- User consent. The host must obtain explicit user consent before passing the user's data to a server and before invoking a tool. The specification recommends that a person always be able to deny a tool invocation.
- Authorization through OAuth. For HTTP connections the specification bases authorization on OAuth 2.1. The MCP server acts as a resource server and accepts only tokens issued for it, without passing them on. Local stdio servers take credentials from the environment. The basics of OAuth are explained in the article OAuth 2.0 and OpenID Connect demystified.
- Server obligations. The server must validate all inputs, enforce access controls, rate limit invocations and sanitize outputs.
- Client obligations. The client should ask for confirmation on sensitive operations, show call parameters, validate results before passing them to the model, apply timeouts and log invocations for audit.
- Tool descriptions are untrusted data. Annotations and descriptions from a server you do not trust can mislead the model. Treat servers from unknown sources like any other third-party software.
On top of that come the threats typical of applications with language models, above all prompt injection through the content of documents and emails. We cover them in the article on security of LLM applications.
How to connect company systems through MCP
A plan that limits risk:
- Start with reading. The first server exposes only resources and read-only tools, for example stock levels and a customer's order history.
- A technical account with least privilege. The server does not connect to the ERP with an administrator account. Ideally it acts on behalf of a specific user and inherits that user's permissions, as described in the article AI Workers and ERP.
- Writes with human confirmation. Tools that create or change data require approval before they run. How to split decisions is covered in the article on human in the loop.
- An audit trail. Every tool invocation is logged: who, when, with what parameters and with what result.
- Tests. A set of cases with expected results, including attempts to call tools outside the granted permissions and documents with hidden instructions.
AI Workers that operate inside a company's systems are deployed by DYNAMINDS Labs, the R&D division of B2Bnetwork. A deployment starts with a free diagnosis, described on the DYNAMINDS Labs page.
Questions and answers
How is MCP different from a regular API?
An API describes the operations of one system in its own format. MCP is a shared protocol through which an AI application discovers which tools and data a server offers and calls them in a uniform way. An MCP server usually uses the system's existing API under the hood. MCP does not replace APIs; it gives models a uniform way to access many of them.
Does MCP only work with Claude models?
No. MCP is an open standard, and according to the project website it is supported by Claude, ChatGPT, Visual Studio Code and Cursor, among others. The same MCP server can serve different AI applications. That way, switching model vendors does not require rewriting integrations with the company's systems.
Can an MCP server change data in an ERP or CRM?
It can, if it exposes write tools and the host and the user allow it. The specification recommends that a person be able to deny any tool invocation and that the client ask for confirmation on sensitive operations. In practice, writes to accounting and sales systems are best routed through human approval, with every invocation logged.
How do you secure a remote MCP server?
For HTTP connections, use the authorization defined in the specification, based on OAuth 2.1: the server accepts only tokens issued for it and checks permissions on every request. Add input validation, rate limits, encrypted connections and audit logs. The server should have the least privilege needed for its tools.