---
title: "Rescan Server"
method: POST
path: "/api/servers/{path}/rescan"
tags: ["Server Management"]
---

# Rescan Server

`POST /api/servers/{path}/rescan`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

Trigger a manual security scan for a server.

Initiates a new security scan for the specified server and returns
the results. This endpoint is useful for re-scanning servers after
updates or for on-demand security assessments.

**Authentication:** JWT Bearer token or session cookie
**Authorization:** Requires admin privileges

**Path Parameters:**
- `path` (required): Server path (e.g., /cloudflare-docs)

**Response:**
Returns the newly generated security scan results.

**Example:**
```bash
curl -X POST http://localhost/api/servers/cloudflare-docs/rescan \
  --cookie-jar .cookies --cookie .cookies
```

## Path parameters

- `path` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2025-12-29** `9d91d5eedb32`: 1 info
  - endpoint added
- **2025-12-29** `927839919db6`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/ascending-llc/apis/mcp-gateway-registry/changes/api/servers/:path/rescan/post.md)

---

[API](https://skmtc.dev/ascending-llc/apis/mcp-gateway-registry.md) - [All operations](https://skmtc.dev/ascending-llc/apis/mcp-gateway-registry/llms.txt) - [OpenAPI document](https://skmtc.dev/ascending-llc/apis/mcp-gateway-registry/revisions/31381943e2e7?raw)
