SandBase MCP Connections API
Remote HTTPS MCP servers that Agents can call
Remote HTTPS MCP servers that Agents can call
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sandbase-ai:sandbase-ai-mcp-connections-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: SandBase MCP Connections API
description: 'SandBase is an agent-native platform for connecting Agents to the real world.
Use one account and one key to call Models, ready-made APIs, and Agents.
## Authentication
Public API requests require a SandBase API key. Use `Authorization: Bearer sk-YOUR_KEY` by default.
Anthropic Messages and Google Gemini-compatible operations also document their native SDK-compatible key locations.
## SDK Compatibility
- **LLM Gateway** (`/v1/chat/completions`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`
- **Embeddings** (`/v1/embeddings`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`
- **Images** (`/v1/images/generations`, `/v1/images/edits`): Use OpenAI SDK with `base_url="https://api.sandbase.ai/v1"`
- **Anthropic Messages** (`/v1/messages`): Use Anthropic SDK with `base_url="https://api.sandbase.ai"`
- **Google Gemini GenerateContent** (`/v1beta/models/{model}:generateContent`): Configure the Google Gen AI SDK to use `https://api.sandbase.ai`
- **Agents and Sessions** (`/v1/agents`, `/v1/agents/sessions`): Follow the OpenAI Agents protocol (`OpenAI-Beta: agents=v1` is optional) plus the documented SandBase extensions
- **Agents platform resources** (`/v1/agents*`, `/v1/mcp-connections*`, `/v1/secrets*`, `/v1/skills*`): Accept `Authorization: Bearer` or `X-API-Key` and return the `AgentsError` envelope'
version: 1.0.0
x-sandbase-session-contract:
status: active
feature: Agents platform Sessions
description: A Session (ses_*) runs one saved Agent version in a SandBase-hosted environment. Sessions are created directly with POST /v1/agents/sessions. Internal runtime identities are never exposed.
contact:
name: SandBase
url: https://www.sandbase.ai
license:
name: Proprietary
servers:
- url: https://api.sandbase.ai
description: Production
security:
- BearerAuth: []
tags:
- name: MCP Connections
description: Remote HTTPS MCP servers that Agents can call
paths:
/v1/mcp-connections:
post:
operationId: createMCPConnection
tags:
- MCP Connections
summary: Create MCP connection
description: Register a remote HTTPS MCP server, optionally authenticated with an active Secret whose server_url matches exactly. Idempotency-Key is required.
security:
- BearerAuth: []
- AgentsApiKey: []
parameters:
- $ref: '#/components/parameters/IdempotencyKeyRequired'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MCPConnectionCreateRequest'
responses:
'201':
description: Connection created
content:
application/json:
schema:
$ref: '#/components/schemas/MCPConnection'
'400':
description: invalid_request (malformed JSON, unknown fields, failed validation, or an unsupported option)
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'401':
description: 'unauthorized: missing, malformed, or conflicting API key headers'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'402':
description: 'spending_limit_exceeded: API key spending limit or organization balance exhausted'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'403':
description: insufficient_scope (scoped key) or org_disabled
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'404':
description: 'not_found: the resource does not exist in this organization'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'409':
description: 'conflict: stale row_version, lifecycle state, or Idempotency-Key reused with a different body'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'503':
description: authorization_unavailable, admission_unavailable, executor_unavailable, storage_unavailable, or internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
get:
operationId: listMCPConnections
tags:
- MCP Connections
summary: List MCP connections
description: List connections with offset pagination.
security:
- BearerAuth: []
- AgentsApiKey: []
parameters:
- $ref: '#/components/parameters/OffsetLimit'
- $ref: '#/components/parameters/Offset'
responses:
'200':
description: Connection page
content:
application/json:
schema:
$ref: '#/components/schemas/MCPConnectionList'
'401':
description: 'unauthorized: missing, malformed, or conflicting API key headers'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'402':
description: 'spending_limit_exceeded: API key spending limit or organization balance exhausted'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'403':
description: insufficient_scope (scoped key) or org_disabled
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'503':
description: authorization_unavailable, admission_unavailable, executor_unavailable, storage_unavailable, or internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
/v1/mcp-connections/{connection_id}:
parameters:
- $ref: '#/components/parameters/MCPConnectionIdPath'
get:
operationId: getMCPConnection
tags:
- MCP Connections
summary: Get MCP connection
description: Read a connection.
security:
- BearerAuth: []
- AgentsApiKey: []
responses:
'200':
description: Connection
content:
application/json:
schema:
$ref: '#/components/schemas/MCPConnection'
'401':
description: 'unauthorized: missing, malformed, or conflicting API key headers'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'402':
description: 'spending_limit_exceeded: API key spending limit or organization balance exhausted'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'403':
description: insufficient_scope (scoped key) or org_disabled
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'404':
description: 'not_found: the resource does not exist in this organization'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'503':
description: authorization_unavailable, admission_unavailable, executor_unavailable, storage_unavailable, or internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
put:
operationId: replaceMCPConnection
tags:
- MCP Connections
summary: Replace MCP connection
description: Replace name, server_url, and secret_id with compare-and-set on row_version. Omitting secret_id makes the connection anonymous. A disabled connection stays disabled. Idempotency-Key is required.
security:
- BearerAuth: []
- AgentsApiKey: []
parameters:
- $ref: '#/components/parameters/IdempotencyKeyRequired'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MCPConnectionReplaceRequest'
responses:
'200':
description: Connection
content:
application/json:
schema:
$ref: '#/components/schemas/MCPConnection'
'400':
description: invalid_request (malformed JSON, unknown fields, failed validation, or an unsupported option)
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'401':
description: 'unauthorized: missing, malformed, or conflicting API key headers'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'402':
description: 'spending_limit_exceeded: API key spending limit or organization balance exhausted'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'403':
description: insufficient_scope (scoped key) or org_disabled
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'404':
description: 'not_found: the resource does not exist in this organization'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'409':
description: 'conflict: stale row_version, lifecycle state, or Idempotency-Key reused with a different body'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'503':
description: authorization_unavailable, admission_unavailable, executor_unavailable, storage_unavailable, or internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
delete:
operationId: deleteMCPConnection
tags:
- MCP Connections
summary: Disable MCP connection
description: Disable the connection. Idempotency-Key is required. New Sessions cannot use it and existing Sessions that froze it reject further input.
security:
- BearerAuth: []
- AgentsApiKey: []
parameters:
- $ref: '#/components/parameters/IdempotencyKeyRequired'
responses:
'204':
description: Connection disabled
'400':
description: invalid_request (malformed JSON, unknown fields, failed validation, or an unsupported option)
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'401':
description: 'unauthorized: missing, malformed, or conflicting API key headers'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'402':
description: 'spending_limit_exceeded: API key spending limit or organization balance exhausted'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'403':
description: insufficient_scope (scoped key) or org_disabled
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'404':
description: 'not_found: the resource does not exist in this organization'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'503':
description: authorization_unavailable, admission_unavailable, executor_unavailable, storage_unavailable, or internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
/v1/mcp-connections/{connection_id}/enable:
parameters:
- $ref: '#/components/parameters/MCPConnectionIdPath'
post:
operationId: enableMCPConnection
tags:
- MCP Connections
summary: Enable MCP connection
description: Re-enable a disabled connection with compare-and-set on row_version. Idempotency-Key is required. A revoked Secret is never restored.
security:
- BearerAuth: []
- AgentsApiKey: []
parameters:
- $ref: '#/components/parameters/IdempotencyKeyRequired'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RowVersionRequest'
responses:
'200':
description: Connection
content:
application/json:
schema:
$ref: '#/components/schemas/MCPConnection'
'400':
description: invalid_request (malformed JSON, unknown fields, failed validation, or an unsupported option)
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'401':
description: 'unauthorized: missing, malformed, or conflicting API key headers'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'402':
description: 'spending_limit_exceeded: API key spending limit or organization balance exhausted'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'403':
description: insufficient_scope (scoped key) or org_disabled
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'404':
description: 'not_found: the resource does not exist in this organization'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'409':
description: 'conflict: stale row_version, lifecycle state, or Idempotency-Key reused with a different body'
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
'503':
description: authorization_unavailable, admission_unavailable, executor_unavailable, storage_unavailable, or internal_error
content:
application/json:
schema:
$ref: '#/components/schemas/AgentsError'
components:
parameters:
Offset:
name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
description: Number of records to skip.
MCPConnectionIdPath:
name: connection_id
in: path
required: true
schema:
type: string
description: MCP connection ID (`mcp_` prefix), or builtin:sandbase for the built-in SandBase server.
IdempotencyKeyRequired:
name: Idempotency-Key
in: header
required: true
schema:
type: string
minLength: 1
maxLength: 128
description: Required. 1-128 characters without leading or trailing whitespace. Reuse the same key and body when retrying.
OffsetLimit:
name: limit
in: query
required: false
schema:
type: integer
minimum: 1
default: 20
description: Page size. Defaults to 20; non-numeric or non-positive values fall back to 20. Attachment lists return 400 above 100; other offset lists cap the value at 200.
schemas:
MCPConnectionList:
allOf:
- $ref: '#/components/schemas/AgentsOffsetList'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/MCPConnection'
MCPConnectionReplaceRequest:
allOf:
- $ref: '#/components/schemas/MCPConnectionCreateRequest'
- type: object
required:
- row_version
properties:
row_version:
type: integer
minimum: 1
MCPConnectionCreateRequest:
type: object
additionalProperties: false
required:
- name
- server_url
properties:
name:
type: string
minLength: 1
maxLength: 128
server_url:
type: string
format: uri
maxLength: 2048
description: HTTPS URL without credentials, query, or fragment.
secret_id:
type: string
description: Optional active Secret for the same server_url. Omit for an anonymous server.
MCPConnection:
type: object
required:
- id
- name
- server_url
- status
- row_version
- created_at
- updated_at
properties:
id:
type: string
description: Connection ID (`mcp_` prefix).
name:
type: string
server_url:
type: string
secret_id:
type: string
status:
type: string
enum:
- active
- disabled
row_version:
type: integer
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
AgentsError:
type: object
description: Error envelope for Agents platform resources. message is a fixed, safe sentence for each code.
required:
- error
properties:
error:
type: object
required:
- type
- code
- param
- message
properties:
type:
type: string
enum:
- invalid_request_error
- authentication_error
- server_error
code:
type: string
description: Stable machine-readable code. Unknown future codes should be treated by HTTP status.
enum:
- unauthorized
- insufficient_scope
- authorization_unavailable
- org_disabled
- spending_limit_exceeded
- quota_exceeded
- concurrency_limit
- admission_unavailable
- invalid_request
- not_found
- conflict
- session_input_pending
- session_input_expired
- session_environment_unavailable
- tenant_provisioning_failed
- tenant_unavailable
- executor_rejected
- executor_unavailable
- executor_contract_error
- skill_not_found
- skill_unavailable
- skill_runtime_incompatible
- storage_unavailable
- internal_error
- request_too_large
param:
type: 'null'
message:
type: string
AgentsOffsetList:
type: object
required:
- data
- total
- limit
- offset
properties:
data:
type: array
items:
type: object
additionalProperties: true
total:
type: integer
limit:
type: integer
offset:
type: integer
RowVersionRequest:
type: object
additionalProperties: false
required:
- row_version
properties:
row_version:
type: integer
minimum: 1
description: The row_version you last read. A stale value returns 409.
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: SandBase API key. Treat the complete credential as an opaque secret.
AnthropicApiKey:
type: apiKey
in: header
name: x-api-key
description: Supported only by `POST /v1/messages` for Anthropic SDK compatibility
GoogleApiKey:
type: apiKey
in: header
name: x-goog-api-key
description: Supported by Google Gemini-compatible endpoints. Takes precedence over the other key locations.
GoogleQueryApiKey:
type: apiKey
in: query
name: key
description: Google SDK compatibility fallback. Prefer x-goog-api-key or Authorization because URLs can be logged.
WebhookApiKey:
type: apiKey
in: header
name: X-API-Key
description: Accepted by the webhook Events API (/events/webhooks*). Authorization Bearer takes precedence when both are sent.
AgentsApiKey:
type: apiKey
in: header
name: X-API-Key
description: Accepted only by Agents platform resources (/v1/agents*, /v1/mcp-connections*, /v1/secrets*, /v1/skills*). If Authorization is also sent, both must carry the same key.