# MCP TypeScript SDK: 8.7 out of 10

A strong pick. 1st of 9 in [MCP server frameworks](https://elestia.ai/opensource/mcp/index.md).

The official TypeScript SDK for the Model Context Protocol. It builds both servers and clients, and most other TypeScript MCP frameworks are built on it. Version 2 is now stable (v2.4.0) and split into packages such as @modelcontextprotocol/server. It is the default choice for a new MCP server, though it takes more code than the frameworks built on it and has had a run of security fixes in 2026.

**Best for:** Teams that want full, first-to-market coverage of the MCP spec and direct control over transports, sessions and auth, on Node.js, Bun, Deno or edge runtimes.

## Scores

- **Overall: 8.7** (likely 7.6 to 9.4)
  - Claude Opus 5.5 (8.5): It is the default MCP server library for TypeScript: official, the most complete, actively maintained, and the base the peers build on. It is held back by boilerplate, the v1-to-v2 migration churn and a 2026 run of security advisories. Teams that want less code may prefer FastMCP or xmcp, but those tools sit on top of this SDK.
  - GPT-6.2 Sol (8.8): The official SDK is the strongest general-purpose pick among these peers for a new project that needs current MCP support, both local and hosted transports, and control over server behavior. MCP Handler offers a quicker fit for a Next.js route, and mcp-use offers more for React-based MCP Apps. HTTP security setup and a short v2 production Track record temper the recommendation.
- **Needed by many: 4.7** (likely 3.7 to 6.1)
  - Claude Opus 5.5 (5.0): Building MCP servers is a fast-growing but still specialised job, not something most JS developers do in most projects. The SDK also builds clients and runs on many runtimes, so it covers the whole category rather than one framework. How fast agent tooling spreads keeps the range wide.
  - GPT-6.2 Sol (4.4): Building MCP servers is a distinct job within JavaScript and TypeScript, with uses in developer tools, internal integrations, and customer-facing services. The SDK covers local and hosted servers across several runtimes. JetBrains found that 18% of surveyed organizations use an MCP server provided by their CI/CD tool, and the share of JavaScript teams building their own servers is less directly measured.
- **Helps a lot: 8.1** (likely 7.1 to 9.1)
  - Claude Opus 5.5 (7.5): It is the most complete implementation of the spec, with current protocol support, Standard Schema tool schemas, framework adapters and good types. Its limits are boilerplate, manual auth and HTTP setup, and security defaults that needed several rounds of fixes. Higher-level peers are nicer to write but sit on top of this SDK.
  - GPT-6.2 Sol (8.7): Version 2.4.0 has typed tool registration, structured results, clear protocol and SDK errors, and documented entry points for both current and older clients. Versioned examples help coding agents choose the right API across the package split. FastMCP supplies more development tooling, and mcp-use offers a more integrated React workflow for MCP Apps. The available benchmarks cover v1 or an early v2 build, so current performance rankings remain uncertain.
- **Holds up over time: 8.5** (likely 7.4 to 9.5)
  - Claude Opus 5.5 (8.5): It is the official Tier 1 SDK of the protocol, with a named lead, 446 commits, 134 releases and 196 contributors. v1 is promised at least six months of fixes after v2. The v1-to-v2 break and the large PR backlog keep it from the top.
  - GPT-6.2 Sol (8.5): The repository recorded 446 commits in a year, tests conformance against two protocol revisions, and continues to patch v1 during the v2 transition. The Linux Foundation hosts MCP through the Agentic AI Foundation, and Anthropic has committed to maintaining core infrastructure. A substantial backlog, unclear release approval coverage, and the work reported by teams migrating existing servers keep the range wide.
- **Used widely: 8.2** (likely 6.9 to 9.2)
  - Claude Opus 5.5 (9.5): 357M downloads in 4 weeks against 32M a year before is a ratio of about 11, far above the 4.1 median. Much of that is transitive, because most peers and many AI tools install it. Even after that correction it is the most-chosen MCP library by far, with 13.8k stars. The v2 split means these numbers leave out the new packages.
  - GPT-6.2 Sol (6.8): The v1 package reached 357 million installs in four weeks, up 11.1× year over year against the 4.1× baseline. The repository leads the listed peers in stars and Bluesky links, and a separate October snapshot shows substantial installs of the v2 server package. Automated builds, v1 client installs, and dependencies pulled in by frameworks inflate those totals. With no comparable dependent count in the bundle, the number of projects choosing the server SDK directly remains uncertain.
- **Vouched for: 8.5** (likely 7.4 to 9.4)
  - Claude Opus 5.5 (8.5): Vercel's MCP support, Cloudflare, xmcp and FastMCP all build on it, and independent guides call it the required foundation. These are current backers with something at stake, but there is no developer-survey data for this category yet.
  - GPT-6.2 Sol (8.5): Cloudflare Agents and Vercel MCP Handler integrate SDK v2, and Mapbox moved its own MCP server to 2.4.0. These are current integrations with concrete compatibility and maintenance costs. Developer satisfaction with the current server package remains unmeasured in the sources reviewed.
- **Safe: 6.5** (likely 5.2 to 7.9)
  - Claude Opus 5.5 (6.0): Nine advisories in 24 months, several high: cross-session leaks, memory exhaustion from requests, and missing checks on the token audience. Fixes shipped quickly, but some protect you only after code changes, and v2 brought back a leak that v1 had fixed. It pulls in 17 dependencies and has no Scorecard. The npm licence is MIT.
  - GPT-6.2 Sol (7.0): The v2 server package declares the permissive Apache-2.0 license and two direct dependencies, and its release workflow uses npm trusted publishing with provenance. Maintainers shipped fixes for the recent HTTP request and validation advisories before public disclosure. Token audience checks and tool input limits still depend on server configuration. The missing OpenSSF Scorecard and unclear release approval coverage leave some supply-chain uncertainty.

## Good

- It is the reference implementation, so new spec revisions and features such as Streamable HTTP, tasks and Skills over MCP land here first.
- It is the foundation that FastMCP, xmcp, mcp-handler, Vercel and Cloudflare build on, so skills carry over to those tools.
- v2 accepts tool schemas through Standard Schema (Zod v4, Valibot, ArkType) and ships adapters for Express, Hono and Fastify.
- It is a Tier 1 official SDK with a named lead, very frequent releases and a codemod for the v1-to-v2 migration.

## Bad

- It is verbose: HTTP setup, auth and testing are manual compared with FastMCP or xmcp.
- Nine advisories in 24 months, several rated high. Some fixes only protect you after code changes, such as setting the token audience or size limits.
- The v2 package split, the API renames and the ESM-only build make upgrading from v1 a breaking change for existing code.
- The PR backlog is large (394 open PRs, 306 open issues).

## The numbers

- Downloads, 4 weeks: 357M
- In a year: ×11
- GitHub stars: 14k
- Commits, 12 months: 446
- Last npm release: Oct 2026
- Advisories, 24 months: 9
- Licence: MIT
- GitHub: https://github.com/modelcontextprotocol/typescript-sdk
- npm: https://www.npmjs.com/package/@modelcontextprotocol/sdk

The official SDK of the Model Context Protocol. It builds clients too. The numbers are of the version 1 package, @modelcontextprotocol/sdk. Version 2 splits it into packages, such as @modelcontextprotocol/server.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
