---
title: "Create a new MCP server configuration"
method: POST
path: "/api/v1/mcp-servers"
tags: ["mcp-servers"]
---

# Create a new MCP server configuration

`POST /api/v1/mcp-servers`

## Request body

- CreateMcpServerDto
  - `name` string, required
  - `description` string
  - `transportType` 'http' | 'stdio', required
  - `endpoint` string, uri
  - `command` string
  - `args` string[]
  - `headers` object
  - `healthCheckUrl` string, uri
  - `enabled` boolean
  - `groupId` string
  - `cacheToken` string

## Response `201`

- McpServerResponseDto
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `transportType` 'http' | 'stdio', required
  - `endpoint` string, nullable, required
  - `command` string, nullable, required
  - `args` string[], nullable, required
  - `hasHeaders` boolean, required
  - `headerKeys` string[], nullable, required
  - `enabled` boolean, required
  - `healthCheckUrl` string, nullable, required
  - `lastHealthCheck` string, date-time, nullable, required
  - `lastHealthStatus` 'healthy' | 'unhealthy' | 'unknown', nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `groupId` string, nullable, required

## Changes

- **2026-02-04** `e9f8ffc0b4ff` — 2 breaking, 3 info
  - removed the enum value `sse` of the request property `transportType`
  - removed the enum value `websocket` of the request property `transportType`
  - added the new optional request property `cacheToken`
  - removed the `sse` enum value from the `transportType` response property for the response status `201`
  - …1 more
- **2026-02-03** `1c925b8c211d` — 13 breaking, 14 info
  - the `command` request property's minLength was increased from `0` to `1`
  - the `name` request property's minLength was increased from `0` to `1`
  - added 'propertyNames' constraint to the request property `headers`
  - the `endpoint` request property type/format changed from `string`/`` to `string`/`uri`
  - …23 more
- **2026-02-03** `4b54e651bd84` — 1 info
  - added the optional property `groupId` to the response with the `201` status
- **2026-02-02** `0c1badf65004` — 1 info
  - endpoint added
- **2026-02-02** `321c48cce199` — 1 breaking
  - api path removed without deprecation

[Full history](https://skmtc.dev/shipsecai/apis/shipsec-studio-api/changes/api/v1/mcp-servers/post.md)

---

[API](https://skmtc.dev/shipsecai/apis/shipsec-studio-api.md) · [All operations](https://skmtc.dev/shipsecai/apis/shipsec-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/shipsecai/shipsec-studio-api/revisions/cc60562ad9f3/schema)
