---
title: "Remove Server From Groups Api"
method: POST
path: "/api/servers/groups/remove"
tags: ["Server Management"]
---

# Remove Server From Groups Api

`POST /api/servers/groups/remove`

Remove a service from scope groups via JWT authentication (External API).

This endpoint provides the same functionality as POST /api/internal/remove-from-groups
but uses modern JWT Bearer token authentication.

**Authentication:** JWT Bearer token (via nginx X-User header)
**Authorization:** Requires valid JWT token from auth system

**Request body (form data):**
- `server_name` (required): Service name
- `group_names` (required): Comma-separated list of group names to remove

**Response:**
Returns confirmation of removal from groups.

**Example:**
```bash
curl -X POST https://registry.example.com/api/servers/groups/remove \
  -H "Authorization: Bearer $JWT_TOKEN" \
  -F "server_name=myservice" \
  -F "group_names=developers"
```

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ascending-llc/apis/mcp-gateway-registry.md) · [All operations](https://skmtc.net/ascending-llc/apis/mcp-gateway-registry/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ascending-llc/mcp-gateway-registry/versions/31381943e2e7/schema)
