Lite
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.
Características Principales
01Structured outputs with runtime validation and schema exposure via `tools/list`
02No runtime dependencies and a single TypeScript entrypoint
0372 GitHub stars
04HTTP + SSE transport built on the Fetch API, compatible with various environments
05Adapter interfaces for sessions, server-to-client requests, and persistence
06Type-safe tool definitions with Standard Schema (Zod, Valibot, Effect, ArkType)
Casos de Uso
01Building AI assistants that interact with external data sources and tools
02Developing scalable MCP servers for distributed or serverless environments using custom adapters
03Integrating external functionalities and data into host applications via a standardized protocol