Model Context Protocol implementation for TypeScript - Server package
$ npm install @modelcontextprotocol/server
@modelcontextprotocol/serverThe MCP (Model Context Protocol) TypeScript server SDK. Build MCP servers that expose tools, resources, and prompts.
[!WARNING] v2 is the stable release line, implementing the 2026-07-28 MCP spec. Migrating from v1? Start with the migration guide.
[!NOTE] This is v2 of the MCP TypeScript SDK. It replaces the monolithic
@modelcontextprotocol/sdkpackage from v1. See the migration guide if you're coming from v1.
npm install @modelcontextprotocol/server
TypeScript ≥6.0 no longer auto-includes @types/* — add "types": ["node"] to your tsconfig.json compilerOptions (the published .d.mts references Buffer).
Optional framework adapters: @modelcontextprotocol/express, @modelcontextprotocol/fastify, @modelcontextprotocol/hono,
@modelcontextprotocol/node.
© 2010 - cnpmjs.org x YWFE | Home | YWFE