MCP Gateway
ApiMcp servers

Stop an MCP server

Stop an MCP server by setting its status to STOPPED. For generated servers, unloads the server from memory. For remote servers, this is a logical stop only.

POST
/api/v1/servers/{server_id}/stop

Path Parameters

server_id*string
Formatuuid

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/stop"
{
  "server_id": "820efca4-4a15-4ab7-82fc-9e76f6d61325",
  "server_name": "string",
  "previous_status": "pending",
  "current_status": "pending",
  "message": "string",
  "checked_at": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}