@modelcontextprotocol/server
Model Context Protocol implementation for TypeScript - Server package
Last updated a month ago by GitHub Actions .
Apache-2.0 · 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.

This is v2 of the MCP TypeScript SDK, the stable release line, implementing the 2026-07-28 MCP spec. It replaces the single @modelcontextprotocol/sdk package from v1. Start with the documentation; coming from v1, see the migration guide. Found a problem? Open an issue.

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 (2)
Dependents (2)

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