Skip to main content

Getting Started

Since MCP servers link an API to an LLM client, the first part of launching an MCP server through the Cequence AI Gateway is uploading an API specification. You can do this in a few different ways.

You can define an 'app' within the App Catalog. In this context, an app is just a container for an API specification that lets you specify some tags and other metadata for organization.

Alternately, you can launch the MCP server creation flow directly and upload the API specification from there.

In either case, once you have the MCP server defined, you can connect the server to your LLM tool of choice.

The Cequence AI Gateway directly supports integration with Claude, Cursor, and the Windsurf IDE, and you can also manually integrate with any other LLM you're using.

Creating an App

Once you've logged in to the Cequence AI Gateway, click Apps. Several apps are already available, but for this example, we'll make a new app from the start. Click the +Custom App button in the top right.

A picture of an interface element showing a button labeled '+Custom App' at the top rightA picture of an interface element showing a button labeled '+Custom App' at the top right

The Add Custom App dialogue box appears. On the right side of the dialogue box, there's a space where you can upload an API specification, either by dragging the file to that area or by clicking Browse Files to navigate your file system. The file must be in the OpenAPI format.

All fields other than the API specification and app name are optional. The description, primary category, app family, and secondary category are meant to help you organize your apps and quickly find a specific app.

Click Create App to return to the App Catalog. You're ready to start the MCP server that provides the new app's functionality.

Create the MCP Server from an App

Find your new app in the App Catalog. You can click the paired arrows icon to show the sorting options. Click Newest to Oldest to show the app you just created at the top of the App Catalog.

Click your new app to show a summary of the API specification associated with that app. Click Create MCP Server to start. The Create MCP Server wizard appears.

Excerpt of a multi-step timeline showing two steps, App Configuration and MCP Server Setup. App Configuration is highlighted.Excerpt of a multi-step timeline showing two steps, App Configuration and MCP Server Setup. App Configuration is highlighted.

App Configuration

Choose an option from the Base URL drop-down. The Cequence AI Gateway derives these URLs from the API specification you uploaded earlier. In the API Tools for AI Agents pane, you can type a string in the search field to filter the list of endpoints, or select a method from the Filter by method: list. Select a set of endpoints for the MCP server and click Next.

Excerpt of a multi-step timeline showing two steps, App Configuration and MCP Server Setup. App Configuration is marked completed and MCP Server Setup is highlighted.Excerpt of a multi-step timeline showing two steps, App Configuration and MCP Server Setup. App Configuration is marked completed and MCP Server Setup is highlighted.

MCP Server Setup

At this step, you can change the server name and description, as well as set the log level. Production Mode produces terser logs, while Non-Production Mode creates more verbose logs with additional information you might find useful for debugging or tracing specific behavior. Click Next to advance.

Excerpt of a multi-step timeline showing two steps, MCP Server Setup and Authentication. MCP Server Setup is marked completed and Authentication is highlighted.Excerpt of a multi-step timeline showing two steps, MCP Server Setup and Authentication. MCP Server Setup is marked completed and Authentication is highlighted.

Authentication

Specify what kind of authentication you'll use for this MCP server. With Passthrough authentication, the MCP server forwards any existing credentials directly to the service, making no changes. If you use API keys, Basic Auth, custom headers, or no authentication at all, select Passthrough.

To use OAuth 2.0, select OAuth 2.0. You'll need the following items to configure OAuth 2.0 authentication.

  • Authorization URL
  • Token URL
  • Client ID
  • Client secret
  • Optionally, a redirect URI
  • Optionally, scopes

Once you've selected the authentication type and provided any needed items, click Next to advance.

Excerpt of a multi-step timeline showing two steps, Authentication and Review. Authentication is marked completed and Review is highlighted.Excerpt of a multi-step timeline showing two steps, Authentication and Review. Authentication is marked completed and Review is highlighted.

Review

Look over a summary of your MCP server configuration and click Create & Deploy when ready. Deploying takes a few minutes. Watch the Dashboard for the Deploying... message to clear.

Integrate with your LLM agent

Once your MCP server is deployed and running, go to the Cequence AI Gateway dashboard and click the tile for your server to manage integrations. Click Create Agent Integration to start.

The Cequence AI Gateway supports quick integrations with the following agents.

  • Claude AI
  • Cursor AI
  • Windsurf IDE

Click Create Agent Integration to bring up the Easy Integration Setup pane. Choose the tab for the agent you're integrating with and click the copy icon in the Quick Setup (NPX) tab. The command-line instruction to integrate the MCP server with your AI agent is in your clipboard. Paste the command to a terminal window and run the command. A confirmation message at your terminal indicates that you're ready to test the integration.

Testing the integration

The next time you authenticate to the agent, you will need to provide your authentication credentials if you configured the MCP server to use OAuth 2.0. Run your AI agent and select the list of tools. This varies based on your agent. Using Claude as an example, the tools control is at the bottom of the text field, next to the Upload a file icon. The tools are enabled by default, but you can disable them by selecting the toggles on the list. To use the tool, refer to the tool in your prompt. For example, if your MCP server provides a tool based on a customer details endpoint, you can use Show me the customer details for user ID 12345 as the prompt, and your AI agent makes the proper request to the customer details endpoint and reports back.