Elestia Open Source Ratings
8.7

MCP TypeScript SDK

A strong pick. 1st of 9 MCP server frameworks.

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.

WebsiteGitHubnpm

Scores

Overall8.7

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 8.5, likely 7.5 to 9.0

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, likely 7.7 to 9.7

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 many4.7

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.5

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, likely 3.3 to 5.7

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 lot8.1

How well does it do the job for those who need it?

Claude Opus 5.5: 7.5, likely 6.5 to 8.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, likely 7.6 to 9.6

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 time8.5

Will it still be a good choice in two years?

Claude Opus 5.5: 8.5, likely 7.5 to 9.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, likely 7.2 to 9.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 widely8.2

How many use it, and is that growing?

Claude Opus 5.5: 9.5, likely 8.5 to 10.0

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.

  • npm downloadsLast4Weeks: 357M, versus 32M a year ago
  • medianDownloadsRatio: Median is 4.1; this project is about 11
  • github stars: 13,794 stars, the most in the category
  • peers: The next peer by downloads, tmcp, has 17.8M

GPT-6.2 Sol: 6.8, likely 5.2 to 8.4

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.

  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: The combined v1 package grew 11.1× against the catalog’s 4.1× baseline.
  • project note, github stars, bluesky posts, dependents, peers: 13,794 stars and 28 Bluesky posts cover both SDK roles. Ecosyste.ms supplies no count.
  • frontmcp.dev/blog/best-typescript-mcp-frameworks: Reports 21.2 million v2 server installs during one October week.
  • github.com/punkpeye/fastmcp/blob/main/package.json: FastMCP pulls in the v1 SDK as a dependency.
Vouched for8.5

Who stands behind it being good?

Claude Opus 5.5: 8.5, likely 7.5 to 9.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, likely 7.3 to 9.3

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.

Safe6.5

How safe is it to depend on?

Claude Opus 5.5: 6.0, likely 4.5 to 7.5

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, likely 5.8 to 8.2

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

npm downloads, 4 weeks
357M ×11 in a year
GitHub stars
14k
Commits, 12 months
446
npm version
1.32.2 Oct 2026
Versions, 12 months
21
Advisories, 24 months
9 of 9 ever
OpenSSF Scorecard
None
Licence
MIT

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.

Read on 21 November 2026 from GitHub (modelcontextprotocol/typescript-sdk), npm (@modelcontextprotocol/sdk), OSV and the OpenSSF Scorecard.

MCP server frameworks

  1. 8.7MCP TypeScript SDK
  2. 7.1Cloudflare Agents SDK
  3. 7.1mcp-use
  4. 7.1xmcp
  5. 7.0MCP Handler
  6. 6.8tmcp
  7. 4.9FastMCP (TypeScript)
  8. 4.0mcp-framework
  9. 3.5mcp-lite
Compare all 9 on six scores