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

# Create a new MCP server

`POST /api/mcp-servers`

## Request body

- object
  - `name` string, required
  - `transport` 'stdio' | 'http' | 'sse', required
  - `description` string
  - `scope` string
  - `ownerAgentId` string
  - `command` string
  - `args` string
  - `url` string
  - `headers` string
  - `envConfigKeys` string
  - `headerConfigKeys` string

## Response `201`

MCP server created

## Other responses

- `400` — Validation error

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
