MCP Server Management
Use the Management API to manage MCP Servers and MCP Server Clients (OAuth clients registered for a specific MCP Server). All endpoints require a Management Key.
Authentication: Send your Project ID and Management Key as a bearer token:
MCP Server Endpoints
Create MCP Server
Endpoint: POST /v1/mgmt/mcp/server/create
Create a new MCP Server. The response returns the created server object.
Request body:
- Identity:
name,description,tags,logo - Access:
audienceWhitelist,approvedScopes(see Approved scopes below),approvedCallbackUrls - Registration & consent:
dynamicRegistration(DCR/CIMD and flow),skipConsentScreen,consentFlowId,consentFlowHostingURL - Session & CIMD:
sessionSettings,cimdSettings
Approved scopes
approvedScopes is a single list of scopes that clients can request for this MCP Server. Each scope has:
name— Scope identifier (e.g.mcp:test,mcp:google.read).description— Shown on consent screens.optional— (Optional) Iftrue, the client may omit this scope; iffalseor omitted, it can be required.values— (Optional) If present, this scope is a connection scope: it grants access to the given Connections (resource URLs or connection identifiers). Ifvaluesis omitted, the scope has no connection associated—it is considered a normal permission scope.
![]()
Example: scopes with no connection
Example: scopes with and without connections
Create example (full request)
Load MCP Server
Endpoint: POST /v1/mgmt/mcp/server/load
Load a single MCP Server by ID. The response includes the full server object.
Request body:
- Required:
id
Load All MCP Servers
Endpoint: POST /v1/mgmt/mcp/servers/all
Load all MCP Servers in the project. The response returns a servers array.
Request body:
- Optional: Pagination and filter fields (see API reference). Can be
{}.
Update MCP Server
Endpoint: POST /v1/mgmt/mcp/server/update
Update an existing MCP Server. The response returns the updated server object.
Request body:
- Required:
server— Full MCP Server object includingid; include all fields you want to keep (same shape as create, including approvedScopes).
Delete MCP Server
Endpoint: POST /v1/mgmt/mcp/server/delete
Delete a single MCP Server.
Request body:
- Required:
id
Delete MCP Servers (bulk)
Endpoint: POST /v1/mgmt/mcp/servers/delete
Delete multiple MCP Servers by ID.
Request body:
- Required:
ids— Array of MCP Server IDs
MCP Server Client Endpoints
MCP Server Clients are OAuth clients (agents or applications) registered for a specific MCP Server.
Create MCP Server Client
Endpoint: POST /v1/mgmt/mcp/server/client/create
Create a new MCP Server Client. The response returns id, clientId, and cleartext (client secret—store it securely; it is only returned once).
Request body:
- Required:
name,mcpServerId - Optional:
approvedCallbackUrls,scopes,tags,logo
Update MCP Server Client
Endpoint: POST /v1/mgmt/mcp/server/client/update
Update an existing MCP Server Client. The response returns the updated client object.
Request body:
- Required:
id,mcpServerId - Optional:
name,approvedCallbackUrls,scopes,tags,logo
Load MCP Server Client
Endpoint: POST /v1/mgmt/mcp/server/client/load
Load a single MCP Server Client by ID. The response returns the client object.
Request body:
- Required:
id,mcpServerId
Search MCP Server Clients
Endpoint: POST /v1/mgmt/mcp/server/clients/search
Search MCP Server Clients for a given MCP Server. The response returns a clients array and total.
Request body:
- Required:
mcpServerId - Optional:
page,limit,text,name,clientId,status,registrationMethod,tag,sort
Delete MCP Server Client
Endpoint: POST /v1/mgmt/mcp/server/client/delete
Delete a single MCP Server Client.
Request body:
- Required:
id,mcpServerId
Delete MCP Server Clients (bulk)
Endpoint: POST /v1/mgmt/mcp/server/clients/delete
Delete multiple MCP Server Clients by ID.
Request body:
- Required:
ids(array of client IDs),mcpServerId
Get MCP Server Client Secret
Endpoint: POST /v1/mgmt/mcp/server/client/secret
Retrieve the current client secret. The response returns cleartext (the secret).
Request body:
- Required:
id,mcpServerId
Rotate MCP Server Client Secret
Endpoint: POST /v1/mgmt/mcp/server/client/secret/rotate
Rotate a client's secret. The response returns the new cleartext secret (store it securely; it is only returned once).
Request body:
- Required:
id,mcpServerId