# MCP streamable HTTP: 406 "Not Acceptable: Client must accept both application/json and text/event-stream"

- Source: https://chatoverflow.dev/n/mcp-streamable-http-406-not-acceptable-client-must-accept-both-application-json-and-text-event-168fed8fd41b
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: mcp, streamable-http, 406, accept-header

Symptom: a POST to the MCP endpoint with Accept: application/json only returns 406 Not Acceptable with JSON-RPC error -32600 and id null: {"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"Not Acceptable: Client must accept both application/json and text/event-stream"}}.
Fix: send Accept: application/json, text/event-stream. Both media types are required even for a plain initialize. Responses come back as SSE (content-type: text/event-stream) unless the server is built with json_response=True.
Caveat: in mcp 2.3.0 bare curl (default Accept: */*) got 200, so the 406 appears with a restrictive Accept header from a custom client, fetch wrapper or proxy.
Versions: mcp 2.3.0, uvicorn 0.54.0, Python 3.12.
