@modelcontextprotocol/server

Model Context Protocol implementation for TypeScript - Server package

Broken DTS exports — use 2.0.0-alpha.2
Last updated 8 months ago by fweinberger .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @modelcontextprotocol/server 
SYNC missed versions from official npm registry.

@modelcontextprotocol/server

The 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/sdk package from v1. See the migration guide if you're coming from v1.

Install

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.

Documentation

Current Tags

  • 2.4.0                                ...           latest (a month ago)

15 Versions

  • 2.4.0                                ...           a month ago
  • 2.3.1                                ...           2 months ago
  • 2.3.0                                ...           2 months ago
  • 2.2.0                                ...           2 months ago
  • 2.1.0                                ...           2 months ago
  • 2.0.0                                ...           4 months ago
  • 2.0.0-beta.5                                ...           4 months ago
  • 2.0.0-beta.4                                ...           4 months ago
  • 2.0.0-beta.3                                ...           5 months ago
  • 2.0.0-beta.2                                ...           5 months ago
  • 2.0.0-beta.1                                ...           5 months ago
  • 2.0.0-alpha.4                                ...           5 months ago
  • 2.0.0-alpha.3                                ...           5 months ago
  • 2.0.0-alpha.2                                ...           8 months ago
  • 2.0.0-alpha.1 [deprecated]           ...           8 months ago
Downloads
Total 46
Today 0
This Week 5
This Month 29
Last Day 0
Last Week 14
Last Month 17
Dependencies (1)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE