---
title: "Add a new MCP server"
method: POST
path: "/api/mcp/servers"
---

# Add a new MCP server

`POST /api/mcp/servers`

Create a new MCP server with the given details

## Request body

- object
  - `name` string, required
  - `url` string, required

## Response `201`

Server created successfully

- MCPServer
  - `id` integer
  - `name` string
  - `url` string
  - `created_at` string, date-time
  - `last_check` string, date-time
  - `last_check_error` string, nullable

## Other responses

- `400` — Invalid request body
- `409` — Server with this URL already exists

---

[API](https://skmtc.net/kontext-security/apis/agent-browser-api.md) · [All operations](https://skmtc.net/kontext-security/apis/agent-browser-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kontext-security/agent-browser-api/versions/758a6b5cd8d9/schema)
