---
title: "Disconnect MCP server OAuth2 token"
method: DELETE
path: "/api/v2/mcp/servers/{mcpServer}/oauth2/disconnect"
tags: ["MCP"]
---

# Disconnect MCP server OAuth2 token

`DELETE /api/v2/mcp/servers/{mcpServer}/oauth2/disconnect`

## Path parameters

- `mcpServer` string, uuid, required

## Response `200`

OK

- CodersdkMCPServerOAuth2DisconnectResponse
  - `token_revocation_error` string
  - `token_revoked` boolean

## Changes

- **2026-08-26** `4e2ba40f72eb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/coder/apis/coder-api/changes/api/v2/mcp/servers/:mcpServer/oauth2/disconnect/delete.md)

---

[API](https://skmtc.dev/coder/apis/coder-api.md) · [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/369ae60ab00e/schema)
