In November 2026 I connected the CRM I use every day to my site. The CRM needed to read the blog metrics and the contact requests. A few years ago the only question would have been "what will the APIContract that defines how one program asks another for data or actions: which endpoints to call, what to send and what comes back. On the web, usually HTTP with JSON. look like?". This time a different one came up, and I hear it more and more: "wouldn't an MCP be better?".
It wouldn't. I picked an internal API, with a token, that only answers inside the server's network. But the question is a good one, because from a distance API and MCP look like the same thing: both let one system use another. The difference is who decides what gets called. This article explains what each one is, where you can plug in an MCP, how the integration works in practice and what other ways of connecting systems exist.
What an API Is, in One Sentence
An API is a contract: "send me this, in this format, and I'll give you that back". AWS defines a RESTful API as an interface two systems use to exchange information securely over the internet (AWS). REST is the most common style. In Postman's State of the API 2025 report, with more than 5,700 respondents, 93% use REST (Postman, 2025).

The point that matters for this article: with an API, the programmer decides ahead of time what will be called. The site's code knows it needs GET /posts/engagement?month=2026-11 and calls exactly that. Nobody improvises. If the contract changes, the code breaks, and it's good that it breaks, because that way you find out in testing and not in production.
The API is also where the rules live: who can call, how many times per minute, what comes back on an error. If you want the big picture on proving who's calling, I wrote about the types of authentication in another article.
What MCP Is
MCP is an open protocol Anthropic launched on November 25, 2024, as "a new standard for connecting AI assistants to the systems where data lives" (Anthropic, 2024). The official docs use an analogy that stuck: "think of MCP like a USB-C port for AI applications" (modelcontextprotocol.io). On December 9, 2025, the protocol was donated to the Linux Foundation and became a founding project of the Agentic AIUse of language models that plan, call tools and decide the next step on their own to reach a goal, instead of only answering a question. Foundation, created by Anthropic, Block and OpenAI, with support from Google, Microsoft and AWS (Linux Foundation, 2025). In other words, it's no longer one company's thing.

MCP has three pieces (official architecture):
- Host: the AI app where the person chats. ChatGPT, Claude, Cursor, VS Code.
- Client: the part of the host that talks to a server. The host opens one client per server.
- Server: the program that offers the capabilities. It exposes tools (actions the model can run, like "create reminder"), resources (data to read, like a file or a record) and prompts (ready-made instruction templates).
Client and server talk over JSON-RPC 2.0, using one of two transports: stdio, when the server is a program on your machine, and Streamable HTTP, when it's on the internet. The latest version of the spec, from July 28, 2026, made the protocol stateless: the initial handshake (initialize) is gone, and each request carries its own version and capabilities (2026-07-28 changelog). In practice, it's easier to scale a remote server behind a load balancer.
What MCP brings that's different is discovery. The host asks the server "what can you do?" (tools/list), gets back a list with the name, description and input format of each tool, and hands that list to the model. From then on, the model decides, mid-conversation, which tool to call and with which arguments.
The Difference That Matters: Who Decides What Gets Called
| API | MCP | |
|---|---|---|
| Who consumes it | another program | an AI agent, inside a host |
| Who decides the call | the programmer, in code | the model, during the conversation |
| Discovery | you read the docs (OpenAPI, for example) | the host asks the server what it does |
| Format | whatever you define: REST, GraphQL, gRPC | a single protocol, JSON-RPC 2.0 |
| Typical failure | broken contract, code stops | model picks the wrong tool or gets fooled by malicious text |
| Best for | predictable integration, high volume, fixed rules | giving an AI access to data and actions it wouldn't otherwise have |
And where does function calling fit, which a lot of people confuse with MCP? Function calling is the model's mechanism: it asks "call this function with these arguments" and your code runs it (OpenAI; Anthropic). It lives inside your application. MCP standardizes that across applications: you write the server once and any compatible host can use it. Alura, a Brazilian tech school, sums it up well: MCP swaps "a tangle of proprietary APIs" for a plug-and-play ecosystem, and the MCP server connects to the APIs that already exist (Alura, 2026).

Can You Plug an MCP Into ChatGPT?
Yes, with conditions. This is the question that comes up most, so here's what I checked in the docs on November 15, 2026:
| Host | How the MCP server gets in | Note |
|---|---|---|
| ChatGPT | In Plugins, plus button, "Add custom MCP server", entering the URL and authentication (OpenAI) | Needs a remote server, on public HTTPS with Streamable HTTP, or OpenAI's Secure MCP Tunnel to reach a private server. Write actions ask for confirmation by default (OpenAI) |
| Claude | As a connector on claude.ai, in the desktop app, on mobile and in Claude Code (Anthropic) | Remote server over Streamable HTTP; a local server goes into the desktop app as an extension |
| Cursor | A .cursor/mcp.json file in the project or in the user folder (Cursor) |
Accepts local (stdio) and remote, with OAuth |
| VS Code with GitHub Copilot | Workspace MCP server configuration (VS Code) | Local or remote |
| Copilot Studio | Available since May 29, 2025, for Microsoft agents (Microsoft) | Requires generative orchestration |
| ADK, Google's agent kit, works as an MCP client (ADK) | Gemini CLI is being replaced by Antigravity CLI since May 19, 2026 (Google) |
Two details that save time. First, names change fast: what OpenAI used to call connectors now shows up as Plugins in the docs. Second, ChatGPT doesn't run programs on your machine. If your MCP server only exists on your laptop, it works for Claude Desktop, Cursor and VS Code, but not for ChatGPT, until you publish the server or use the tunnel.
MCP also works outside chat apps. A system of yours can be an MCP client: your own agent, built with an SDK, queries third-party MCP servers the same way ChatGPT does. If you're still deciding whether you need an agent or a chatbotProgram that talks by text or voice, replying to messages from a script or a language model. It answers, but usually does not act outside the chat., start with AI agent or chatbot.
How the Integration Works in Practice
The approach I recommend is separating the business logic from the entry points. The same function serves the API and the MCP, and each entry point only deals with its own audience. Here's an example with the official TypeScript SDK, version 2 (@modelcontextprotocol/server 2.4.0 as of November 15, 2026, repository):
// orders.ts: the rule, without knowing who is calling
export async function orderStatus(id: string) {
const order = await repository.find(id);
return { id, status: order.status, estimatedDelivery: order.estimatedDelivery };
}
// rest.ts: the entry point for other systems
app.get('/v1/orders/:id', authenticate, async (req, res) => {
res.json(await orderStatus(req.params.id));
});
// mcp.ts: the entry point for AI agents
import { McpServer } from '@modelcontextprotocol/server';
import * as z from 'zod/v4';
const server = new McpServer({ name: 'store', version: '1.0.0' });
server.registerTool(
'order_status',
{
description: 'Looks up the status and estimated delivery of an order. Read only.',
inputSchema: z.object({ id: z.string().describe('Order number, e.g. 10482') }),
},
async ({ id }) => ({
content: [{ type: 'text', text: JSON.stringify(await orderStatus(id)) }],
}),
);After that, you pick the transport:
- Local use (Cursor, Claude Desktop, VS Code): start the server over stdio and point the host's config file to the command that launches it.
- Remote use (ChatGPT, claude.ai, a whole team): publish the server over HTTPS with Streamable HTTP, usually on the
/mcproute. In the Node SDK, the class isNodeStreamableHTTPServerTransport. - Authentication: a remote server holding someone's data needs login. The spec requires the authorization server to implement OAuthStandard that lets an app access your data in another service, like Google, without getting your password: you approve and the app receives a limited token. 2.1 and forbids the MCP server from passing along the token it received (spec).
- Test before plugging in: MCP Inspector, the official tool, lists the tools and lets you call each one by hand, with no model in the middle.
Look at the description. It isn't a comment: it's what the model reads to decide whether to call the tool. "Looks up the status of an order. Read only" helps the model get it right. "Orders function" makes it guess. Writing a good tool description is a lot like writing good instructions for a skill or agent.
I built exactly this design in my personal assistant for reminders and calendar: the REST API and the MCP server run in the same process, validate input with the same schema and call the same domain function. The MCP isn't a tunnel or a copy, it's a second door. If tomorrow I switch the chat app I use, the rule doesn't change.
Other Ways for Two Systems to Talk
REST APIs and MCP are two options on a longer list. Each one solves a different problem:
- GraphQL: a query language for your API, where the client asks for exactly the fields it wants (graphql.org). Good when several screens need different slices of the same data. Used by 33% of Postman's respondents. When it becomes the dedicated layer of one interface, it plays the role of a BFF (Backend for Frontend).
- gRPC: the client calls a method on a server on another machine as if it were local, with Protocol Buffers (grpc.io). Strong between internal services, even ones written in different languages.
- Webhook: instead of asking every minute "has it been paid yet?", you get a notice when it happens. GitHub puts it simply: webhooksHTTP call a system makes to your address when something happens, like an approved payment, notifying you right away instead of you polling for changes. take less effort and fewer resources than polling an API (GitHub Docs). Half of Postman's respondents use them.
- Queues and events: RabbitMQ, Amazon SQS, Kafka. The system drops the message with a broker and moves on; whoever processes it picks it up when they can. SQS keeps a message for 4 days by default, up to 14 (AWS).
- A2A (Agent2Agent): a protocol created by Google and moved to the Linux Foundation on June 23, 2025, for agents to talk to each other (Linux Foundation, 2025). The official docs explain the relationship with MCP like this: MCP is vertical, it deepens one agent with tools; A2AOpen protocol that lets AI agents from different vendors talk to each other: one discovers what the other can do and delegates tasks to it. is horizontal, it connects one agent to another (A2A).
Choosing between calling and waiting (synchronous) or notifying and moving on (asynchronous) has a cost on both sides. Microsoft's architecture guide lists what a queue gives you (less coupling, isolated failures, leveled load) and what it charges (extra infrastructure, duplicate messages, the need for idempotency) (Microsoft Learn). There's no free option.
When to Use Each One
In practice:
That reasoning is what led me to an API for the CRM. The CRM pulls the site metrics once a month and syncs the contact requests; nobody chats with anything along that path. The design ended up like this: both systems run on the same server, on the same internal Docker network, and the CRM calls the site's API at its internal address. The CMS API rejects any request that came through the public proxy (it returns 404, as if it didn't exist), and even inside the network it requires a scoped token. AI only shows up later, inside the CRM, to read the month's numbers, and it only gets aggregated totals, never personal data. I wrote more about this CRM in how to build your own CRM with AI.
Security: What Changes When the Caller Is an AI
With an API, the caller is a program you wrote. With MCP, the caller is a model that reads text, and text can lie. The risks have names and real cases:
- Prompt injection: Invariant Labs showed an attack where a public issue with hidden instructions made an agent use GitHub's MCP server to leak data from private repositories (Invariant Labs, 2025).
- Malicious server: the npm package
postmark-mcp, which wasn't from Postmark, started sending a hidden copy of emails to an outside address starting with version 1.0.16 (Postmark, 2025). - A flaw in the client itself: CVE-2025-6514, in
mcp-remote, allowed running commands on the machine of anyone who connected to a hostile server, with a score of 9.6 out of 10 (JFrog, 2025).
OWASP already keeps an MCP-specific Top 10, still in beta, with items like tool poisoning, prompt injectionAttack where malicious text in an email, website or document carries instructions the model follows as if they came from the user, hijacking its behavior. and "shadow" MCP servers installed without the security team knowing (OWASP). And Postman measured the concern: 51% of respondents worry about unauthorized or excessive calls made by agents (Postman, 2025).
The general rule applies to any integration, with or without AI. NIST sums up the zero trust principle in one sentence: no implicit trust based only on network location (NIST SP 800-207, 2020). That's why my CRM, even inside the internal network, still presents a token.
Tools to Try
- MCP documentation, with the spec, the SDKs and the Inspector.
- Hoppscotch to call a REST or GraphQL API without installing anything.
- Webhook.site to see what a webhook sends before writing the code that receives it.
- Swagger Editor to write the OpenAPI contract for your API.
- Chrome DevTools MCP, an official MCP server that lets the agent open and inspect pages in Chrome. A good example of a tool that's both useful and risky: it browses for you.
Frequently Asked Questions
Does MCP replace APIs?
No. The MCP server almost always calls an API or a database behind it. It's one more door, built for AI agents, and it doesn't change how your systems talk to each other.
Do I need an MCP to use AI in my system?
No. If your code is the one calling the model, function calling does the job. MCP is worth it when you want agents from other apps, like ChatGPT, Claude or Cursor, to use your system without a custom integration for each one.
Can I use an MCP server on free ChatGPT?
The OpenAI docs I checked don't list plans on the connection page. Developer mode, which unlocked MCP servers with write access, launched in beta in September 2025 for the Plus and Pro plans (The Decoder, 2025). Check your account before promising anything to a client.
Is MCP secure?
The protocol comes with authorization rules based on OAuth 2.1, but security depends on who implements it and who installs it. The 2025 leaks came from prompt injection and a malicious package, not from a flaw in the protocol itself.
What's the difference between MCP and A2A?
MCP connects an agent to the tools and data it uses. A2A connects one agent to another, so one can hand work to the other. Both are at the Linux Foundation and they complement each other.
Is a webhook an API?
It's an HTTP integration, but in the opposite direction: instead of you asking, the other system tells you. Red Hat goes as far as saying webhooks aren't APIs, precisely because of that inversion (Red Hat). Always validate the signature, as Stripe and GitHub recommend.
How much does it cost to run an MCP server?
The protocol is open and the SDKs are free. The cost is the same as any service: server, monitoring and the time to keep security up to date. A local-only server, for personal use in Cursor or Claude Desktop, costs nothing beyond your own machine.
Where do I start if I've never built one?
Take a function you already have, read only, and expose it as a tool with the official SDK. Test it in the Inspector, then in Cursor or Claude Desktop over stdio. Only publish it remotely once you have authentication and logging.
References
- Anthropic, Introducing the Model Context Protocol, 2024.
- Model Context Protocol, 2026-07-28 specification, architecture and security best practices, 2026.
- Linux Foundation, Agentic AI Foundation, 2025, and A2A project, 2025.
- OpenAI, Connect from ChatGPT and Developer mode, accessed in 2026.
- Postman, State of the API Report, 2025.
- Microsoft Learn, Interservice communication in microservices, 2026.
- NIST, SP 800-207 Zero Trust Architecture, 2020.
- OWASP, MCP Top 10, beta, 2026.
- Canaltech (Brazilian), O que é MCP?, 2026.
- Alura (Brazilian), Model Context Protocol (MCP), 2026.
- Book: Martin Kleppmann and Chris Riccomini, Designing Data-Intensive Applications, 2nd edition, O'Reilly, 2026. The best book I know on how systems exchange data without getting lost.
- Book: Gregor Hohpe and Bobby Woolf, Enterprise Integration Patterns, Addison-Wesley, 2003. Its 65 messaging patterns still hold up twenty years later.