---
title: "Terminate an MCP Streamable HTTP session"
method: DELETE
path: "/v1/mcp"
tags: ["mcp"]
---

# Terminate an MCP Streamable HTTP session

`DELETE /v1/mcp`

Terminate the MCP session identified by the `Mcp-Session-Id` header. Subsequent requests bearing the same session id will receive `404 Not Found`.

## Response `204`

Session terminated.

## Other responses

- `401` — Unauthorized. The `/v1/mcp` endpoint requires `runtime.auth` to be configured. Configure an API key provider in your Spicepod and retry with credentials.
- `403` — Forbidden. The `Host` header value is not in the `runtime.mcp.allowed_hosts` list.
- `404` — Unknown or already-terminated `Mcp-Session-Id`.

## Changes

> 53 revisions in range; 26 could not be searched.

- **2025-03-18** `dd94571fef79` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/spiceai/apis/runtime/changes/v1/mcp/delete.md)

---

[API](https://skmtc.dev/spiceai/apis/runtime.md) · [All operations](https://skmtc.dev/spiceai/apis/runtime/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spiceai/runtime/revisions/fb597a4eaa56/schema)
