MCP

MCP server endpoint (JSON-RPC 2.0)

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.

post/mcp

Request body

jsonrpcstring required
idinteger
methodstring required
paramsobject

Example request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Response

JSON-RPC 2.0 response

Changes

Changed in 1 of the 2 revisions of this API.1