Create an MCP server
Create an MCP server over one or more API document versions. The response carries the server and its first installation.
Body
required
application/json
- Type: stringnamemin length:1max length:100required
- Type: array of stringproject
Uids - Type:slugmin length:1max length:60
- Type: array of stringversion
Uids
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/v1/mcp/servers
import Scalar from '@scalar/sdk';
const client = new Scalar({
bearerAuth: process.env['BEARER_AUTH'], // defaults to the BEARER_AUTH env var
});
const server = await client.mcp.servers.create({
name: 'Acme MCP',
});
console.log(server);
{
"server": {
"id": "42",
"name": "Acme API",
"slug": "acme-api",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
},
"installation": {
"id": "42",
"mcpServerId": "42",
"name": "Acme API",
"slug": "acme-api",
"accessGroups": [
"UakgbKJ5m9gl0JDMbcJqL"
],
"loginPortalUid": "LakgbKJ5m9gl0JDMbcJqL",
"mcpVersion": "1.2.0",
"piiRedactionEnabled": true,
"credentialRedactionEnabled": true
}
}