Resources / MCP
Turn your existing API into an MCP server
A practical path from a REST API to MCP tools your customers’ AI agents can use: pick the jobs, wrap them, secure them, ship them.
Your customers are starting to work through AI agents. If your product has an API, an MCP server lets those agents use it directly — "create an invoice for Acme", "what's the status of ticket 512" — without anyone writing integration code.
Don't mirror every endpoint
A REST API is designed for programmers who read docs. An MCP server is designed for a model that reads tool descriptions. Mirroring 120 endpoints as 120 tools overwhelms the model. Start from jobs: list the ten things users most often ask an assistant to do with your product.
Wrap each job as one tool
A good tool often combines several API calls. "Create an invoice for a customer by name" might look up the customer, create the invoice and return a link — one tool, not three. Shape the output for the model: the fields it needs, ids for follow-up calls, readable errors.
Decide how agents authenticate
- API keys are simplest: each customer creates a key and adds it to their client.
- OAuth is friendlier for end users and lets clients like Claude and ChatGPT sign in without copying keys.
Scope access so an agent can only see and change what its user can.
Put limits in place
Agents call tools in loops. Add per-customer rate limits and daily caps, and mark destructive tools so clients ask for confirmation. See Securing MCP servers.
Ship it remotely
Host the server at a stable HTTPS URL with Streamable HTTP, so it works with cloud clients and needs no install. Publish setup instructions per client — here's what they look like.
A thin layer is enough
You don't need to rebuild your backend. The MCP server can be a thin layer that calls your existing API with the customer's credentials.
In Wisp
Describe the tools — "a tool that creates an invoice in our billing API for a customer by name" — and Wisp writes them as endpoints that call your API, stores your credentials as secrets, and serves them as an MCP server with API keys and limits.
Build it with Wisp — describe an API, get it live.