How to publish your API's MCP server on your own domain
Updated
Build your API's MCP server in Kaiva Bridge from your OpenAPI spec, your GraphQL API or an MCP server you already run. Add your domain once with one CNAME record and give the server a path such as mcp.yourcompany.com/orders. Then turn on customer sign-in: your customers sign in with their own account at your company, not a Kaiva account, and each call reaches your API as that customer. Custom domains and customer sign-in are part of Pro.
Step by step
- Create the serverChoose New server and start from your OpenAPI spec, your GraphQL endpoint or the address of an MCP server you run. Switch on the tools your customers should have and deploy it.
- Add your domainIn Workspace settings, Domains, click Add domain and enter a subdomain such as mcp.yourcompany.com. Add the CNAME record Bridge shows, pointing to domains.kaiv.ai. On Cloudflare, set it to DNS only.
- Wait for the certificateBridge checks the record, and the certificate is issued for you, usually within minutes. You can close the window; the domain shows Live when it is ready.
- Give the server its addressOn the server's Connect tab, turn on Custom domain and choose its path, such as /orders.
- Turn on customer sign-inOn the server's Sign-in tab, enter your OAuth app's client ID, authorize URL and token URL, and add the redirect URL Bridge shows to that app. Then switch on Let your customers sign in.
What your customers see
They add mcp.yourcompany.com/orders to Claude, ChatGPT, Cursor or another AI client, sign in on your own sign-in page and approve on a screen with your name and logo. They need no Kaiva account.
Each call goes to your API with that customer's own token, so your API applies their permissions as it always does. A customer's access covers that one server.
The root of your domain is a setup page that lists your servers with customer sign-in, with the steps for each AI client. Below Enterprise, the setup page and the sign-in screen show "Runs on Kaiva Bridge"; Enterprise can turn it off.
What you see
The server's Sign-in tab lists every customer who has signed in, with their calls and errors over the last 30 days and their last call. Turn a customer off and their access ends at once. You can also cap each customer's calls a month.
Your brand (name, logo, docs and support links) is set once, in Workspace settings, Domains, and shows on every domain's setup page and sign-in screen.
Listing it in AI directories
The Sign-in tab gives you what directories ask for: a "Connect your AI" section for your docs, an entry for the official MCP registry under your own namespace, and a checklist for Claude's connector directory and OpenAI's Plugins Directory. You submit them under your company's name.
What it works with
Customer sign-in works for servers built from an OpenAPI spec, a GraphQL API or a remote MCP server. A database or file server reads with your workspace's own credential, so it is for your team, not your customers.
A workspace can have up to five domains, and each domain can carry many servers, one path each. Only those servers are reachable on your domain; the console and Kaiva's API are not. Use a subdomain: a bare domain such as yourcompany.com cannot point to Bridge.
For customer sign-in you need an OAuth 2.0 app at your company. Bridge sends customers to its authorize URL, exchanges the code with PKCE, and identifies the customer from an OpenID id_token or from a user-info address you name.
Other ways to do it
- Build and host your own MCP serverWith the official TypeScript or Python SDK you control everything. You also run the hosting, the OAuth sign-in for AI clients and the updates as MCP changes.
- Generate the code from your specOpen-source generators such as FastMCP's from_openapi turn a spec into server code. You still host it and add sign-in.
- Your API gateway's MCP featureSome API gateways can serve routes as MCP tools. It fits if your API already runs behind one that does.
Questions
- Do my customers need a Kaiva account?
- No. They sign in with their account at your company. Kaiva accounts are for your own team.
- Does my API see which customer is calling?
- Yes. Each call carries that customer's own token from your sign-in, so your API applies their permissions.
- Can I use yourcompany.com itself?
- No. Use a subdomain such as mcp.yourcompany.com, pointed to domains.kaiv.ai with a CNAME record.
- Who issues the certificate?
- It is issued and renewed for you once the CNAME record is in place. There is nothing to upload.
- Can I remove a customer's access?
- Yes. Turn the customer off on the server's Sign-in tab; their access ends at once.
- Which plans include it?
- Pro and Enterprise. Enterprise can also remove "Runs on Kaiva Bridge" from your pages.