POST
/
mcp-server
/
instance
/
create
curl --request POST \
  --url https://api.klavis.ai/mcp-server/instance/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "serverName": "Markdown2doc",
  "userId": "<string>",
  "platformName": "<string>"
}'
{
  "serverUrl": "<string>",
  "instanceId": "<string>"
}

Authorizations

Authorization
string
header
required

Enter your API key with the format: 'Bearer your-api-key'

Body

application/json
serverName
enum<string>
required

The name of the target MCP server.

Available options:
Markdown2doc,
Slack,
Supabase,
Postgres,
YouTube,
Doc2markdown,
Klavis ReportGen,
Resend,
Discord,
Web Search,
GitHub,
Deep Research
userId
string
required

The identifier for the user requesting the server URL.

Minimum length: 1
platformName
string
required

The name of the platform associated with the user (e.g., 'Den', 'CamelAI').

Minimum length: 1

Response

200
application/json
Successful Response
serverUrl
string
required

The full URL for connecting to the MCP server via Server-Sent Events (SSE), including the instance ID.

instanceId
string
required

The unique identifier for this specific server connection instance.