Skip to main content

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​

  1. In the sidebar, select App Catalog.
  2. Select New App in the top right, then choose OpenAPI Specification.
  3. 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.
  4. Select Create App.
The Add Custom App dialog, with name, description, and category fields on the left and an OpenAPI file upload area on the right.The Add Custom App dialog, with name, description, and category fields on the left and an OpenAPI file upload area on the right.

2. Find your app​

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

The App Catalog filtered to Custom apps and searched for Santa Cruz, showing the API Santa Cruz app.The App Catalog filtered to Custom apps and searched for Santa Cruz, showing the API Santa Cruz app.

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.

The API Santa Cruz app details panel, with the API Registry and MCP Registry cards, the Add to MCP Registry button, the server information, and the list of API endpoints.The API Santa Cruz app details panel, with the API Registry and MCP Registry cards, the Add to MCP Registry button, the server information, and the list of API endpoints.

4. Choose the tools and set up the server​

The first two wizard steps are the same for every app:

  1. App Configuration — confirm the Base URL, select the endpoints agents can use as tools, then select Next.
  2. 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.

  1. 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.
  2. Under Callback, keep Latest (recommended), and copy the URL to register as an allowed redirect URL with your sign-in service.
  3. 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.
  4. Under Scopes, add the permissions agents need.
  5. Select Next.
The Authentication step with OAuth 2.1 Authorization selected, showing the Authorization URL and Token URL, the Callback options, and the Client registration options.The Authentication step with OAuth 2.1 Authorization selected, showing the Authorization URL and Token URL, the Callback options, and the Client registration options.

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 forWhy
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 serviceNeeded 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 clientThe AI Gateway uses them to identify itself when people sign in
The AI Gateway's callback URL added as an allowed redirect URLSign-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/v3 needs 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.