---
title: "POST /api/mcp/servers"
method: POST
path: "/api/mcp/servers"
tags: ["mcp"]
---

# POST /api/mcp/servers

`POST /api/mcp/servers`

## Request body

- union
  - object
    - `transport` 'remote', nullable
    - `name` string, required
    - `description` string, nullable
    - `endpoint` string, required
    - `remoteTransport` 'streamable-http' | 'sse' | 'auto', nullable
    - `slug` string, nullable
    - `queryParams` object, nullable
    - `headers` object, nullable
    - `authenticationTemplate` union[], nullable
      - union
        - object
          - `slug` string, nullable
          - `kind` 'none', required
        - object
          - `slug` string, nullable
          - `kind` 'oauth2', required
        - object
          - `slug` string, nullable
          - `type` 'apiKey', required
          - `label` string, nullable
          - `headers` object, nullable
          - `queryParams` object, nullable
    - `auth` union
      - object
        - `kind` 'none', required
      - object
        - `kind` 'header', required
        - `headerName` string, required
        - `prefix` string, nullable
      - object
        - `kind` 'oauth2', required
  - object
    - `transport` 'stdio', required
    - `name` string, required
    - `description` string, nullable
    - `command` string, required
    - `args` string[], nullable
    - `envVars` string[], nullable
    - `env` object, nullable
    - `cwd` string, nullable
    - `versionNegotiation` 'legacy' | 'auto', nullable
    - `slug` string, nullable

## Response `200`

Success

- object
  - `slug` string, required

## Other responses

- `400` — McpConnectionError | McpToolDiscoveryError
- `409` — IntegrationAlreadyExistsError
- `500` — InternalError

---

[API](https://skmtc.net/executor/apis/executor-api.md) · [All operations](https://skmtc.net/executor/apis/executor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/executor/executor-api/revisions/c1ec5e355d44/schema)
