Blog

MCP vs SDK: How to connect AI agents to external tools

MCP vs API is the wrong question. Compare connecting an AI client like Claude through MCP with building your own agent on an SDK, and how to choose.

7 min read

Two routes into one Agent200 hub: an AI client chat window and a code editor each connect to it, and it connects on to three services

An agent needs Slack and Gmail, and the first debate is usually MCP vs API.

It is the wrong comparison.

MCP and APIs are not alternatives. An MCP server that reaches Slack still calls Slack’s API.

The comparison that matters is MCP vs SDK, and it is really a question about the agent:

  • Connect an AI client somebody else built, like Claude, through MCP.
  • Build the agent in code, and call the tools through an SDK.

Agent200 is built for both, behind the same API key and the same per-user sign-in. Which one fits comes down to a single question: who runs the model?

Why the choice isn’t MCP vs API

Three terms, three jobs

MCP is a protocol. The project’s own definition calls it “an open-source standard for connecting AI applications to external systems.” An AI application acts as the client. An MCP server exposes tools to it.

An API is the interface a service offers to other software. Slack’s API is how anything reads a Slack channel, an MCP server included.

An SDK is a way of working with an API from code. Agent200’s SDK is how an app calls Agent200 directly.

The layers stack rather than compete. An MCP server sits on top of APIs, and so does an SDK. The difference is what sits above them: a ready-made AI client, or code a team wrote itself.

The protocol’s history explains some of the mess. Its 2024-11-05 revision left authorization out of the core specification, and the March 2025 revision added a framework based on OAuth 2.1. Clients have been adding sign-in support at different speeds ever since.

Who runs the model

On the MCP route, the client runs the model. Agent200’s Slack + Claude guide spells out the split. Claude “sees the Slack tools on the Agent200 MCP server and calls the one the request needs.” Agent200 runs that call with the user’s own Slack connection, within the tools and scopes the project allows.

Claude decides. Agent200 executes.

On the SDK route, Agent200 runs the model. The app calls run(), and Agent200 “runs the model you chose with the tools you allowed, executes the tool calls, and hands back the result.” Everything around that call stays with the app. Use Agent200 from any agent framework puts it simply: “your framework carries on exactly as before.”

That is the decision in one line. With MCP, the model belongs to the client. With the SDK, the model is whichever one the code names.

Running the model also means owning its instructions. The run() example on the Agent200 blog passes them as a single field, beside the model and the tools. In Claude, they come from the chat.

Either the team takes the client’s model and interface in exchange for writing nothing, or it writes the agent and chooses the model, the instructions and the moment the agent runs.

Neither route changes how users sign in. Each user approves each service once, on that service’s own page, and the guide is explicit that “Connections belong to individual end users.”

Diagram of two routes to Slack. On the MCP route, Claude runs the model and picks each tool, and the Agent200 MCP server executes the call. On the SDK route, the team's app decides when to call and Agent200 run() runs the model and executes the call. Both reach the user's own Slack connection.
On the MCP route, Claude runs the model and Agent200 executes the calls. On the SDK route, Agent200 runs both. The user’s connection at the end is the same.

The two routes side by side

MCP route SDK route
Who controls the agent The AI client, such as Claude The team’s own application
Who runs the model The client Agent200, inside run(), using the model the code names
Who executes the tool call Agent200 Agent200
Where the Agent200 API key lives The client’s connector settings, as a request header The app’s server environment
How users connect a service Approve once, on the service’s own page Approve once, on the service’s own page
Typical use Claude and compatible clients Custom agents and frameworks

Two rows match on both sides: who executes the tool call, and how users connect. Both routes also start from a key created on the same API keys page. Access works the same way underneath.

How to connect an agent on each route

The MCP route, in Claude

The full walkthrough is in How to replace local MCP servers in Claude with one remote server. In outline, the route is one custom connector with three settings:

Illustrative configuration: MCP availability pending.

Server URL:      https://api.agent200.com/mcp/
Authentication:  No sign-in
Request header:  authorization: Bearer YOUR_AGENT200_API_KEY   (Required)

The design is that the first time a user asks Claude for something in Slack, Agent200 returns an authorization link. The user approves access on Slack’s own page, and Claude can call the Slack tools from then on.

No code is involved.

Claude brings the model, the chat and the decisions about which tool to call. Agent200 brings the connection and runs each call.

The SDK route, in code

This is the route Agent200’s Slack + ChatGPT guide and its Claude Code guides use. It takes three calls.

// Conceptual example

// One Agent200 API key covers every connector enabled for the project.
const agent200 = new Agent200({
  apiKey: process.env.AGENT200_API_KEY,
});

// Each end user authorizes their own Slack account, once.
const connection = await agent200
  .user("user_123")
  .connect("slack");

if (connection.authorizationUrl) {
  // Show this link to your user; Agent200 handles the rest.
  console.log(connection.authorizationUrl);
}

// Agent200 runs the model and the tool calls, then returns the answer.
const result = await agent200
  .user("user_123")
  .run({
    model: "openai/gpt-5.6-sol",
    input: "What did #product decide yesterday?",
    tools: ["slack"],
  });

console.log(result.output);

The model is a line in the code. Changing it means changing one string, not changing clients.

The app’s one new duty is the authorization link. When connect() returns one, the user has to see it, or the agent has nothing to call.

The guide’s own test makes a good first check. Ask the question in the example, then confirm the model calls a Slack tool such as slack_search before it answers.

The call drops into an existing agent. The framework guide shows it inside a LangGraph node, where “The graph does not know or care that a workflow, two services and a model ran inside that step.” The same call works from the OpenAI Agents SDK or plain application code.

For what happens inside that one call, Inside run() walks through the loop: the model reasons, calls a tool, reads the result and continues until the request is complete.

When the client makes the choice

Sometimes the client decides first. ChatGPT is the clearest case. OpenAI’s developer mode documentation lists OAuth, no authentication, and a mix of the two as the authentication options for a custom MCP server. A fixed API key is not among them.

The Slack + ChatGPT guide draws the conclusion: ChatGPT “signs in to them only with OAuth or with no sign-in, and cannot send an API key.”

Agent200’s MCP server is designed around that key. A ChatGPT user cannot hand it over, so the ChatGPT guides take the SDK route instead, with OpenAI models running through Agent200.

Claude is not fully open either. Anthropic’s documentation says request header authentication is in beta and available to a limited set of organizations, and that its custom connector dialog varies by organization.

The same check applies to any client. Can it send a fixed credential as a request header? If not, the MCP route is closed, whatever the architecture diagram says.

Building your own MCP client

MCP is not only for apps somebody else built. Frameworks can act as MCP clients too. The OpenAI Agents SDK connects agents to MCP servers over Streamable HTTP, SSE and stdio, or through hosted MCP tools, and its Streamable HTTP example sends an Authorization header.

A team’s own agent could use either route. The honest tiebreak is who should run the tool-calling loop. An MCP client in the team’s own code means the team runs it. The SDK route hands that loop to Agent200’s run().

Owning that loop means the team’s code decides which tool to call next, when to stop and what to do with each result, and every one of those decisions has to be written, tested and maintained.

Agent200’s guides document its MCP server for Claude and the SDK for agents teams build. That is the split this post follows.

Four situations that settle it

  • People already work in Claude. MCP is the route designed for it. Nobody writes code, and the connector is one settings screen.
  • The client cannot send a request header. Use the SDK, as the ChatGPT guides do.
  • The team needs to choose the model or write the instructions. Use the SDK, where both are fields in run().
  • The agent has to run on its own, on a schedule or after an event. Use the SDK. The MCP route starts with a person asking Claude for something.

The two routes can also run side by side. A support lead might ask Claude about a Slack thread through MCP, while the team’s own triage agent calls run() on every new ticket.

The model decides the route

MCP vs API was never the real choice.

The question is who runs the model.

Pick the route by who runs the model, and the rest follows from it: where the key lives, who writes the tool-calling loop, and which model answers each user’s question.

If it’s Claude, the MCP route is the one designed for it. If it’s code the team wrote, call the SDK. If the client can’t send a key, the client has already chosen.

Connector pages link to framework guides for both routes. Start with Slack in Communication, or browse the connector directory for the service the agent needs first. To ask about MCP access, talk to the team.

The connections underneath stay the same either way. So do their limits: a Google refresh token can still stop working, and the user approves again.

200 OK

Build the agent.
Access everything it needs.

Bring the agent you already have. Agent200 provides and executes its external capabilities.

Book a demo.
See it in action.

Tell us who you are, then pick a time for a 1:1 session with an expert from our team.

We use your details only to email you about Agent200. See the Privacy Policy.

Pick a time. We'll take it from there.

A 1:1 session with an expert from our team, about what you are building.

Open in Calendly (opens in a new tab)