---
title: "Model Context Protocol endpoint"
method: POST
path: "/mcp"
tags: ["ai"]
---

# Model Context Protocol endpoint

`POST /mcp`

Implements the Model Context Protocol (MCP) over HTTP, allowing an LLM to query Sheet Assistant as an MCP Tool. To use, send stdin from the LLM as the body of a POST to this endpoint, and send the response back over stdout Example body: {"method":"tools/list","params":{"protocolVersion":"2024-11-05","capabilities":{}},"jsonrpc":"2.0","id":0}.

## Request body

- Jsonrpc2Request
  - `id` Jsonrpc2ID
    - `IsString` boolean — IsString controls whether the Num or Str field's value should be used as the ID, when both are zero valued. It must always be set to true if the request ID is a string.
    - `Num` integer — At most one of Num or Str may be nonzero. If both are zero valued, then IsNum specifies which field's value is to be used as the ID.
    - `Str` string
  - `meta` object — Meta optionally provides metadata to include in the request. NOTE: It is not part of spec. However, it is useful for propagating tracing context, etc.
  - `method` string
  - `params` object

## Response `200`

OK

- unknown

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/freshdesk/apis/gigasheet-api.md) · [All operations](https://skmtc.net/freshdesk/apis/gigasheet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freshdesk/gigasheet-api/versions/d1e5cbb24557/schema)
