Create an MCP from an API
Create an MCP from an API that has an OpenAPI or Swagger spec. Each API endpoint you pick becomes a tool that agents can use.
Before you start
- Have the API's base URL and any credentials it needs.
- Have the spec's URL, or a spec file. OpenAPI 3 and Swagger 2 specs are accepted, in JSON or YAML, up to 16 MiB.
Name rules
Name can use letters and numbers only, with no spaces, dashes or special characters. It can be up to 100 characters, and must not already be used by another MCP.
Steps
-
In MCP Builder, select Create MCP.
-
Under the connection section, enter a Name, for example
MyConnector. -
In Base URL, enter the API's base URL, starting with
http://orhttps://. -
Optional: enter a Description of up to 500 characters, and add Tags.
-
Leave Enabled - agents can use this connector immediately after save ticked, or untick it to save the MCP turned off.
-
Under Scope, select User — visible only to you or Account — visible to everyone in your account. For Account scope, choose Read or Full access.
-
Under Authentication, choose the Auth type and fill in its fields:
Auth type Required fields No Auth None Bearer Token or Token Token Basic or Digest Username and Password API Key API key and Header name Custom Header Header name and Header value OAuth 2.0 Client ID, Client secret and Token URL -
Optional: open Client settings to set timeouts, retries, rate limits, a proxy or custom headers.
-
Under Tools, get the API's tools in one of these ways:
- Enter the spec's address in OpenAPI spec URL, or leave it blank to probe the base URL, then select Auto-discover.
- Select Upload spec and choose the spec file. The file is checked against the base URL.
-
In the tool list, untick any endpoints you don't want. Only ticked endpoints are saved. Type in Search tools by name or path… to find one.
-
Optional: select Test Connection to check the connection. See Test an MCP connection.
-
Select Save MCP.
Create several MCPs from one API
For a large API, the tools may be shown in groups, and one MCP is created for each group. You can create up to 25 at a time.
- Check the name under Save MCP as for each group. Expand a group to drop endpoints you don't want.
- Optional: tick Group these under one parent to keep the new MCPs together in the list.
- Select Save MCP, then select Create in the Create MCPs dialog.
What happens next
The message MCP saved appears, and the MCP list opens.
Troubleshooting
| Message | Fix |
|---|---|
| Name is required | Enter a Name. |
| Only letters and numbers — no spaces, dashes, or special characters | Remove spaces and special characters from the name. |
| A MCP named "name" already exists | Choose a different name. |
| URL must start with http:// or https:// | Add the scheme to the URL. |
| Enter a base URL or an OpenAPI spec URL | Enter at least one of them. |
| Field is required | Fill in the named authentication field. |
| Choose Read or Full access for an account-scoped MCP | Choose an access level. |
| Retry count must be between 0 and 10 | Enter a value from 0 to 10. |
| Use duration format: 30s, 1m, 500ms, 2h | Enter a duration such as 30s. |
| Cannot save more than 2000 tools at once | Untick some tools. |
| Tool names must be unique | Rename the tools that share a name. |
| Enter the base URL first — the uploaded spec is checked against it. | Enter the Base URL, then upload the spec. |
| Select at least one group to create. | Tick at least one group. |
| Save failed. Check the form values and try again. | Check the fields marked in red. |
If the spec's host doesn't match your base URL, select Use my base URL anyway to keep your base URL.