Topic 1 of 5 · 4 min read
The integration problem MCP was built to solve
Goal: Decide for a given integration whether an MCP server, a direct API call or a plain CLI command is the better fit and justify the choice.
The Model Context Protocol (MCP) is an open standard that lets any AI application talk to any tool or data source through one shared interface, so you write a connector once instead of once per app.
Check yourself · 1 of 3
Five internal systems must be reachable from three different AI applications. What does MCP change about that integration work?
Why it matters
Before MCP, connecting a model to Jira, a database and a calendar meant custom glue for every pairing. Three AI apps and four systems meant up to twelve integrations, each with its own auth, schema format and bugs. MCP turns that product into a sum: each system gets one MCP server, each AI application gets one MCP client implementation, and they interoperate. Claude Code, Claude Desktop and Visual Studio Code are named in the official documentation as hosts that connect to MCP servers, and other assistants and IDEs do the same.
What MCP actually standardizes
MCP defines the message format (JSON-RPC 2.0), how a client finds out what a server offers, and three kinds of capability a server can expose: tools, resources and prompts. It does not decide how an application uses a model or manages the context it receives. The architecture page says this directly: MCP focuses solely on the protocol for context exchange.
How to decide whether you need it
Ask three questions about the integration.
- Who calls it? If one script you control calls one API, a direct HTTP call is simpler. MCP pays off when many different AI applications, including ones you do not control, should reach the same system.
- Does the model need to discover it at runtime? MCP servers list their tools with typed schemas, so a model can learn what is available. A shell command the agent already knows, such as
gitorpsql, needs no server. - Who owns the trust boundary? An MCP server is a new process or endpoint with its own permissions. If you would not hand the model that access directly, a server does not make it safer by itself.
Before and after
Weak: "We need our support bot to read tickets, so build an MCP server." The bot is one Python script that calls the ticket API with a fixed query.
Better: the script keeps its direct API call. Later, when the same ticket data must also appear inside Claude Desktop, an IDE assistant and an internal agent, the team wraps the API once as an MCP server and all three connect to it.
What goes wrong
- Treating MCP as a security layer. The protocol carries messages. Authorization, least privilege and review of tool descriptions remain your job.
- Wrapping every endpoint as a tool. Fifty tools with overlapping names confuse the model and fill its context.
- Expecting identical behavior everywhere. Hosts differ in which features they support and how they ask the user for consent.
- Adding a server where a CLI already works. A well-known command line tool is often shorter, cheaper in tokens and easier to debug.
Examples
Three apps, four systems
A company wants Claude Desktop, an IDE assistant and an internal agent to read Jira, Postgres, Google Calendar and its wiki. Without a shared protocol that is up to 12 custom integrations. With MCP it is 4 servers, and each app only needs a client.
Keep the direct call
A nightly job asks one model to classify tickets fetched from one internal API. The job controls both ends and nobody else will reuse it. A plain function that calls the API and passes the rows to the model is shorter and easier to test than a server plus a client.
Key points
- MCP replaces one custom connector per app-and-system pair with one server per system and one client per app.
- It standardizes messages, discovery and three capability types; it does not control how a host uses the model.
- Choose MCP when several AI applications you do not control need the same system; a single script can call the API directly.
- A server is a new trust boundary, so permissions and tool descriptions still need review.
- A familiar CLI the agent already knows can beat a server in simplicity and token cost.
Common mistakes
- Assuming an MCP server adds authorization or sandboxing; it only carries the messages.
- Exposing one tool per REST endpoint instead of a few task-shaped tools the model can choose between.
- Building a server for a one-off script that calls a single API it fully controls.
- Believing every host supports every MCP feature in the same way.
Check yourself · 2 of 3
A cron job on one server asks a model to label rows it reads from a single in-house REST API. The team controls both ends and nobody else will reuse the code. What is the best fit?
Check yourself · 3 of 3
Which statement about what MCP does not solve is accurate?
Practice items, not counted towards your mastery.
Start here
- MCP architecture overview (opens in a new tab)DocsFree
The official definition of hosts, clients, servers, the data layer and the transport layer.
- Model Context Protocol specification (latest) (opens in a new tab)StandardFree
The normative text: what clients and servers MUST and SHOULD do.
- MCP specification changelog, 2026-07-28 revision (opens in a new tab)DocsFree
Lists what changed since 2025-11-25: no handshake, no sessions, server/discover, subscriptions/listen.
More for this topic
- Hugging Face MCP Course (opens in a new tab)CourseFree
A free, hands-on course that builds an MCP server and client end to end.