Blog

Give Claude, ChatGPT and Cursor a Real Backend with MCP

Guide

ยท

Quick answer: MCP (Model Context Protocol) is the plug that lets Claude, ChatGPT and Cursor call outside tools. It does not give them anything to plug into. To let a chat agent read your database, check who is asking, keep secrets out of the prompt and leave a log of what it did, you need a backend behind that plug. In BuildShip you build that backend as a workflow, add a Tool Trigger, and ship it. BuildShip hosts it as a secure endpoint with an API key and an MCP endpoint or OpenAPI spec, so the same tool works in Claude, ChatGPT, Cursor and your own code. You can also export the code and run it yourself.

Give Claude, ChatGPT and Cursor a real backend with MCP: BuildShip guide cover

Ask Claude to โ€œcheck whether order ORD-4471 has shippedโ€ and you get a thoughtful, well-formatted answer about how you might check whether an order has shipped.

That is the strange position general chat agents are in. They can reason through a refund policy, write the SQL query and explain the edge cases. Then they hit a wall, because they donโ€™t have your database, your Stripe key, your userโ€™s session or a record of anything they did yesterday. A brilliant new hire with no login.

MCP fixed the wiring. Since Anthropic published the Model Context Protocol, Claude, ChatGPT and Cursor have all learned to connect to remote MCP servers. What MCP didnโ€™t fix is the question of what sits on the other end of the wire. The protocol is the easy part. The backend is the work.

This guide is about that backend: what a chat agent canโ€™t do alone, why that layer should live outside any single AI client, and how to build one tool in BuildShip and use it from all three.

What MCP does, and what it leaves to you

MCP is a standard way for an AI client to discover and call tools. The client (Claude, ChatGPT, Cursor) connects to an MCP server, asks which tools it offers, reads each toolโ€™s name, description and input schema, and calls the right one when a conversation needs it.

That is a big deal. Before MCP, every model had its own function-calling format, and every integration was rewired by hand. Now one server can serve many clients.

But MCP only describes the conversation between client and server. It says nothing about what the tool actually does when it is called. When we launched MCP-ready tools in BuildShip, the problem we kept seeing was that most MCP servers were one-to-one mirrors of a single API. A Notion server, a Supabase server, a GitHub server. Useful wrappers, but real work crosses services. Resolving a billing question means looking up the customer, checking their plan in your own database and sending a confirmation, with someone accountable if any of it breaks.

So the useful question isnโ€™t โ€œdoes my agent support MCP?โ€. It is โ€œwhat does my agent get to do once itโ€™s connected, and who controls that?โ€

What a chat agent canโ€™t do on its own

Claude, ChatGPT and Cursor are very good at reasoning, writing and code. Out of the box, here is what none of them is built to be.

What a real task needs

A chat agent alone

A BuildShip tool behind MCP

Your data

Only what you paste in

Reads and writes your Supabase, Firestore, MongoDB, MySQL or Postgres data, or BuildShipโ€™s own tables

Secrets

Keys end up in prompts or config files

Keys stay in BuildShipโ€™s secret manager, backed by Google Cloud Secret Manager

Auth

Canโ€™t verify who is asking

Tool endpoints require an API key, and a workflow can check an Authorization header before anything runs

Multi-step logic

Chains calls and hopes

One tool runs the whole job: validate, query, call APIs, branch, return

Custom code

Writes code it canโ€™t run in your stack

Any node can run your own JavaScript or TypeScript, with npm packages

Failure handling

Retries by guessing

Per-node On Fail: retry, terminate or run a custom flow

A record

The chat transcript

Logs for each run and each node, with inputs, outputs and execution time

Change control

None

Version history on every ship, with restore

A team

One userโ€™s chat

Shared workspaces with role-based access

A comparison of a general chat agent on its own, which can reason and write but has no database, secrets, auth or logs, with the same agent connected over MCP to a BuildShip tool that has all of them

The model is the same in both. What changes is what it can reach, and what gets checked and recorded on the way.

None of this is a criticism of the models. A chat app shouldnโ€™t hold your production database credentials, and you wouldnโ€™t want it to. That job belongs to a layer you control.

Why the backend belongs outside any one AI client

Your team probably doesnโ€™t use one AI tool. Support lives in Claude, sales likes ChatGPT, engineers live in Cursor, and next quarter someone will want a voice agent. If every client gets its own integration, you end up with four copies of the same logic, four places to rotate a key and four slightly different answers to โ€œwhatโ€™s this customerโ€™s plan?โ€

Put the logic in one place and let every client call it:

  • Build once. The โ€œlook up an orderโ€ tool is written, tested and shipped once.

  • Swap models freely. The tool doesnโ€™t care which model calls it. When a better model comes out, you change the client, not the backend.

  • One set of keys. The Supabase service key lives in the tool, never in a chat app.

  • One audit trail. Every call from every client ends up in the same logs.

  • One rule book. Validation, limits and โ€œnever refund more than $200 without a personโ€ live in the tool, where a clever prompt canโ€™t talk its way past them.

Diagram: Claude, ChatGPT and Cursor each connect over MCP to one BuildShip MCP endpoint, which runs workflows with auth, validation, logic and logs, which in turn reach the database, Stripe, email and other APIs

Three clients, one backend. The tool is defined once, and every client sees the same name, description and inputs.

This is the shape we built BuildShip around. A workflow is the unit of backend logic. Give it a REST API trigger and it is an API for your app. Give it a database trigger and it reacts to changes, as in why AI agents need listeners, not cron jobs. Give it a Tool Trigger and it is something an agent can call. Same logic, different doors.

Walkthrough: an order desk tool for Claude, ChatGPT and Cursor

Here is a concrete example. You run a shop with an orders table in Supabase. You want any AI client your team uses to answer โ€œwhere is this order?โ€ and, when something is wrong, flag it for a person to look at. Two tools:

  • get_order_status: given an order ID or a customer email, returns the status, carrier, tracking link and last update.

  • flag_order_for_review: given an order ID and a reason, writes a row to a review_queue table and returns the ticket ID.

One reads, one writes. That split matters later, when you decide what each client may do without asking.

The order desk tool as a BuildShip workflow: Tool Trigger, input validation, a Supabase query on orders, a branch for found or not found, a script node that shapes the answer, and a short result, with logs and On Fail retry around the steps

The read tool as a workflow. The write tool has the same shape, with an insert instead of a select.

Step 1: Build the workflow

Open BuildShip and describe the tool to Compass, the AI builder: โ€œGiven an order ID or a customer email, look up the order in my Supabase orders table and return status, carrier, tracking URL and last updated time.โ€ Compass sketches the flow. You can accept it, change it, or build the flow by hand.

Connect Supabase with your project URL and API key. The Supabase integration gives you nodes to read, create, update and delete rows. Store the key as a secret, not as plain text in a node. BuildShip keeps secrets in Google Cloud Secret Manager and decrypts them only when the workflow runs.

Step 2: Write inputs for a model, not for a developer

The agentโ€™s only documentation is your toolโ€™s name, its description and its input descriptions. Name the input orderId, not id. Say it looks like ORD- followed by digits. Say that if the user gives an email instead, the agent should pass customerEmail.

Then enforce it. BuildShip lets you add a validation regex to any input, and a value that doesnโ€™t match stops the workflow with a validation error before any query runs. Models get creative under pressure. Your tool shouldnโ€™t.

Step 3: Shape the answer in code

The Supabase row has 30 columns. The agent needs five. Add a script node and return exactly those, in JavaScript or TypeScript. You can import npm packages here too, so if you want to format dates for the userโ€™s time zone, you can.

Handle the empty case on purpose. โ€œNo order found for ORD-4471. Ask the customer to check the number, or search by email insteadโ€ lets the agent recover. A null makes it guess.

Step 4: Plan for failure and leave a trail

Add an On Fail behavior to the Supabase node so a blip in the network retries instead of returning an error to the user. Add a log line with the input and the result. Every run then shows up in BuildShipโ€™s logs, with the time taken by each node. When someone asks why Claude told a customer their parcel was โ€œin transitโ€ on Tuesday, you can go and look.

Step 5: Add the Tool Trigger, test and ship

Open the trigger picker, go to Connect, and choose Tool Trigger. In the BuildShip tools docs, a tool is simply a workflow with a Tool Trigger on it. Run it in the Test panel with a real order, a fake order and an email with no orders, and save the good runs as examples. Then click Ship.

Shipping gives you a hosted endpoint. In the Connect tab, generate an API key and copy the MCP endpoint or the OpenAPI spec. The Connect tab also shows setup instructions for each kind of client. Every ship is saved in version history, so if a change goes wrong you can restore the last good version.

Build flag_order_for_review the same way, with an insert into review_queue instead of a select.

Connect it to Claude

There are two routes, depending on where your team uses Claude.

Claude Desktop, with the BuildShip command. BuildShipโ€™s Claude setup guide gives you an npx -y buildship-tools create-mcp-server ... command with your project, flow and key filled in. Run it, restart Claude Desktop, and the tool appears under the tools icon. The first time Claude wants to use it, it asks permission, and you choose allow once or always. Tools hosted on BuildShip use your BuildShip credits. Drop the --proxy flag and the same command downloads the tool as a JavaScript function to run on your own machine.

Claude on the web, desktop and mobile, as a custom connector. Anthropicโ€™s custom connector guide covers adding a remote MCP server: Customize, then Connectors, then Add, Custom, Web. Paste the MCP endpoint URL, and if the server takes a fixed key, add it under Request headers. On Team and Enterprise plans an owner adds the connector once for the organization, then each person connects to it. Anthropic notes that the connection comes from its cloud, not your laptop, so the endpoint has to be reachable on the public internet over HTTPS. A tool hosted on BuildShip already is.

If your engineers use Claude Code, it has its own command: claude mcp add --transport http order-desk <your MCP endpoint URL>, with --header for the key. See Anthropicโ€™s Claude Code MCP docs.

Connect it to ChatGPT

In ChatGPT on the web, OpenAIโ€™s guide to adding a custom MCP server goes like this: open ChatGPT Plugins, click the plus button, choose Add custom MCP server, enter the server URL, configure authentication, accept the risk warning and create it as a plugin. Install it, start a new chat, type @ and pick it. ChatGPT supports both read and write tools, and you can switch individual tools on or off in the appโ€™s settings. Workspace permissions apply, so in a company workspace an admin may have to allow it.

One thing to check before you start: ChatGPTโ€™s custom MCP setup offers OAuth or no authentication, rather than a fixed key in a header. Make sure the authentication on your endpoint matches what ChatGPT can send. Donโ€™t remove the key to get it working.

If youโ€™re building your own product on the OpenAI API rather than using the ChatGPT app, the Responses API takes a remote MCP server as a tool type. You pass a server_url, limit which tools the model sees with allowed_tools, and set require_approval to "always" for anything that writes. Approval is on by default, which is the right starting point for flag_order_for_review.

Connect it to Cursor

Cursor reads MCP servers from an mcp.json file. Per Cursorโ€™s MCP docs, a remote server needs only a url, plus a headers object if it takes a fixed key. Put the file at .cursor/mcp.json in a repo to share it with everyone who opens that project, or at ~/.cursor/mcp.json for yourself. Cursor can read values from environment variables with ${env:NAME}, so the key doesnโ€™t end up in git.

Copy the endpoint URL from the Connect tab and reference the key as ${env:BUILDSHIP_API_KEY}. BuildShipโ€™s tool endpoints take the key in a BUILDSHIP_API_KEY header. Cursor asks before it uses an MCP tool by default, and on Enterprise plans admins can allowlist which servers and tools the team may run.

Why would a coding agent need an order desk? Because the engineer debugging a checkout bug can now ask Cursor โ€œwhat does ORD-4471 look like in production?โ€ and get the real answer through a tool with logs and limits, instead of pasting a service key into a terminal.

Same tool, three clients

Claude

ChatGPT

Cursor

Where you add it

Customize, then Connectors (or the BuildShip npx command for Claude Desktop)

ChatGPT Plugins, then Add custom MCP server

.cursor/mcp.json or ~/.cursor/mcp.json

What you paste

MCP endpoint URL

MCP endpoint URL

url and headers

Fixed key in a header

Yes, under Request headers

No, it offers OAuth or no auth

Yes, in headers

Who can add it for a team

Owners on Team and Enterprise

Depends on workspace permissions

Anyone who commits the project file, within the teamโ€™s MCP allowlist

Approval before a tool runs

Permission prompt, allow once or always

Per-tool settings, and require_approval in the API

Asks before using MCP tools by default

The tool itself doesnโ€™t change between the three columns. Thatโ€™s the point.

Design rules for tools that chat agents call

A few things weโ€™ve learned watching agents use tools.

  1. One tool, one finished job. get_order_status beats query_table with a free-text filter. The narrower the tool, the less the model can get wrong.

  2. Split reads from writes. Let reads run freely. Ask for approval on writes. Every client above lets you do that.

  3. Return less. Five fields, not the row. Short answers are cheaper, faster and easier for a model to reason about.

  4. Fail in words. Errors should tell the agent what to try next.

  5. Keep the rules in the tool. Refund limits, rate limits and โ€œonly for this customerโ€™s own ordersโ€ belong in the workflow, not in a system prompt.

  6. Pass files as links. BuildShipโ€™s Claude guide notes that MCP support for passing images and files through Claude is limited, so pass URLs.

Built for teams, not just one personโ€™s chat

Once a tool works, more people want it, and the questions change from โ€œdoes it work?โ€ to โ€œwho changed it, and who can?โ€

BuildShip workspaces are shared. Plans include team members, and the enterprise page describes role-based access control for administrators, editors and viewers. Version history shows what changed on each ship, and you can restore an earlier version. Logs show every run, from every client. For larger teams, our docs list enterprise features including separate dev, test and prod environments, audit logging, Git integration and alerts.

If your tools need to run on your own infrastructure, you have two options. Anyone can export a toolโ€™s code with Export as Function or npx buildship-tools export <tool-id> and deploy it where they like. Enterprise teams can also run BuildShip in their own Google Cloud. Talk to us about enterprise if thatโ€™s you.

MCP is half the picture

Everything above is about the agent calling your backend. The other half is your backend waking the agent. A customer replies, a payment fails, a row changes, and something should happen without anyone opening a chat.

In BuildShip those are the same workflows with a different trigger. The review_queue table that Claude, ChatGPT or Cursor write to can have a database trigger on it, so a new flag posts to Slack or starts a follow-up workflow the moment it lands. We wrote about that direction in why AI agents need listeners, not cron jobs. Put the two together and the chat agent stops being a separate island. It becomes one more way into a backend your whole team already trusts.

Frequently asked questions

Can Claude, ChatGPT and Cursor use the same MCP tool?

Yes. All three can connect to a remote MCP server, and a BuildShip tool gives you an MCP endpoint once it is shipped. The toolโ€™s name, description and inputs are the same in every client. The setup screens and authentication options differ, so check each clientโ€™s requirements.

Do I need to run my own MCP server?

No. When you ship a tool, BuildShip hosts it as a secure endpoint and gives you an API key plus an MCP endpoint or OpenAPI spec. If youโ€™d rather host it, export the toolโ€™s code and deploy it on your own infrastructure.

How is a BuildShip tool different from a databaseโ€™s own MCP server?

A database MCP server mostly gives the agent raw access to tables. A BuildShip tool is a workflow you design: it validates inputs, checks auth, queries only what it should, calls other services, handles failures and returns a short answer. The agent gets a finished job, not a connection string.

How do I stop an agent from changing data it shouldnโ€™t?

Keep write actions in separate tools with narrow inputs and hard limits inside the workflow. Then turn on approvals in the client: Claudeโ€™s permission prompt, ChatGPTโ€™s per-tool settings or require_approval in the OpenAI API, and Cursorโ€™s tool confirmation.

Can I write real code in a BuildShip tool?

Yes. Every nodeโ€™s logic is editable, and script nodes run your own JavaScript or TypeScript with npm packages. You can also describe a tool to Compass and edit what it builds.

How much does it cost?

Runs of tools hosted on BuildShip use your BuildShip credits. Exported tools run on your own infrastructure. BuildShip starts with a 7-day trial, and a card is needed to start it. See pricing.

Build your first MCP tool

Pick the question your team asks a chat agent most often and still has to answer by hand: an order status, a customerโ€™s plan, the latest numbers for an account. Build it as one BuildShip workflow, add a Tool Trigger and connect it to the AI client your team already uses. Then connect the second one and notice that you didnโ€™t have to build anything again.

Start your 7-day BuildShip trial. If youโ€™re rolling tools out across a larger team, talk to us about enterprise.

You might also like

All it takes is an idea.

Imagine. Build. Ship.

Subscribe to our newsletter

Stay in the loop with product updates and news.

ยฉ 2026 BuildShip, Rowy Inc.

All it takes is an idea.

Imagine. Build. Ship.

Subscribe to our newsletter

Stay in the loop with product updates and news.

ยฉ 2026 BuildShip, Rowy Inc.

All it takes is an idea.

Imagine. Build. Ship.

Subscribe to our newsletter

Stay in the loop with product updates and news.

ยฉ 2026 BuildShip, Rowy Inc.