modelcontextprotocol/typescript-sdk

Description: The official TypeScript SDK for Model Context Protocol servers and clients

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 59 minutes ago
Added to GitGenius on July 16th, 2026
Created on September 24th, 2024
Open Issues & Pull Requests: 491 (+0)
GitHub issues: Enabled
Number of forks: 2,009
Total Stargazers: 12,949 (+0)
Total Subscribers: 99 (+0)

Issue Activity (beta)

Open issues: 259
New in 7 days: 11
Closed in 7 days: 0
Avg open age: 215 days
Stale 30+ days: 163
Stale 90+ days: 123

Recent activity

Opened in 7 days: 11
Closed in 7 days: 0
Comments in 7 days: 10
Events in 7 days: 20

Top labels

  • bug (396)
  • enhancement (256)
  • ready for work (192)
  • P2 (150)
  • P3 (93)
  • v2 (87)
  • fix proposed (85)
  • needs decision (72)

Repository Insights (GitGenius)

Median issue/PR response: 0.0 hours
Mean response time: 4.5 days
90th percentile: 2.0 days
Tracked items: 826

Most active contributors

Detailed Description

The Model Context Protocol TypeScript SDK is the official implementation of the MCP specification, enabling applications to provide standardized context to language models. The repository is currently in a significant transition phase, with the main branch hosting v2 of the SDK, which implements the 2026-07-28 MCP specification and remains in beta. The v2 packages, published as @modelcontextprotocol/server and @modelcontextprotocol/client, are expected to reach stable release on July 28, 2026, while v1.x continues to receive bug fixes and security updates for at least six months after v2 ships. This dual-version approach reflects the project's commitment to stability during a major specification update.

The SDK is structured as a monorepo that publishes split packages for building both MCP servers and clients. The server package provides libraries for implementing tools, resources, and prompts, along with support for multiple transport mechanisms including Streamable HTTP, stdio, and authentication helpers. The client package supplies transports, high-level helpers, and OAuth utilities for connecting to MCP servers. Both packages support flexible schema validation through Standard Schema, allowing developers to bring their own validation library such as Zod v4, Valibot, or ArkType.

Beyond the core packages, the SDK includes optional middleware packages designed as thin adapters for specific runtimes and frameworks. These middleware packages—@modelcontextprotocol/node for Node.js HTTP, @modelcontextprotocol/express for Express integration, and @modelcontextprotocol/hono for Hono support—are intentionally minimal and avoid introducing new MCP functionality or business logic. This design philosophy keeps the middleware focused on wiring MCP into existing frameworks rather than extending the protocol itself.

The repository runs on Node.js, Bun, and Deno, providing broad runtime compatibility for developers building MCP applications. The project includes comprehensive documentation with step-by-step tutorials for building both servers and clients, along with runnable end-to-end examples demonstrating real-world usage patterns. The documentation site at ts.sdk.modelcontextprotocol.io/v2/ covers tools, resources, prompts, HTTP and stdio serving, client implementation, OAuth integration, and migration guidance.

Currently, the project is managing pull requests conservatively during the v2 specification implementation phase, limiting new contributors to one pull request each while the team stabilizes the 2026-07-28 spec. The maintainers actively encourage feedback through GitHub issues, which they identify as the most useful form of contribution at this stage. The codebase is licensed under Apache License 2.0 for new contributions, with existing code remaining under MIT, providing clarity on licensing terms for both legacy and new code.

typescript-sdk
by
modelcontextprotocolmodelcontextprotocol/typescript-sdk

Repository Details

Fetching additional details & charts...