MCP JSON-RPC Message

Common envelope for all MCP messages. All MCP traffic uses JSON-RPC 2.0 over stdio or Streamable HTTP transports.

MCPAI AgentsToolsResourcesPromptsJSON-RPCAnthropicStandardsTopic
View JSON Schema on GitHub

JSON Schema

mcp-jsonrpc-message-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/mcp/json-schema/mcp-jsonrpc-message-schema.json",
  "title": "MCP JSON-RPC Message",
  "description": "Common envelope for all MCP messages. All MCP traffic uses JSON-RPC 2.0 over stdio or Streamable HTTP transports.",
  "oneOf": [
    { "$ref": "#/$defs/JSONRPCRequest" },
    { "$ref": "#/$defs/JSONRPCResponse" },
    { "$ref": "#/$defs/JSONRPCError" },
    { "$ref": "#/$defs/JSONRPCNotification" }
  ],
  "$defs": {
    "JSONRPCRequest": {
      "type": "object",
      "required": ["jsonrpc", "id", "method"],
      "properties": {
        "jsonrpc": { "const": "2.0" },
        "id": {
          "oneOf": [
            { "type": "string", "minLength": 1 },
            { "type": "integer" }
          ],
          "description": "Request ID. MUST NOT be null and MUST NOT have been previously used by the requestor in this session."
        },
        "method": { "type": "string" },
        "params": { "type": "object" }
      },
      "additionalProperties": false
    },
    "JSONRPCResponse": {
      "type": "object",
      "required": ["jsonrpc", "id", "result"],
      "properties": {
        "jsonrpc": { "const": "2.0" },
        "id": {
          "oneOf": [
            { "type": "string" },
            { "type": "integer" }
          ]
        },
        "result": { "type": "object" }
      },
      "additionalProperties": false
    },
    "JSONRPCError": {
      "type": "object",
      "required": ["jsonrpc", "error"],
      "properties": {
        "jsonrpc": { "const": "2.0" },
        "id": {
          "oneOf": [
            { "type": "string" },
            { "type": "integer" },
            { "type": "null" }
          ]
        },
        "error": {
          "type": "object",
          "required": ["code", "message"],
          "properties": {
            "code": { "type": "integer" },
            "message": { "type": "string" },
            "data": {}
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "JSONRPCNotification": {
      "type": "object",
      "required": ["jsonrpc", "method"],
      "properties": {
        "jsonrpc": { "const": "2.0" },
        "method": { "type": "string" },
        "params": { "type": "object" }
      },
      "not": { "required": ["id"] },
      "additionalProperties": false
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mcp-jsonrpc-message"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.