What Is MCP (Model Context Protocol)? MCP vs API, Explained
MCP (Model Context Protocol) is an open standard for connecting AI applications to outside tools and data. Instead of building a custom integration for every pair of AI app and system, a company builds or installs one MCP server for a system (a database, a CRM, a file store, a team workspace), and any AI app that speaks MCP can use it. The project’s own site describes it as “an open-source standard for connecting AI applications to external systems” and compares it to “a USB-C port for AI applications”.
Anthropic open-sourced MCP in November 2024. It’s now supported by a wide range of AI apps, including Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and many more.
Why it matters
An AI model is only as useful as the context it can reach and the actions it can take. Before MCP, each AI app needed its own connector for each system, so ten apps and ten systems meant up to a hundred integrations. MCP turns that into ten servers that any app can use. The same server works whichever model or app you choose, so switching AI tools doesn’t mean rebuilding integrations.
For agents, MCP is how they act: an AI agent uses MCP tools to query a database, open a ticket, read a document or post in a team thread.
How MCP works
MCP uses a client-server design and JSON-RPC 2.0 messages. The specification names three participants:
- Host: the AI application a person uses, such as Claude Code, Cursor or a chat app.
- Client: the connector inside the host that keeps a connection to one server.
- Server: the program that exposes a system’s data and actions.
Servers offer three kinds of features:
| Feature | What it is | Example |
|---|---|---|
| Tools | Functions the AI model can call | “create_ticket”, “search_orders”, “post_message” |
| Resources | Context and data for the user or the model to use | A file, a database schema, a document |
| Prompts | Templated messages and workflows for users | A “summarize this incident” template |
Clients can also offer features back to servers, such as elicitation, which lets a server ask the user for more information mid-task.
Transports. The specification defines two standard ways to connect: stdio, where the server runs on your own machine as a local process, and Streamable HTTP, where the server runs remotely and the app connects over the web. Remote servers are what most companies use to share one server across a team.
MCP vs API
MCP doesn’t replace APIs; most MCP servers call an API underneath. The difference is who each is built for.
| Traditional API | MCP | |
|---|---|---|
| Built for | Developers writing code for one integration | AI applications that discover and use tools on their own |
| Integration | Custom code per app and per API | One server works with any MCP-compatible app |
| Discovery | Read the docs, write the client | The app asks the server what tools, resources and prompts it has |
| Descriptions | For human developers | Written for the model, so it knows when and how to use each tool |
| Calls | Fixed endpoints in code a developer wrote | The model chooses which tool to call and with what inputs |
| Authentication | Varies by API: keys, OAuth, custom | OAuth 2.1 for remote (HTTP) servers when authorization is used |
| Typical use | App-to-app integrations, back ends | Giving AI assistants and agents access to tools and data |
In short: an API is how software talks to software; MCP is how AI apps find and use that software. Companies keep their APIs and put MCP servers in front of the ones their AI tools need.
MCP vs function calling
Tool calling (or function calling) is a model’s ability to request that a tool be run. MCP is the standard for where those tools come from: it packages tools so any app can connect to them, rather than each app defining its own.
Examples of MCP servers
For a dated list of official remote servers, with URLs and admin controls, see the best MCP servers for teams.
- Developer tools: GitHub, databases, error tracking, cloud consoles.
- Business apps: CRMs, ticketing systems, project trackers, document stores.
- Communication: team chat and workspaces, so agents can read and post in threads.
- Local tools: a file system or browser on your own machine, over stdio.
Security
MCP gives AI apps real access, so it needs the same care as any integration:
- Authorization. The specification makes authorization optional, and for remote servers it’s based on OAuth 2.1, so users sign in and grant access instead of pasting keys.
- Consent. The specification says hosts must get explicit user consent before invoking any tool and before exposing user data to servers.
- Least privilege. Give each server only the access its job needs; prefer read-only where possible.
- Trusted servers only. A server’s tool descriptions and outputs reach the model, so an untrusted server can try to steer it (prompt injection).
- Central control. Companies often approve a list of servers and manage access centrally rather than letting each person install their own.
How to set up an MCP server
Most AI apps let you add a server by name and URL (for a remote server) or by a command (for a local one), then sign in. Step-by-step guides for the elvex server:
How elvex relates
elvex runs a remote MCP server (Streamable HTTP, with OAuth sign-in), so each person’s Claude Code, Codex, Cursor or other MCP client can join the team’s threads, read shared files and to-dos with that person’s access, and work alongside teammates’ agents. See the elvex MCP page.
Related
-
What is MCP?
MCP (Model Context Protocol) is an open standard for connecting AI applications to outside tools and data. A system is exposed once as an MCP server, and any MCP-compatible AI app can use it. -
What is the difference between MCP and an API?
An API is built for developers to write code against. MCP is built for AI applications: they connect to an MCP server, discover its tools on their own, and the model decides when to call them. Most MCP servers use an API underneath. -
Who created MCP?
Anthropic, which open-sourced it in November 2024. It’s an open standard used across many AI apps and vendors. -
What is an MCP server?
A program that exposes a system’s tools, resources and prompts over MCP, either locally on your machine (stdio) or remotely over the web (Streamable HTTP). -
Is MCP secure?
It can be. Remote servers use OAuth 2.1 for sign-in when authorization is used, and hosts must ask for user consent before running tools. Use trusted servers and give each one only the access it needs.