---
title: "Revoke and delete the OAuth token for an MCP server"
method: DELETE
path: "/api/mcp-oauth/{mcpServerId}"
tags: ["MCP OAuth"]
---

# Revoke and delete the OAuth token for an MCP server

`DELETE /api/mcp-oauth/{mcpServerId}`

## Path parameters

- `mcpServerId` string, required

## Query parameters

- `userId` string

## Response `200`

Token revoked/deleted

- object
  - `ok` true, required

## Other responses

- `404` — No token for this MCP server

## Changes

- **2026-08-07** `06cac6a7c5bc` — 2 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `404`

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/mcp-oauth/:mcpServerId/delete.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/6b1a7f0876b9/schema)
