Skip to main content
POST
Register an MCP server

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
name
string
required

Unique in the organisation, at most 120 characters, with no '/' or whitespace.

Required string length: 1 - 120
transport
enum<string>
required
Available options:
stdio,
http,
sse
url
string
required

A public http(s) URL for http and sse servers.

Minimum string length: 1
description
string
Maximum string length: 2048
env
object

Env entries for the server. A key that looks like a credential (token, secret, password, api_key, ...) must hold a ${VAULT:} or ${SECRET_SLOT:<slot_id>} marker.

allowed_tools
string[]

The tools agents may call. Leave it out to allow every tool.

enabled
boolean
default:true
permission_tier
enum<string>
default:read_only
Available options:
read_only,
read_write
adapter_key
string

A curated adapter key from the catalog.

cluster_allow_list
string[]

Cluster ids to limit the server to. Leave it out for every cluster.

Response

The registered server

id
string<uuid>
required
organisation_id
string<uuid>
required
name
string
required
description
string
required
transport
enum<string>
required
Available options:
stdio,
http,
sse
url
string
required
env_keys
string[]
required

The env key names, sorted. Values are never returned.

allowed_tools
string[] | null
required

The tools agents may call, or null for every tool the server offers.

enabled
boolean
required
permission_tier
enum<string>
required
Available options:
read_only,
read_write
adapter_key
string | null
required

The curated adapter the server was registered from, or null.

cluster_allow_list
string[] | null
required

The cluster ids the server is limited to, or null for every cluster.

created_by_user_id
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
last_connected_at
string<date-time> | null
required

When Ankra last connected to the server.

last_error
string | null
required

The error from the last failed connection, or null.