Create an MCP server
Create an MCP server over one or more API document versions. The response carries the server and its first installation.
OAuth scopes
- write
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
curl https://access.scalar.com/v1/mcp/servers \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "",
"slug": "",
"versionUids": [
""
],
"projectUids": [
""
]
}'
{
"server": {
"id": "string",
"name": "string",
"slug": "string",
"autoAddOperations": false,
"createdAt": "string",
"updatedAt": "string"
},
"installation": {
"id": "string",
"mcpServerId": "string",
"name": "string",
"slug": "string",
"isPrivate": true,
"accessGroups": [],
"loginPortalUid": null,
"mcpVersion": null,
"piiRedactionEnabled": false,
"credentialRedactionEnabled": false
}
}