---
title: "Median MCP server endpoint"
method: POST
path: "/mcp"
tags: ["MCP"]
---

# Median MCP server endpoint

`POST /mcp`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/mcp`
- Auth: HTTP bearer

JSON-RPC 2.0 Streamable HTTP endpoint. Default customer API keys and OAuth tokens expose only read tools. A separately scoped forecast:write API key may also expose the Forecast sandbox staging tool, which never changes the live forecast. Tool names and input schemas are documented in openapi/mcp-tools.json. Limits are 30 tool calls per minute and 300 per hour per API key or OAuth user-company identity, with an additional 20 calls per minute for each bulk-read tool. Every tool call in a JSON-RPC batch consumes its own budget. If any item exceeds a limit, the full batch is rejected atomically with HTTP 429, Retry-After, and one JSON-RPC error per request item. A batch may contain at most 20 items; a longer batch is rejected with HTTP 400 and a single JSON-RPC -32600 error before any budget is consumed.

## Request body

- union
  - McpJsonRpcRequest
    - `jsonrpc` '2.0', required
    - `id` union
      - string
      - integer
    - `method` string, required: MCP request or notification method.
    - `params` object
  - McpJsonRpcRequest[]
    - `jsonrpc` '2.0', required
    - `id` union
      - string
      - integer
    - `method` string, required: MCP request or notification method.
    - `params` object

## Response `200`

JSON-RPC result or error

- union
  - McpJsonRpcResponse
    - `jsonrpc` '2.0', required
    - `id` union, required
      - string
      - integer
    - `result` object
    - `error` object
      - `code` integer
      - `message` string
  - McpJsonRpcResponse[]
    - `jsonrpc` '2.0', required
    - `id` union, required
      - string
      - integer
    - `result` object
    - `error` object
      - `code` integer
      - `message` string

## Other responses

- `400`: Malformed JSON-RPC input, including a batch longer than 20 items; a single JSON-RPC error with code -32600 and a null id, returned before any tool-call budget is consumed
- `429`: One or more tool calls exceeded the credential or bulk-tool budget

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
