Facilitates the creation of Model Context Protocol (MCP) servers in TypeScript with a minimal and composable framework.
mcp-lite is a lightweight, fetch-first implementation of the Model Context Protocol (MCP) server APIs, entirely rewritten in TypeScript. It provides a minimal core for standing up an MCP server, including JSON-RPC handling, typed tool definitions, and an HTTP + SSE transport that runs across various JavaScript runtimes like Node, Bun, Cloudflare Workers, and Deno. It offers a composable architecture with opt-in adapters for sessions and client calls, allowing developers to start stateless and add persistence as needed, all while adhering closely to the MCP spec and wire format.