What MCP Actually Is
The Model Context Protocol (MCP) is an open standard โ published by Anthropic in late 2024 โ that lets LLM hosts (Claude Code, Claude.ai, Cursor, etc.) communicate with external servers over a well-defined JSON-RPC 2.0 wire format. Think of it as USB-C for AI context: one plug, many devices.
An MCP server exposes three primitives:
- Tools โ callable functions the model can invoke (e.g.,
run_query,send_email) - Resources โ addressable blobs the model can read, referenced by URI (e.g.,
file://repo/README.md,db://customers/42) - Prompts โ reusable prompt templates that can be parameterised and surfaced in the host UI
The host negotiates capabilities at startup (initialize / initialized handshake), then drives the server via tools/call, resources/read, or prompts/get requests. Your server is just a process that speaks this protocol โ stdio or HTTP+SSE are the two supported transports.
