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

@modelcontextprotocol/client

Package Overview
Dependencies
Maintainers
5
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modelcontextprotocol/client

Model Context Protocol implementation for TypeScript - Client package

Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
14M
178.67%
Maintainers
5
Weekly downloads
 
Created
Source

@modelcontextprotocol/client

The MCP (Model Context Protocol) TypeScript client SDK. Build MCP clients that connect to MCP servers.

[!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/client

TypeScript ≥6.0 no longer auto-includes @types/* — add "types": ["node"] to your tsconfig.json compilerOptions (the published .d.mts references Buffer).

Documentation

Keywords

modelcontextprotocol

FAQs

Package last updated on 23 Sep 2026

Related posts