---
title: "Call the MCP server"
method: POST
path: "/mcp"
tags: ["MCP"]
---

# Call the MCP server

`POST /mcp`

## Request

- Base URL: `https://docs.saleor.io`
- URL: `https://docs.saleor.io/mcp`
- Auth: none required

The Model Context Protocol server (Streamable HTTP, stateless, JSON responses). Send `Accept: application/json, text/event-stream`: the Streamable HTTP transport requires a client to accept both and answers `406` otherwise, though this server always replies with JSON. Tools: `search_docs`, `get_page`, `list_pages`, `get_navigation` — the same operations this API exposes — plus every page as a `text/markdown` resource. Discovery document at `/.well-known/mcp.json`.

## Request body

- JsonRpcRequest: A JSON-RPC 2.0 request, as the Model Context Protocol sends.
  - `id` unknown
  - `jsonrpc` '2.0', required
  - `method` string, required: The MCP method, e.g. `initialize` or `tools/call`.
  - `params` object: Method parameters.

## Response `200`

The JSON-RPC response.

- JsonRpcResponse: A JSON-RPC 2.0 response: a `result` or an `error`.
  - `error` object
    - `code` integer, required
    - `data` unknown
    - `message` string, required
  - `id` unknown
  - `jsonrpc` '2.0', required
  - `result` object

## Other responses

- `406`: The request's `Accept` header doesn't list both `application/json` and `text/event-stream`.

---

[API](https://skmtc.dev/saleor/apis/saleor-commerce-documentation-api.md) - [All operations](https://skmtc.dev/saleor/apis/saleor-commerce-documentation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/saleor/apis/saleor-commerce-documentation-api/revisions/e2852dcdd871?raw)
