---
title: "Close an MCP session"
method: DELETE
path: "/mcp"
tags: ["MCP"]
---

# Close an MCP session

`DELETE /mcp`

## Request

- Base URL: `https://api.skills-hub.ai`
- URL: `https://api.skills-hub.ai/mcp`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Public. Terminates the MCP session named by the `mcp-session-id` header, closing its transport and freeing server resources. Always returns `{ ok: true }`, even for an unknown session.

## Response `200`

Successful response. The returned fields are described in this endpoint's summary/description; typed per-field response schemas are being added incrementally.

- object
  - `ok` true, required

---

[API](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api.md) · [All operations](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/skills-hub/apis/skills-hub-ai-api/revisions/cb5d46d80300?raw)
