Skip to main content
DELETE
/
api
/
v2
/
public
/
mcp-servers
/
:mcp_server_id
curl -X DELETE "https://app.refold.ai/api/v2/public/mcp-servers/{mcp_server_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"
Delete an MCP server. This removes the server and its configuration.

Authentication

This endpoint is scoped to a linked account, so it accepts either authentication method. Option 1 — API key
x-api-key
string
Your Refold API key.
linked_account_id
string
The linked account. Required with API-key auth.
Option 2 — Session token
Authorization
string
Session token. Format: Bearer YOUR_SESSION_TOKEN

Path Parameters

mcp_server_id
string
required
The MCP server ID to delete.

Response

Returns 200 with an empty body on success.
curl -X DELETE "https://app.refold.ai/api/v2/public/mcp-servers/{mcp_server_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID"