Request Body
Project ID to associate the server with
Server name (minimum 1 character)
Transport protocol type. Must be one of: stdio, http, or sse
Server URL for HTTP/SSE transport
Connection type: direct or proxy
Command to execute for stdio transport
Environment variables as key-value pairs
Proxy authentication token
Proxy authentication header name
Request timeout in milliseconds
Maximum total timeout in milliseconds
Response
Whether the server was created successfully
Success message or error details
Unique identifier for the created server
curl -X POST https://api.example.com/api/mcp/servers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"projectId": "proj_123",
"name": "My MCP Server",
"description": "Production MCP server",
"transportType": "http",
"url": "https://mcp-server.example.com",
"connectionType": "proxy"
}'
{
"success": true,
"message": "MCP server created successfully",
"serverId": "mcp_abc123"
}