---
title: "POST /api/mcp - Handle JSON-RPC requests."
method: POST
path: "/api/mcp"
tags: ["mcp"]
---

# POST /api/mcp - Handle JSON-RPC requests.

`POST /api/mcp`

Accepts JSON-RPC requests and returns either:
- `application/json` for simple responses
- `text/event-stream` for streaming responses (not implemented yet)

The `Mcp-Session-Id` header is assigned on initialize and required for subsequent requests.

## Request body

- JsonRpcRequest — JSON-RPC 2.0 Request.
  - `id` unknown
  - `jsonrpc` string, required
  - `method` string, required
  - `params` unknown

## Response `200`

JSON-RPC response

## Other responses

- `202` — Notification accepted (no response body)
- `400` — Invalid request or session required
- `401` — Authentication required
- `403` — Invalid origin (DNS rebinding protection)

---

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