---
title: "MCP server endpoint (JSON-RPC 2.0)"
method: POST
path: "/mcp"
tags: ["MCP"]
---

# MCP server endpoint (JSON-RPC 2.0)

`POST /mcp`

Model Context Protocol (MCP) server exposing this API to AI clients over Streamable HTTP. Point an MCP-capable client at the /mcp endpoint. Available tools: random-cat-fact (optional max_length), list-cat-facts (optional max_length; optional limit, default 10, max 1000), list-breeds (optional limit, default 25, max 1000). Requests use JSON-RPC 2.0 (methods include initialize, tools/list, tools/call). Rate limited to 100 requests per minute.

## Request body

- object
  - `jsonrpc` string, required
  - `id` integer
  - `method` string, required
  - `params` object

## Response `200`

JSON-RPC 2.0 response

## Other responses

- `429` — Rate limit exceeded

## Changes

- **2026-08-11** `f645fa9e4825` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/catfact/apis/cat-fact-api/changes/mcp/post.md)

---

[API](https://skmtc.dev/catfact/apis/cat-fact-api.md) · [All operations](https://skmtc.dev/catfact/apis/cat-fact-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/catfact/cat-fact-api/revisions/f645fa9e4825/schema)
