A lightweight, fetch-first implementation of the Model Context Protocol (MCP) server APIs. v0.10.0, actively developed. Rewrites the TypeScript MCP SDK from scratch, keeping only server essentials: JSON-RPC handling, typed tool definitions, and HTTP+SSE transport using the Fetch API (works on Node, Bun, Cloudflare Workers, Deno, Supabase Edge Functions, browsers with Service Workers). Zero runtime dependencies in core, opt-in adapters for sessions and client calls. Differentiator: minimal footprint, no heavy SDK baggage, Standard Schema support (Zod, Valibot, Effect, ArkType).
npm install mcp-liteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a minimal MCP server with Hono, defines a tool with Zod, and binds it to HTTP transport.
Provide a schemaAdapter function (e.g., (schema) => z.toJSONSchema(schema as z.ZodType)) in the options object.
Use StreamableHttpTransport instead of any removed SSE transport.
Add outputSchema to the tool definition to retain structuredContent.
Use dynamic import() or switch to 'type': 'module' in package.json.
Pass a config object with name and version to McpServer constructor.
Run 'npm install mcp-lite' and ensure import path is correct (no subpath).
Ensure you instantiate McpServer correctly: const mcp = new McpServer({ name: '...', version: '...', schemaAdapter: ... });Use Node >= 12, set 'type': 'module' in package.json, or use dynamic import().
No dependency data recorded yet.