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.

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 |

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.

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 areview_queuetable and returns the ticket ID.
One reads, one writes. That split matters later, when you decide what each client may do without asking.

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 |
|
What you paste | MCP endpoint URL | MCP endpoint URL |
|
Fixed key in a header | Yes, under Request headers | No, it offers OAuth or no auth | Yes, in |
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 | 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.
One tool, one finished job.
get_order_statusbeatsquery_tablewith a free-text filter. The narrower the tool, the less the model can get wrong.Split reads from writes. Let reads run freely. Ask for approval on writes. Every client above lets you do that.
Return less. Five fields, not the row. Short answers are cheaper, faster and easier for a model to reason about.
Fail in words. Errors should tell the agent what to try next.
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.
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.





