What Is the Model Context Protocol (MCP)? How AI Agents Connect to Tools and Data
The Model Context Protocol (MCP) is an open standard that connects AI apps to tools and data. How it works, what changed in 2026 and how to secure it.

The Model Context Protocol (MCP) is an open standard that lets AI applications connect to external tools and data through one common interface. An AI application, the host, runs one MCP client for each MCP server it uses, and each server offers tools the model can call, resources it can read and prompts it can reuse.
Anthropic introduced MCP on November 25, 2024, and on December 9, 2025 donated it to the Agentic AI Foundation, a directed fund under the Linux Foundation. As of November 2026, the current specification is the 2026-07-28 revision, which makes every request self-contained and adds a discovery request that tells a client what a server supports.
Where engini fits: engini turns the systems that run a business, such as ERPs, CRMs, databases, complex financial systems and legacy systems behind your firewall, into MCP servers that agents such as Claude, ChatGPT and Cursor can use. Each engini MCP server exposes only the connections and tools you choose, the client signs in through engini with no key to copy, and every call is recorded. Start with the MCP client setup guide or the engini docs index.
Key Takeaways
- MCP connects AI applications (hosts such as Claude Code or Visual Studio Code) to MCP servers through MCP clients, using JSON-RPC 2.0 messages.
- Servers offer three primitives: tools (functions the model calls), resources (data for context) and prompts (reusable templates). Clients can offer elicitation, which lets a server ask the user for input.
- MCP runs over two transports: stdio for local servers and Streamable HTTP for remote servers. Remote servers that require sign-in use OAuth 2.1 authorization, and a server must not pass a client's token through to another API.
- The 2026-07-28 specification makes MCP stateless, adds the
server/discoverrequest, and deprecates sampling and logging as client features. - Anthropic reported in December 2025 that ChatGPT, Cursor, Gemini, Microsoft Copilot and Visual Studio Code support MCP, with more than 10,000 active public MCP servers.
- MCP standardizes how an agent reaches a tool. It does not decide which actions the agent should be allowed to take, as which account, or what gets logged; the server and the client have to do that.
What problem does the Model Context Protocol solve?
MCP solves the integration problem of connecting many AI applications to many systems. Before MCP, each AI application needed its own connector for each data source. Anthropic's launch post put it this way: "Every new data source requires its own custom implementation, making truly connected systems difficult to scale" (Anthropic: Introducing the Model Context Protocol).
With a shared protocol, the math changes. If you have 5 AI applications and 20 systems, one-off connectors mean up to 5 times 20, or 100, separate pieces of glue code to build and maintain. With MCP, each application implements an MCP client once and each system is exposed once as an MCP server, so you maintain 25 pieces instead of 100.
The MCP documentation compares the idea to the Language Server Protocol, which standardized how editors support programming languages; MCP does the same for how AI applications get context and tools (MCP specification).
How does MCP work?
MCP works as a client-server protocol: an AI application (the host) creates one MCP client per MCP server, and each client keeps a dedicated connection to its server. The client discovers what the server offers, passes tool definitions to the model, and sends the model's tool calls to the server.
| Participant | What it is | Example |
|---|---|---|
| MCP host | The AI application that coordinates one or more MCP clients | Claude Code, Claude Desktop, Visual Studio Code |
| MCP client | A component inside the host that keeps a connection to one MCP server and obtains context from it | One client object per connected server |
| MCP server | A program that provides context and tools to MCP clients, locally or remotely | A local filesystem server, or a remote server run by a software vendor |
Source: MCP architecture overview.
MCP has two layers:
- The data layer is a JSON-RPC 2.0 protocol that defines discovery, the primitives (tools, resources, prompts), client features and notifications.
- The transport layer carries those messages. MCP defines two transports: stdio, for a local server running as a process on the same machine, and Streamable HTTP, which uses HTTP POST with optional Server-Sent Events for remote servers. The documentation says MCP recommends OAuth to obtain tokens for remote servers.
A typical exchange runs in four steps:
- Discover. The client sends
server/discover(optional, but every server must implement it) and learns the server's supported protocol versions and capabilities. - List. The client calls
tools/listand receives each tool's name, description and JSON Schema for its inputs. - Call. When the model decides to use a tool, the client sends
tools/callwith the tool name and arguments, and the server returns the result. - Stay current. If the client opened a
subscriptions/listenstream, the server sends a notification when its tool list changes, and the client lists the tools again.
What are MCP tools, resources and prompts?
MCP tools, resources and prompts are the three primitives a server can offer: tools are actions, resources are data, and prompts are templates.
| Primitive | Offered by | What it is | Example |
|---|---|---|---|
| Tools | Server | Executable functions the model can invoke | Query a database, call an API, create a record |
| Resources | Server | Data sources that give the model context | File contents, a database schema, an API response |
| Prompts | Server | Reusable templates that structure an interaction | A system prompt or few-shot examples for a task |
| Elicitation | Client | A way for a server to ask the user for more input or a confirmation | "Which account should this invoice go to?" |
The specification describes tools as "model-controlled": the language model discovers and calls them based on the conversation. That is why tool design matters. A tool called create_sales_order with a strict input schema is safer than a generic run_request tool that accepts anything.
Note: As of the 2026-07-28 revision, sampling (a server asking the client's model for a completion) and logging are deprecated as client features. New servers should call model provider APIs directly and log to stderr or OpenTelemetry (MCP architecture overview).
What changed in the 2026-07-28 MCP specification?
The 2026-07-28 revision made MCP stateless: every request carries its protocol version and capabilities in a _meta field, so a server can handle each request on its own. Revisions up to 2025-11-25 used server-assigned session IDs instead.
The main changes, from the specification and the architecture overview:
- Discovery. Servers must implement
server/discover, which returns supported versions and capabilities in one cacheable response. - Opt-in notifications. A client opens a
subscriptions/listenstream and names the notification types it wants, such as tool list changes. - Multi round-trip requests. A tool can answer "input required", and the client retries the call with the user's answer. Elicitation uses this pattern.
- Deprecations. Sampling and logging as client features; dynamic client registration in authorization, in favor of OAuth Client ID Metadata Documents.
- Extensions. Optional, negotiated add-ons such as Tasks (durable handles for long-running work), Skills over MCP and MCP Apps (interactive UI inside a conversation).
Tip: If you maintain an MCP server, check which protocol versions your users' clients send. A server rejects an unsupported version with an UnsupportedProtocolVersionError that lists the versions it accepts, and the client retries with one of them.
How is MCP different from an API or function calling?
MCP is not a replacement for APIs: an MCP server usually calls an API underneath. What MCP adds is a standard way for any AI application to discover tools at run time and call them with the same messages, whoever built the server.
| A REST API | Model function calling | MCP | |
|---|---|---|---|
| Who defines the interface | Each vendor, in its own style | Your application, per model provider | One open specification |
| How tools are found | Read the docs, write code | You pass tool definitions in each request | The client lists them from the server at run time |
| Who picks the action | Your code | The model, from tools you supplied | The model, from tools the server exposes |
| Reuse across AI apps | Rebuild per app | Rebuild per provider format | Any MCP client can use the same server |
| Authorization | Whatever the API defines | Up to your application | OAuth 2.1 for HTTP servers; credentials from the environment for stdio |
The difference that matters most in production is the row "who picks the action". With MCP, the model chooses which tool to call. For a person asking an assistant a question, that is fine. For an unattended job that writes invoices into an ERP, many teams prefer code that calls one exact action with exact inputs, so a wrong guess cannot become a wrong record.
How does MCP handle authorization and security?
MCP authorization is optional, and when an HTTP-based server uses it, the server acts as an OAuth 2.1 resource server: the client discovers the authorization server through protected resource metadata (RFC 9728), runs an authorization code flow with PKCE, and sends a bearer token on every request. A stdio server should not use this flow and instead reads credentials from its environment (MCP: Authorization).
The specification sets several hard rules:
- MCP servers must validate that a token was issued for them as its intended audience.
- MCP servers "MUST NOT accept or transit any other tokens", which rules out token passthrough to a downstream API.
- Clients must include a
resourceparameter naming the MCP server they want the token for. - Servers should challenge for the narrowest scopes an operation needs, not the whole catalog.
The MCP security guidance names the attacks to plan for (MCP: Security best practices):
| Risk | What happens | Mitigation in the guidance |
|---|---|---|
| Confused deputy | A proxy server with a static client ID lets an attacker get an authorization code without the user's consent | Per-client consent before forwarding to the third-party sign-in |
| Token passthrough | A server accepts a token meant for another service and forwards it | Accept only tokens issued for this server |
| Server-side request forgery | A malicious server points the client's OAuth discovery at internal addresses | HTTPS only, block private IP ranges, validate redirects |
| Local server compromise | A one-click install runs a malicious command on the user's machine | Show the exact command, require consent, sandbox |
| Broad scopes | A stolen token with wide scopes reaches unrelated tools | Minimal initial scopes, step-up authorization |
On tools, the specification says there "SHOULD always be a human in the loop with the ability to deny tool invocations", that clients must treat tool annotations as untrusted unless the server is trusted, and that servers must validate inputs, apply access controls, rate limit calls and sanitize outputs (MCP: Tools). Confirmation prompts live in the client application, such as Claude or Cursor; the protocol itself cannot enforce them.
For a real case of an agent with too much access, see our analysis of agent governance after the PocketOS incident.
Who supports MCP?
MCP is supported by the major AI assistants and developer tools and, increasingly, by the vendors of business systems themselves. Anthropic's December 9, 2025 announcement listed ChatGPT, Cursor, Gemini, Microsoft Copilot and Visual Studio Code among the products that support MCP, and reported "more than 10,000 active public MCP servers" (Anthropic: Donating the Model Context Protocol).
System vendors now publish MCP access to their own products. NetSuite's help center says NetSuite "has adopted the Model Context Protocol (MCP)" and provides the MCP Standard Tools SuiteApp, a set of tools for working with NetSuite data from an external AI client (NetSuite Help: AI Connector Service). A vendor's own server covers that vendor's system; an agent that works across an ERP, a CRM and an internal database needs a server, or several, for each.
For the wider shift this enabled, see what agentic AI means, and for MCP in finance systems, our guide to MCP for enterprise finance and legacy systems.
How engini works with MCP
engini gives agents MCP access to the systems that run a business, with the controls a security team asks for, and the same tools are available from code when the model should not be the one choosing.
- Any connection or workflow as an MCP server. You connect a system once, such as NetSuite, SAP S/4HANA, Salesforce, HubSpot, Microsoft Dataverse, Workday, SQL Server, Oracle Database or IBM DB2, and expose it to Claude, ChatGPT, Cursor or another MCP client. A workflow can be published as a tool on the same server.
- Scoped by configuration. Each MCP server exposes only the connections and tools chosen when it is set up, so a finance assistant can read invoices without seeing the tool that deletes a customer. engini shows who is using each of its MCP servers.
- Sign-in without keys. engini's MCP servers use the OAuth sign-in the MCP specification describes: the client opens a browser for the engini sign-in and consent, and you never paste an API key into the client (MCP client setup).
- Credentials out of the model's reach. Your agent never needs your credentials: engini stores them and adds them when it runs each call, so keys stay out of prompts and tool inputs.
- Acting as the right account. engini acts as whoever's connection it uses. Connect a user's own account and it acts as that user, with that user's permissions; every run is recorded under the user who triggered it, in an audit log with export and streaming to a SIEM.
- Your setup, read live. Custom fields and custom objects are read live from each system's own configuration, so agents see the fields and objects your ERP or CRM actually has.
- Systems behind the firewall. The on-prem agent runs on your own server and opens every connection outbound, so you open no inbound ports. Calls through it run on the same engine as MCP calls.
- Other MCP servers, and MCP into workflows. engini can use tools from external MCP servers, and an MCP tool trigger lets an AI tool start a workflow in engini.
- The same tools from code. With the Python and TypeScript SDKs, the CLI or the REST API, your code picks the tool and can run it deterministically with exact inputs. A toolset limits which tools and which connection a code-built agent may use, enforced on the server.
When you do not need engini: if your agent works in one system and that vendor's own MCP server covers what it needs, start there. If you are building a single local server for your own laptop, the official MCP SDKs are enough. engini is for agents that act across ERPs, CRMs, databases and systems on your own servers, with scoping, identity and a record your security team can review. Browse the systems on the connectors page.
Agent gateway
Ship agents into systems you can’t afford to break
Connect AI agents to your ERP, CRM, financial and legacy systems through MCP, SDK, API or canvas, with secure auth, tool permissions and an audit trail built in.
Frequently Asked Questions
What is the Model Context Protocol in simple terms?
MCP is a common plug that lets any AI application use any tool or data source that speaks the protocol. The AI app connects to MCP servers, lists their tools, and calls them when the model decides a tool is needed.
Who created MCP and who maintains it now?
Anthropic created MCP and introduced it on November 25, 2024. On December 9, 2025, Anthropic donated it to the Agentic AI Foundation, a directed fund under the Linux Foundation co-founded by Anthropic, Block and OpenAI.
What is the difference between an MCP client and an MCP server?
An MCP server offers tools, resources and prompts; an MCP client connects to one server on behalf of an AI application. The host application, such as Claude Code or Visual Studio Code, creates one client for each server it uses.
Is MCP secure?
MCP is as secure as its implementation, because the protocol defines authorization rules but cannot enforce consent or scoping by itself. Remote servers should use OAuth 2.1, accept only tokens issued for them, expose narrow tools, and log every call.
Does MCP replace APIs?
No, MCP usually sits on top of APIs. An MCP server wraps an API, database or file system in tools that any MCP client can discover and call, so AI applications do not need a custom connector for each system.
What are MCP transports?
MCP defines two transports: stdio and Streamable HTTP. Stdio connects a local server running on the same machine, and Streamable HTTP connects a remote server over HTTP POST with optional Server-Sent Events.
Sources
- Model Context Protocol: Specification (2026-07-28)
- Model Context Protocol: Architecture overview
- Model Context Protocol: Tools
- Model Context Protocol: Authorization
- Model Context Protocol: Security best practices
- Anthropic: Introducing the Model Context Protocol (November 25, 2024)
- Anthropic: Donating the Model Context Protocol and establishing the Agentic AI Foundation (December 9, 2025)
- NetSuite Help: NetSuite AI Connector Service
- engini docs: MCP client setup
- engini docs: Scope an agent with a toolset