MCP vs API: If the API Already Works, Why Add MCP?

Compare MCP vs. REST API using the same support ticket. See when an MCP server saves client-side code, when to keep your existing API, and what latency it adds.
Frosted-glass tiles labeled MCP and API both connect to the same support ticket.

MCP took about 0.91 milliseconds longer than a direct API call in our local test. Both routes missed the same billing complaint. Give our ticket sorter “I was charged twice” and it recommends manual review: the rule looks for charge, and that last d is enough to miss the match.

We’d still use MCP for Codex. To call the sorter from Codex over the existing API, we had to run a small Python program on the developer’s machine. With MCP, we could give Codex a server URL and leave the program out. Our text editor could already call the API, so we’d leave that integration alone.

TL;DR

  • Keep the REST API if the next app can use the client code you already maintain. Our text editor called the ticket sorter with an existing Python function.
  • Consider an MCP server when it saves work for someone using your API. In our Codex test, a developer could connect to a server URL instead of running a Python program that translated tool calls into HTTP requests.
  • Before you offer both interfaces, name the client that benefits and the team that will maintain the server. Both routes ran the same rule and returned the same recommendations, including the same missed billing complaint.

Does Google Workspace require MCP for AI agents?

Yes, if your AI assistant reads a user’s Gmail through Google Workspace, Google will require it to use Google’s MCP for that access starting February 1, 2027. Google directs developers to its Workspace MCP servers or official Workspace CLI. If your assistant keeps calling Gmail’s REST API directly, Google will cap those calls at Standard Tier quotas, even if your project is on the Scaled Tier.

For a help desk, the rule applies when the assistant opens the mailbox. If the user has asked it to recommend who should reply, the assistant can still send the message to your ticket sorter over HTTP. You don’t need to build an MCP server for the sorter just because the ticket came from Gmail. Google’s limits on how you use and retain the message still apply.

MCP vs REST API: two ways to use the same ticket sorter

A customer can’t log in to read the error log from a failed deployment. Who should reply? Choose “Compare both” to see how the inbox and an assistant client ask the same sorter. We checked the sorting rule in Dify; the envelopes replay recorded local calls, in order rather than to scale.

Our text editor already had code to call the API. In Codex, connecting to the MCP server let us remove the Python bridge we’d been running locally.

What’s the difference between MCP and a REST API?

With a REST API, the inbox sends an HTTP request to a known endpoint. With the Model Context Protocol (MCP), a client can ask a connected server which tools it offers, inspect their inputs and call one by name. An MCP server can call your existing API, so you don’t have to implement ticket sorting twice.

What the caller needs Direct REST API MCP tool
Where to connect The service endpoint and whatever credentials it requires The MCP server’s address or launch command, and any required credentials
How to find the operation Read the service documentation or its machine-readable OpenAPI description Ask that server for its tool list and input schemas
How to send the ticket Use the method, URL and request body the API expects Call the named tool with arguments that match its schema

What each caller sent for the login ticket

The inbox gateway knew where to send a workflow request. Our test client started an MCP session, asked for the tool list and checked that the configured sorter accepted a message and an account reference. Then it called the sorter. The test code supplied the tool name; no model chose it.

How the two callers package one ticket

Ticket
Our deploy failed and I can’t log in to read the build log.

account_ref: DEMO-104 (fictional)

CallerOperation and inputs
Inbox (API)POST /v1/workflows/runThe inbox sends the two fields under inputs in the request body.
Assistant (MCP)tools/call → fixture_routeThe client names the tool and sends the same fields under params.arguments.
Inspect the two JSON requests

HTTP request body

{
  "inputs": {
    "ticket": "Our deploy failed and I can’t log in to read the build log.",
    "account_ref": "DEMO-104"
  },
  "response_mode": "blocking",
  "user": "support-host-lab"
}

MCP method and parameters (JSON-RPC envelope omitted)

{
  "method": "tools/call",
  "params": {
    "name": "fixture_route",
    "arguments": {
      "ticket": "Our deploy failed and I can’t log in to read the build log.",
      "account_ref": "DEMO-104"
    }
  }
}

The sorter returned access / access_signal: it recognized the login problem, not the cause of the failed deploy. Try the unexpected-charge ticket and you can see a limit both routes share. The rule looks for the whole word charge, so it missed charged in “I was charged twice.” If your team wants that ticket to go to billing, change the rule rather than the connection.

When is an MCP server worth maintaining?

We tried the same invoice ticket in two applications. The sorter recommended billing each time. What differed was the code each developer needed to run.

Vim: the editor could already call the API

In Vim, a text editor, our command read a ticket from the current line and printed the recommended queue. It called the same Python function we already used for HTTP. To try MCP, we had to add a client that could list tools and call the sorter. For this command, keeping the API meant keeping less code.

The same option exists if you build the assistant yourself. With function calling, you describe the operation to the model. If it requests that function, your application can run the HTTP code you already have. You don’t need to host an MCP server just to let a model request one known operation.

Codex: a server URL replaced a local Python bridge

To make the sorter available as a Codex tool, we registered a local Python bridge. Codex started the bridge on the developer’s machine; the bridge forwarded each ticket to our API. For the other route we put the server URL in the Codex MCP configuration. Both configurations returned billing / billing_signal for “Invoice includes a duplicate charge.”

What runs where when Codex sorts a ticket?
ConfigurationDeveloper’s machineService side
Bridge to the APICodex launches a Python bridge over stdio. The bridge runs the shared HTTP handler, which sends the POST.The workflow API receives the request and runs the sorter.
MCP server URLCodex connects to the configured URL. No local bridge process.The MCP server receives the tool call and runs the sorter.

In a hosted setup the service side can be remote. In this test both endpoints ran on loopback, on the developer’s machine.

Before building your own server, try connecting one as a user. Follow the AI/ML API setup for your assistant, then ask it: “Show me one tool this server offers and the inputs it expects. Don’t run that tool.” You can inspect the setup your users would face without writing a bridge or giving the assistant a customer ticket.

Does MCP add latency or cost?

With both clients open and the MCP tool name already known, we measured a local median of 1.318 ms through MCP versus 0.411 ms over direct HTTP. That’s about 0.91 ms more per call in this setup. We didn’t run a model, use a hosted endpoint or measure a bill.

We ran four synthetic tickets in randomized order, 60 calls per setup. The clock stopped after the client checked the recommendation. Starting a new MCP session and listing tools on every call took longer than reusing the session and name. The slower setup is a comparison, not a requirement for each ticket.

See all six local timing results
Client setup Median 95th percentile
New HTTP client 0.939 ms 1.081 ms
New MCP session, list tools then call 5.495 ms 6.144 ms
New MCP session, use known tool name 4.237 ms 4.886 ms
Reuse HTTP client 0.411 ms 0.491 ms
Reuse MCP session, list tools then call 2.562 ms 2.840 ms
Reuse MCP session, use known tool name 1.318 ms 1.581 ms

In that last setup, the server received 60 tool calls and no requests for the tool list. The client reused the name, not the answers. The lab used MCP 2025-11-25. For a production estimate, measure your deployed service, include any API charge the tool incurs, and count model usage separately if your assistant needs it.

Download benchmark (ZIP)Includes the timing data and the script to reproduce the benchmark.

Try both routes with one workflow

Send the same ticket to one sorter, first over HTTP and then through MCP. You can do this in n8n, Dify or another workflow tool that supports both routes. Keep the sorting rule and account the same so you’re comparing the connections.

We tested the rule in Dify’s console and compared the two routes locally, not on Dify’s hosted endpoints. The download includes a Dify workflow you can import. If you use n8n, recreate the rule there and use the same test tickets.

Download workflow (ZIP)Includes the Dify import file, test tickets and client results.
  1. For the Dify version, unzip the download and import support-triage.yml into Dify. Publish the workflow once. Set up its Workflow API and enable its MCP access point. Keep the API key and private MCP URL out of browser code and shared logs.
  2. Through the API, send Cannot log in to view the invoice. as ticket and DEMO-104 as account_ref. Check that the workflow succeeded. The expected queue is manual_review and the reason is mixed_signals: the message mentions both a login problem and an invoice.
  3. From your MCP client, list the tools, find the published sorter and send those exact two values. Compare the queue and reason with the API result, not the entire response. The two interfaces wrap the result differently.
  4. Keep the account the same but change the message to The same build minutes appear twice on our invoice. Both routes should now return billing / billing_signal. To test validation, send {"invalid":"type"} as the value of ticket instead of a string. Dify’s console rejected that input; record what each published interface does. Both fields in this workflow are optional, so leaving one out can produce a valid recommendation for manual review.

If the recommendations agree, ask the next client’s maintainer to show you what they could stop installing. In our case, the Codex developer could retire a local program; the Vim user had nothing to remove. If your next client looks like Vim, keep the API. If it looks like Codex, weigh the setup you can remove for its users against the work your team takes on to host the tool, control access and keep it working as the API changes.

FAQ

If we already have an API, do we need to rebuild it for MCP?

No. Expose the operation your client needs as an MCP tool and have the tool call the existing API. You can leave the rest of the API alone.

Does connecting the sorter give the assistant access to Gmail?

No. The sorter accepts text; it can’t open a mailbox. The assistant needs a separate, authorized Gmail connection. Google’s data-use restrictions continue to apply after it reads the message.

When I choose the MCP route, does a model pick the tool?

Not in this replay. Our test client supplied the sorter’s name. We didn’t test whether a model would choose to sort the ticket rather than draft a reply.

Does MCP have to list every tool again for the next ticket?

Not in our test. On the repeat recording, the client started a session but skipped the lookup. It still sent the new ticket and got a fresh recommendation. If the server changes its tools, the client needs to refresh what it knows.

Could “Compare both” assign the same ticket twice?

No. The offline replay doesn’t send requests, and the original calls only asked for a recommendation. To compare two routes to a tool that actually assigns tickets or issues refunds, use a test environment where neither call affects a customer.

Share with friends

Ready to get started? Get Your API Key Now!

Get API Key