---
title: "MCP JSON-RPC endpoint"
method: POST
path: "/api/mcp"
---

# MCP JSON-RPC endpoint

`POST /api/mcp`

## Request

- Base URL: `https://glif.app`
- URL: `https://glif.app/api/mcp`
- Auth: HTTP bearer

Send a JSON-RPC 2.0 request. See the MCP spec (https://modelcontextprotocol.io) for the envelope; call `tools/list` for the live tool schemas.

## Request body

- JsonRpcRequest
  - `jsonrpc` '2.0', required
  - `id` union
    - string
    - number
  - `method` string, required
  - `params` object

## Response `200`

JSON-RPC response (JSON, or SSE stream for streaming results).

- JsonRpcResponse
  - `jsonrpc` '2.0', required
  - `id` union
    - string
    - number
  - `result` object
  - `error` object
    - `code` number
    - `message` string

## Other responses

- `401`: Missing or invalid bearer token.
- `429`: Per-credential rate limit exceeded.

---

[API](https://skmtc.dev/glif/apis/glif-mcp-api.md) - [All operations](https://skmtc.dev/glif/apis/glif-mcp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/glif/apis/glif-mcp-api/revisions/2ce384a90bc7?raw)
