i ideas / repo launcher
modelcontextprotocol avatar

modelcontextprotocol/typescript-sdk

★ 13,748TypeScriptOther86

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.

Category
MCP & Tool Use
Also in
—
Stars
13,748
Forks
2,379
Last push
yesterday
Created
2024-09-24
Open issues
663
Website
ts.sdk.modelcontextprotocol.io/v2

Quick start

$ git clone https://github.com/modelcontextprotocol/typescript-sdk.git

Hand it to your AI

Read https://ideas.asveas.com/r/modelcontextprotocol/typescript-sdk.md and help me add modelcontextprotocol/typescript-sdk to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to typescript-sdk

All MCP & Tool Use →

Pairs well with

FAQ

What is typescript-sdk?

modelcontextprotocol/typescript-sdk is a MCP server on GitHub: The official TypeScript SDK for Model Context Protocol servers and clients [!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.

When should I use typescript-sdk?

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.

What are the best alternatives to typescript-sdk?

Popular alternatives in MCP & Tool Use: upstash/context7 (64.6k★), punkpeye/awesome-mcp-servers (97.6k★), modelcontextprotocol/servers (91.9k★), PrefectHQ/fastmcp (28.4k★), modelcontextprotocol/python-sdk (24.8k★).

Is typescript-sdk actively maintained?

modelcontextprotocol/typescript-sdk looks very actively maintained: the last push was yesterday (2026-11-10), with 13,748 stars and 663 open issues.

What license does typescript-sdk use?

modelcontextprotocol/typescript-sdk is published under the Other license. Check the repository's LICENSE file before commercial use.