Resources / MCP
How to build an MCP server without running infrastructure
Ship a remote MCP server for Claude, ChatGPT or your own agents without managing servers, deploys or TLS — step by step.
Most MCP tutorials start with a local server process. That's fine on your laptop, but the moment you want ChatGPT or Claude on the web — or a teammate — to use your tools, you need a remote MCP server: public HTTPS, authentication, logs, and something that stays up.
What a production MCP server needs
- A public HTTPS URL. Hosted AI clients connect from their own cloud, so localhost won't work.
- Typed tools. An input JSON Schema per tool (and ideally an output schema) so agents call them correctly.
- Authentication. API keys or OAuth, checked before your code runs.
- Observability. A log of every tool call with inputs, outputs and errors — agents make surprising choices.
- Safe changes. A way to test a new version without breaking the tools agents already use.
The serverless approach
Instead of running a long-lived server, write each tool as a small function. A platform turns the functions into one MCP endpoint, scales them to zero when idle, and handles TLS, routing and logs. You only write the logic: "look up the order in Postgres and return status and tracking".
Doing it with Wisp
- Describe the tool in the chat — "a tool that looks up an order by id in our Postgres and returns status, items and tracking".
- Wisp writes the function, its input and output schemas, tests it, and asks for the database URL as an encrypted secret.
- The MCP server is on by default at
https://<project>.fn.wispfn.com/_mcp; press Connect for copy-paste setup for Claude, ChatGPT, Gemini, Grok, Cursor and VS Code. - Agents test against the draft (
?test) while the published version keeps serving production.
Checklist before you share it
- Turn on "Require an API key" and give each agent or customer its own key.
- Set a rate limit per client so one runaway agent can't drain your quota.
- Write tool descriptions for the model, not for humans: say when to use the tool and what it returns.
Build it with Wisp — describe an API, get it live.