npm.io
2.3.1 • Published 2h ago

@modelcontextprotocol/client

Licence
Apache-2.0
Version
2.3.1
Deps
7
Size
6.6 MB
Vulns
0
Weekly
0
Stars
13.5K

@modelcontextprotocol/client

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

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/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