Create an MCP Server with a Custom API in Cequence AI Gateway
Use this for an API that isn't in the App Catalog. You upload its OpenAPI specification to add it as an app, then create the MCP server from that app. The example below uses a banking API called API Santa Cruz.
1. Upload your API specification
- In the sidebar, select App Catalog.
- Select New App in the top right, then choose OpenAPI Specification.
- In the Add Custom App dialog, enter a Name, choose a Primary Category, and upload your specification — drag the file onto the upload area, or select Browse Files.
- Select Create App.

2. Find your app
Set the Source filter to Custom and search for your app by name, then select it.

3. Start the Create MCP Server wizard
The app's details open on the right, with its base URL and endpoints. Under MCP Registry, select Add to MCP Registry. Any MCP servers already created from this app are listed under the button.

4. Choose the tools and set up the server
The first two wizard steps are the same for every app:
- App Configuration — confirm the Base URL, select the endpoints agents can use as tools, then select Next.
- MCP Server Setup — check the server name and description, choose the environment and where the server runs, then select Next.
For more on each option, see App Configuration and MCP Server Setup in Getting Started.
5. Set up OAuth 2.1 Authorization
On the Authentication step, select OAuth 2.1 Authorization.
- Enter the Authorization URL and Token URL of your API's sign-in service. If your API publishes its OAuth details, the form fills these in for you.
- Under Callback, keep Latest (recommended), and copy the URL to register as an allowed redirect URL with your sign-in service.
- Under Client registration, choose how the AI Gateway identifies itself. If your IT team has registered an OAuth app for this, select Use my own client and enter its Client ID and Client secret.
- Under Scopes, add the permissions agents need.
- Select Next.

Every field on this form is explained in OAuth 2.1 Authorization.
6. Review and deploy
Check the summary and select Create & Deploy. Once the server is running, each person connects their own account the first time they use it — see Connect your apps.
What to ask your IT team
| Ask for | Why |
|---|---|
| The API's OpenAPI specification file (YAML or JSON) | You upload it to create the app |
| The Authorization URL and Token URL of the API's sign-in service | Needed if the form can't fill them in |
| The Client ID and Client secret of an OAuth app for the AI Gateway, if you use your own client | The AI Gateway uses them to identify itself when people sign in |
| The AI Gateway's callback URL added as an allowed redirect URL | Sign-in fails until the sign-in service allows it |
Tips
- Check the Base URL on the first wizard step — it comes from your specification, and a relative address such as
/api/v3needs the full host added. - Start with the fewest scopes agents need. You can add more later.
- Give the app a clear name — the MCP server takes the app's name unless you change it.