New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@modelcontextprotocol/server

Package Overview
Dependencies
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modelcontextprotocol/server

Model Context Protocol implementation for TypeScript - Server package

latest
Source
npmnpm
Version
2.3.1
Version published
Weekly downloads
8.4M
-13.6%
Maintainers
6
Weekly downloads
 
Created
Source

@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

Keywords

modelcontextprotocol

FAQs

Package last updated on 05 Oct 2026

Related posts