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

# Create Server

`POST /mcp-servers`

## Request

- Base URL: `https://api.agent4.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agent4.io/mcp-servers`
- Auth: none declared

## Request body

- McpServerIn
  - `name` string, required
  - `transport` string
  - `config` object
  - `enabled` boolean

## Response `201`

Successful Response

- McpServerOut
  - `id` string, required
  - `name` string, required
  - `transport` string, required
  - `enabled` boolean, required
  - `config` object, required
  - `status` string, nullable
  - `last_error` string, nullable
  - `discovered_tools` unknown[], nullable
    - unknown
  - `last_checked_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agent4/apis/chatagent-platform.md) · [All operations](https://skmtc.dev/agent4/apis/chatagent-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/agent4/apis/chatagent-platform/revisions/18e58f082ce3?raw)
