Best for
- TypeScript developers building MCP servers or clients
- Projects requiring Node.js, Bun, or Deno runtime support
- Projects needing optional middleware for web framework integration
This is a TypeScript SDK maintained by the Model Context Protocol owner, covering servers, clients, stdio, Streamable HTTP, and optional framework middleware. It is intended for integration development, not as a ready-made MCP server with business tools.
The MCP TypeScript SDK is a TypeScript implementation of the Model Context Protocol for Node.js, Bun, and Deno. It provides server and client libraries for tools, resources, prompts, stdio, Streamable HTTP, and OAuth helpers, plus optional middleware for Express, Fastify, Hono, and Node.js HTTP.
For servers, install with npm install @modelcontextprotocol/server. For clients, install with npm install @modelcontextprotocol/client. Bun and Deno installation alternatives are also documented. Optional packages include @modelcontextprotocol/node, @modelcontextprotocol/express, @modelcontextprotocol/fastify, and @modelcontextprotocol/hono.