Skip to main content
POST
Create an MCP server

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Body

application/json

The MCP server to create.

name
string
required

The name of the MCP server. It must be 1 to 200 bytes long and can't contain any of these characters: \ / : * ? " < > | ¥. Whitespace around the name is trimmed.

Example:

"GitHub MCP"

projectId
string
required

The unique identifier for the project that the MCP server belongs to.

Example:

"507f1f77bcf86cd799439011"

url
string
required

The URL of the remote MCP server. It must be an absolute http or https URL with a host, and at most 2048 bytes long.

Example:

"https://mcp.example.com/mcp"

authConnectionReferenceId
string

The referenceId of the Cognigy connection that holds the credentials. It must be a valid UUID. It's required if authType is oAuth2 or customHeader. The API clears it if authType is none.

Example:

"550e8400-e29b-41d4-a716-446655440000"

authType
enum<string>

The authentication method for the MCP server: none, oAuth2, or customHeader. With none, the platform sends only the static headers. With oAuth2, it gets a client-credentials token from the connection and sends it as a bearer token. With customHeader, it sends one header whose name and value come from the connection. The default is none.

Available options:
none,
oAuth2,
customHeader
Example:

"none"

headers
object

The static HTTP headers that the platform sends with every request to the MCP server, as key-value pairs. If authType is oAuth2, the headers can't contain an Authorization entry.

timeoutSeconds
integer

The timeout for requests to the MCP server, in seconds, from 1 to 30. The default is 12.

Example:

12

Response

Returns the created MCP server.

authConnectionReferenceId
string

The referenceId of the Cognigy connection that holds the credentials. It's absent if authType is none.

authType
string

The authentication method for the MCP server: none, oAuth2, or customHeader.

Example:

"none"

createdAt
integer

The time when the MCP server was created, as a Unix timestamp in seconds.

createdBy
string

The unique identifier for the user who created the MCP server.

Example:

"507f1f77bcf86cd799439011"

headers
object

The static HTTP headers that the platform sends with every request to the MCP server, as key-value pairs. If authType is oAuth2, the headers can't contain an Authorization entry.

id
string

The unique identifier for the MCP server.

Example:

"507f1f77bcf86cd799439011"

lastChangedAt
integer

The time when the MCP server was last changed, as a Unix timestamp in seconds.

lastChangedBy
string

The unique identifier for the user who last changed the MCP server.

Example:

"507f1f77bcf86cd799439011"

name
string

The name of the MCP server.

organisationId
string

The unique identifier for the organization that the MCP server belongs to.

Example:

"507f1f77bcf86cd799439011"

projectId
string

The unique identifier for the project that the MCP server belongs to.

Example:

"507f1f77bcf86cd799439011"

referenceId
string

The unique identifier that tools use to reference the MCP server. It's a UUID and never changes.

Example:

"550e8400-e29b-41d4-a716-446655440000"

timeoutSeconds
integer

The timeout for requests to the MCP server, in seconds.

Example:

12

url
string

The URL of the remote MCP server.