Choose MCP, a direct call or an agent link
Decide whether an integration should be a direct API or CLI call, an MCP server or an agent-to-agent hand-off, by the factor that decides it (reuse, control, the counterpart, where it runs), and reject a proposal that adds a protocol layer without a reason.
Scenario
An architecture review gets a proposal for a receipt helper in an HR portal: an employee uploads a receipt, Claude reads it, and the portal fills in the expense claim through the expense API. The design has an MCP server for the expense API, used by nothing but this portal, and an agent that "decides which tools to use".
Asked what the agent might decide differently from one receipt to the next, the team has no answer. Every receipt goes through the same steps.
Explanation
There are three ways to connect Claude to another system. Pick by what the integration has to do, not by what is newest.
1. A direct call: API, function tool or CLI. Your code calls the system, or you define a tool in your request and your code runs it.
- You control the schema, the scope and the error handling in one place.
- If the steps never vary, code should make the calls and Claude should do only the language work. Anthropic's advice is to find the simplest solution and add complexity only when needed.
- For agents with a shell, such as Claude Code, existing CLI tools (
gh,aws,gcloud) are described as the most context-efficient way to work with external services.
2. MCP. An open standard for connecting AI applications to external systems: one server, used by any MCP client.
- It pays off through reuse: the team that owns a system builds and maintains one server, and Claude Code, Claude apps and other MCP clients use it. Vendors also publish servers you can use rather than build.
- Know where it can run. The Messages API's MCP connector reaches remote servers over HTTP without an MCP client of your own, but supports only tool calls; local stdio servers, MCP prompts and resources need your own client connection (the SDKs provide helpers).
- It is still a server to run, secure and version. For one application calling one endpoint, it adds a layer with no consumer.
3. Agent to agent. The counterpart is itself an agent: it plans, uses its own tools and context, and may take a while. You hand it a goal and read its result, instead of calling a function.
- Inside one system, this is delegation to subagents: in Managed Agents a lead agent hands tasks to agents that work in their own threads, and can send them follow-up messages. Anthropic's docs describe agent-to-agent work inside one system: Managed Agents, and in Claude Code, agent teams whose teammates message each other directly and named subagents that can message each other. For an agent another organization runs, the same reasoning applies, but check what that partner actually supports.
- It fits when the other side's work needs judgment that the other side owns. When the counterpart only executes a defined operation, a tool call is simpler and more predictable.
The deciding questions:
| Question | Points to |
|---|---|
| Does the flow vary with each request? | No: code calls the API |
| Will several apps or teams use this integration? | Yes: MCP |
| Does the counterpart decide and act on its own? | Yes: agent to agent |
| Where does it run, and what can reach it? | Narrows the MCP transport, or rules out the connector |
Worked example
A logistics company's platform team receives three integration requests, each first drafted as "build an MCP server".
Before: three MCP servers, three deployments, three sets of credentials.
After:
1. Proof-of-delivery check: each driver's photo is read for signature, date and damage, then the result is written to the carrier record. One API, fixed steps, one consumer. Code calls the API; Claude only reads the photo. No MCP.
2. Shipment-tracking system: wanted by the support assistant, the sales team's Claude app and developers in Claude Code. The tracking team builds and owns one MCP server, remote over HTTP, exposing read-only tools.
3. Customs clearance research for unusual shipments: the work is open-ended (classify the goods, check rules per country, draft the declaration). A lead agent delegates each country's check to a subagent with its own brief and reads their results.
Each choice follows from one fact: one consumer and a fixed flow, many consumers, or work that needs its own judgment.