MCP API Reference
By DevShelfHub
Complete documentation for the Model Context Protocol — every interface, every JSON-RPC method, every notification. Detailed explanations, fields, examples, and common mistakes.
MCP API Reference FAQ
What does the MCP API reference cover?
This reference covers every MCP TypeScript type (interfaces), every JSON-RPC method (like initialize, tools/list, tools/call), and every notification — with field tables, examples, common mistakes, and related types for each entry.
What are MCP Interfaces?
MCP Interfaces are TypeScript types that define the shape of protocol data — request parameters, result shapes, content types, and configuration objects. They form the schema layer of MCP's JSON-RPC 2.0 messages.
What are MCP Methods?
MCP Methods are the JSON-RPC 2.0 procedures that clients and servers call on each other — for example, initialize, tools/list, tools/call, resources/read, prompts/get, and sampling/createMessage. Each method has defined request and result types.
What are MCP Notifications?
MCP Notifications are fire-and-forget JSON-RPC 2.0 messages with no id and no expected response. They're used for progress updates (notifications/progress), list-changed events (notifications/tools/list_changed), log messages, and cancellation.
Is this MCP API reference up to date?
This reference is based on the MCP specification as of June 2026. MCP is actively evolving — check the official modelcontextprotocol/specification repository on GitHub for the latest changes and experimental proposals.