Model Context Protocol (MCP) servers expose structured capabilities to AI clients. In this guide we will build a minimal Rust implementation that speaks MCP over standard input and standard output, so it can plug into any compliant client without socket plumbing. Along the way we will peek at the JSON-RPC envelope MCP relies on, map it to strongly typed Rust structures, and wire enough handlers to exercise the loop with real requests.