---
title: "Add MCP server"
method: POST
path: "/api/v1/mcp/servers"
tags: ["MCP"]
---

# Add MCP server

`POST /api/v1/mcp/servers`

## Request

- Base URL: `http://:8080`
- URL: `http://:8080/api/v1/mcp/servers`
- Auth: none declared

Add MCP server.

Auth: Required (bearer token).
Scope: Organization-scoped in authenticated context.
Side effects: May mutate server state.

## Headers

- `Accept` string

## Request body `*/*`

- CreateServerRequest: CreateServerRequest schema
  - `credentials` object: Provider-specific credential key-value pairs
  - `custom_url` string, nullable: Custom server URL. Required when provider_id is 'custom'. Must use HTTPS
  - `enabled` boolean: Whether the server is active
  - `name` string, required: Display name for this MCP server
  - `provider_id` string, uuid, required: MCP provider identifier (e.g. 'openai', 'anthropic', 'custom')

## Response `201`

Created

- Response: Response schema
  - `data` unknown
  - `message` string
  - `status` string

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `500`: Internal Server Error _(panics)_
- `default`

## Changes

- **2026-04-26** `09f18af670c4`: 3 breaking, 4 info
  - the request property `name` became required
  - the request property `provider_id` became required
  - removed the success response with the status `200`
  - api tag `MCP` added
  - …3 more
- **2026-04-02** `2beb810c5221`: 24 warning, 13 info
  - removed the optional property `detail` from the response with the `400` status (media type: application/json)
  - removed the optional property `detail` from the response with the `400` status (media type: application/xml)
  - removed the optional property `detail` from the response with the `500` status (media type: application/json)
  - removed the optional property `detail` from the response with the `500` status (media type: application/xml)
  - …33 more
- **2026-03-26** `e34b00e45318`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nixopus/apis/nixopus-api/changes/api/v1/mcp/servers/post.md)

---

[API](https://skmtc.dev/nixopus/apis/nixopus-api.md) - [All operations](https://skmtc.dev/nixopus/apis/nixopus-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nixopus/apis/nixopus-api/revisions/c5bacaea7239?raw)
