modelcontextprotocol/typescript-sdk
The official TypeScript SDK for Model Context Protocol servers and clients
What it is
[!IMPORTANT] This is the main branch: v2 of the SDK (@modelcontextprotocol/server, @modelcontextprotocol/client), the stable release line, implementing the 2026-07-28 MCP spec. Start with the v2 documentation; coming from v1, see the migration guide. v1.x (@modelcontextprotocol/sdk) lives on the v1.x branch and continues to receive bug fixes and security updates for at least six months after the v2 release (2026-07-27). Its documentation is at ts.sdk.modelcontextprotocol.io. Found a problem in v2? Open an issue.
When to use it
Reach for typescript-sdk when you want Claude, Cursor or any MCP client to reach a new tool, API or data source — it's written in TypeScript and fits stacks tagged mcp, mcp-client.