TypeScript MCP server frameworks for production

Covers FrontMCP 1.11.0 as of

Choose a TypeScript MCP server framework by the work your application needs: authenticated tools, shared services, client compatibility, tests and deployment. FrontMCP fits servers that need those concerns in one application structure. The official SDK fits teams that want to assemble them themselves. Other frameworks make different choices about tool registration, UI and hosting.

This comparison is published by FrontMCP's maintainers. It covers eight options, including the official SDK, and links to each project's own sources. The versions and check dates identify what was examined; a newer release can change a result. How this was checked separates documentation review and simple protocol probes from production testing. For a shorter overview that also covers Vercel's mcp-handler, read The Best TypeScript MCP Server Frameworks in 2026.

Start with the server you need

Your application needsOptions to evaluateCheck before choosing
Shared services, authenticated tools and background work in a modular serverFrontMCPNode 24 for local development, Zod schemas and the production evaluation. Your application still enforces record access.
A small tool server or an MCP route inside an existing backendOfficial TypeScript SDKHow much auth, lifecycle and test wiring your existing application already supplies.
React views in an MCP App, with a development inspectormcp-use, xmcp, or FrontMCP's UIThe actual client host, authentication flow and widget behavior; a browser preview alone is insufficient.
File-based tool discovery and integration with a web applicationxmcpThe adapter for your web framework and its deployment constraints.
A small stateless server on an edge runtimeViteMCP or the official SDKRuntime dependencies, persistence and protocol behavior. Compare FrontMCP's Worker target if you also need its application structure.
Server composition, middleware and a general-purpose clientPrefect's FastMCP TypeScriptThe selected protocol era, auth configuration and where session state lives.
An existing application using a session-based frameworkFastMCP by punkpeye or mcp-frameworkThe checked releases do not serve MCP 2026-07-28. Verify your clients' requirements before keeping or replacing them.

These are starting points, not a numerical ranking. The detailed table below records capabilities and their sources. Hosting-specific adapters and Python frameworks are outside this comparison.

What to verify for production

A working add tool establishes little about a production service. Exercise missing and expired credentials, direct calls to restricted tools, two tenants' records, timeouts, client cancellation and your actual deployment target. Keep the same application contract and workload when comparing implementations. The FrontMCP evaluation guide collects reproducible fixtures, their limits and the checks your deployment still needs.

FrontMCP 1.11.0 serves MCP 2026-07-28 and four earlier revisions over Streamable HTTP and stdio. It uses the official SDK v1 internally and implements the newer revision itself: the dependency's major version does not describe the server's protocol support. Read the protocol behavior and caveats, including the different revision used by frontmcp test.

FrontMCP requires Node 24 for local development and Zod for its schemas. The official SDK comparison explains when fewer dependencies, another schema library or a general-purpose client matter more than shared framework conventions. Dependency counts measure an installed tree; they do not measure startup time, memory or throughput.

Which one fits

The official MCP TypeScript SDK

When you want the reference implementation and the fewest dependencies, build a client, a host or a gateway, or serve MCP as one route of an Express, Hono or Fastify app.

  • protocol
  • v2
  • client

FastMCP for TypeScript

When you want one file and no build step, any Standard Schema library and OAuth presets for Google, GitHub or Azure, and your clients speak MCP 2025-11-25 or earlier.

  • one file
  • Standard Schema
  • OAuth proxy

ViteMCP

When you want FastMCP's API on MCP 2026-07-28, for stateless servers on Node, Cloudflare Workers or Deno Deploy. Its first npm release was in August 2026; evaluate its maintenance history and your runtime constraints.

  • FastMCP successor
  • stateless
  • 2026-07-28

Prefect's FastMCP TypeScript

When you want the Python FastMCP's model in TypeScript: both protocol eras over HTTP and stdio, a client, middleware, composition and UI from a component library.

  • Python FastMCP
  • SDK v2
  • client
  • composition

mcp-framework

When you want a class per tool found in a folder and generators for each kind of component, for clients on 2025-11-25 or earlier. Its last release was in April 2026.

  • tool classes
  • generators
  • Zod 3

mcp-use

When you build an MCP App with React views for ChatGPT or Claude, and want an inspector, a client and an agent from the same company.

  • MCP Apps
  • views
  • client
  • agent

xmcp

When you like a file per tool, your server lives in a Next.js or other web app, or you deploy to Vercel without configuration.

  • file-based routing
  • adapters
  • Vercel

At a glance

Four criteria from the full comparison, shortened; each fact links to its source there. The other libraries' documentation was checked on 2026-10-10, or on 2026-10-20 for FastMCP, ViteMCP and FastMCP TypeScript, and their MCP 2026-07-28 column is what each server answered on 2026-10-20. FrontMCP 1.11.0 was re-checked in the source on 2026-11-03.

LibraryMCP 2026-07-28AuthenticationTesting toolsRuntimes and deployment
FrontMCP 1.11.0Yes: HTTP and stdioStatic keys, JWTs from your identity provider, or FrontMCP as the OAuth server@frontmcp/testing, run by frontmcp testNode 24+; builds for Node, Vercel, AWS Lambda, Cloudflare Workers and a browser module
Official SDK 2.3.1Yes: HTTP and stdio, through createMcpHandler() and serveStdio()OAuth resource server, with a verifier you writeAn in-process clientNode 20+, Bun, Deno, Cloudflare Workers
FastMCP 4.23.4NoAn authenticate() hook; an OAuth proxyInMemoryTransport; fastmcp dev and inspectNode, Bun; Cloudflare Workers and Deno Deploy with EdgeFastMCP
ViteMCP 1.9.5Yes: HTTP and stdioAn authenticate() hook; an OAuth proxyInMemoryTransport; vitemcp dev and inspectNode 24+; Cloudflare Workers and Deno Deploy with EdgeViteMCP
FastMCP TypeScript 1.7.3Yes: HTTP and stdioJWT, introspection and static-token verifiers; an OAuth server and proxy from the frozen server-legacy packageAn in-process client; fastmcp call, list and inspectNode 22+; server.fetch() for a web-standard Request
mcp-framework 0.2.22NoAPI key, JWT, OAuth resource serverThe MCP InspectorNode 18.19+; AWS Lambda; Cloudflare Workers and Vercel Edge through handleRequest()
mcp-use 2.8.2Yes: HTTP; no stdio serverOAuth resource server; no authorization server or proxyA built-in inspector and a CLI clientNode 22.22.2+; fetch and Node handlers, Next.js, Docker, Manufact hosting
xmcp 1.7.1Yes: HTTP and stdioAPI key and JWT; OAuth through pluginsNot documentedNode 22+; Vercel, Cloudflare Workers

"Not documented" means the library's own sources don't mention it, not that it can't be done.

The full comparison: every fact, with its sourceShowHide

The libraries

LibrarynpmMade byBuilt onChecked
FrontMCP@frontmcp/sdkAgentFrontOfficial SDK v1 (1.32.1), with its own 2026-07-28 implementation1.11.0, checked 2026-11-03
Official MCP TypeScript SDK@modelcontextprotocol/server, @modelcontextprotocol/clientThe Model Context Protocol projectIts own core package2.3.1, published 2026-10-05
FastMCP for TypeScriptfastmcpFrank Fiegel (punkpeye)Official SDK v14.23.4, published 2026-10-20
ViteMCP@vitemcp/serverFrank Fiegel (punkpeye)Official SDK v21.9.5, published 2026-10-17
FastMCP TypeScript@prefecthq/fastmcp-tsPrefectOfficial SDK v21.7.3, published 2026-10-01
mcp-frameworkmcp-frameworkAlex Andru (QuantGeekDev)Official SDK v10.2.22, published 2026-04-16
mcp-usemcp-usemcp-use, Inc. (Manufact)Official SDK v22.8.2, published 2026-10-09
xmcpxmcpbasement.studioOfficial SDK v2, bundled1.7.1, published 2026-10-09

Three names are close. FastMCP here is punkpeye's TypeScript framework, fastmcp, which serves MCP 2025-11-25 and earlier. ViteMCP is its author's successor for 2026-07-28, and carries its history. FastMCP TypeScript is Prefect's @prefecthq/fastmcp-ts, the TypeScript counterpart of the Python FastMCP, and a different project from both. Python libraries aren't compared on this page.

Compared on the same criteria

Every fact about another library comes from that library's own documentation, repository, changelog or npm entry, checked on 2026-10-10, or on 2026-10-20 for FastMCP, ViteMCP and FastMCP TypeScript, against the version named, and links to it. The protocol check was run again for every library on 2026-10-20. Every FrontMCP fact links to the page on this site that shows FrontMCP 1.11.0 doing it. Where a library's own sources don't mention something, the table says "not documented", which doesn't mean the library can't do it.

Each cell says what the library does and links to where its own sources say so.

FrontMCP 1.11.0Official SDK 2.3.1FastMCP 4.23.4ViteMCP 1.9.5FastMCP TypeScript 1.7.3mcp-framework 0.2.22mcp-use 2.8.2xmcp 1.7.1
MCP revisions served2024-11-05 to 2026-07-28 (Error codes)2024-11-05 to 2026-07-28 through createMcpHandler() and serveStdio(); 2026-07-28 is opt-in (Protocol versions)2024-11-05 to 2025-11-25; the README says it doesn't support 2026-07-28 (README)2024-11-05 to 2026-07-28 in our run; the README says 2026-07-28 only (README)2024-11-05 to 2026-07-28 (Protocol eras)2024-11-05 to 2025-11-25 (Introduction)2024-11-05 to 2026-07-28 (Server overview)2024-11-05 to 2026-07-28 (Transports)
MCP 2026-07-28, in our checksServed over Streamable HTTP, stdio and createFetchHandler(), next to the four older revisions, with no setting; McpStatelessClient is FrontMCP's own 2026-07-28 client (How this was checked, Protocol versions)Served over HTTP and stdio by createMcpHandler() and serveStdio(); not by a transport wired by hand (How it was checked)Not served: 400 over HTTP, -32601 over stdioServed over HTTP and stdioServed over HTTP and stdio, next to the four older revisions, with no setting; its CLI's client asks for 2026-07-28 first (How it was checked)Not served: 400 over HTTP, -32601 over stdioServed over HTTP; no stdio serverServed over HTTP and stdio
Sessions for clients on 2025-11-25 and earlier, over HTTPYes, which Redis can share between instances (Redis)None from createMcpHandler(); a session from a transport wired by hand (HTTP)Yes; none in stateless mode (Stateless mode)None, in our runYes, in the instance's memory; none in stateless mode (Stateless mode)Yes, in the process (issue #187)None (Migration)None (Transports)
Declaring a toolA @Tool class, or the tool() function (@Tool)server.registerTool() in a factory function (Tools)server.addTool({ … }) (Tools)server.addTool({ … }) (Tools)server.tool({ … }, handler) (Tools)A class extending MCPTool, one per file, found in a folder (Tools)server.tool({ … }, handler) (Tools)A file per tool, found in a folder (Tools)
Schema libraryZod 4, for every schema: tools' input and output, which become the JSON Schema clients see, and jobs, agents, elicitation forms and config (Schemas Are Contracts, @Tool, this.elicit)Standard Schema: Zod 4, ArkType, Valibot; JSON Schema (Schema libraries)Standard Schema: Zod, ArkType, Valibot; JSON Schema through an adapter (Tools)Standard Schema: Zod, ArkType, Valibot; JSON Schema through an adapter (Tools)Standard Schema: Zod, Valibot, ArkType (Schemas)Zod 3 (package.json)Standard Schema: Zod 4, ArkType, Valibot (Server overview)Zod (Tools)
Dependency injection or shared services@Provider services, read with this.get() (@Provider)Not documented; module-scope objects in the factory (HTTP)Not documented; a per-call context with the session (Sessions)Not documented; a per-request context with auth (Migrating)Not documented; an ambient context and middleware (Context)Not documentedNot documented; a request context and middleware (Middleware)Not documented; a request context and middleware (Request context)
Authentication and authorizationPublic, static keys, JWTs from your identity provider, or FrontMCP as the OAuth server, with its own sign-in page or an upstream provider's; per-entry rules (Auth modes, Authorities)OAuth resource server with a verifier you write, and scope checks per tool; the authorization-server helpers are frozen in server-legacy (Authorization)An authenticate() hook; an OAuth proxy with Google, GitHub and Azure presets; canAccess per tool (Authentication)An authenticate() hook; an OAuth proxy with Google, GitHub and Azure presets; canAccess per tool (Authentication)JWT, introspection and static-token verifiers; an OAuth server and proxy from the frozen server-legacy package; per-component checks (Auth, OAuth)API key, JWT, and an OAuth resource server (Authentication)OAuth resource server with eight provider presets; no authorization server or proxy (Authentication)API key and JWT middleware; OAuth through plugins for Auth0, Clerk, WorkOS, Better Auth and others (Authentication)
Testing tools@frontmcp/testing with MCP matchers, run by frontmcp test (Testing)An in-process client against the HTTP handler (Testing)InMemoryTransport, fastmcp dev and fastmcp inspect (Unit testing)InMemoryTransport, vitemcp dev and vitemcp inspect (Unit testing)An in-process client; fastmcp call, list and inspect (Transports)The MCP Inspector (Debugging)A built-in inspector and a CLI client (CLI reference)Not documented
Resources, prompts, completions, elicitationAll four (@Resource, @Prompt, completers, this.elicit)All four (Completion, Elicitation)All four (completion, Elicitation)All four; elicitation as a returned inputRequired() (Multi round-trip requests)All four, on both eras (Context)Resources, prompts, elicitation; completion only in the changelog (Elicitation)All four (Prompts, Elicitation)All four (Resources, Tools)
Agents, jobs or workflows@Agent, @Job, @Workflow (@Agent, @Job, @Workflow)Not documentedNot documentedNot documentedNot documented; MCP tasks are planned (Tasks)Not documented; experimental MCP tasks (Advanced features)A client-side agent in @mcp-use/agent (Agent); server-side not documentedNot documented
Widgets (MCP Apps UI)A tool's ui option, for MCP Apps hosts and the OpenAI Apps SDK (Tool UI)A separate official package, @modelcontextprotocol/ext-apps (ext-apps)Not documentedNot documentedFastMCPApp: a server-side component library and generative UI (Apps)MCPApp classes, with React scaffolding (MCP Apps)React views bound to tools, with ChatGPT extensions (MCP Apps)Tools written as React components or HTML (MCP Apps)
TransportsStreamable HTTP with or without sessions, the older HTTP+SSE, stdio, a Unix socket, in-memory (FrontMcpInstance)Streamable HTTP, stdio; HTTP+SSE only in the deprecated server-legacy (Legacy clients)Streamable HTTP with an SSE endpoint, a stateless mode, stdio (HTTP Streaming)Streamable HTTP, stateless; stdio (HTTP Streaming)Streamable HTTP, with sessions or stateless; stdio (Running)stdio; HTTP Stream, which the README calls experimental; SSE, deprecated (Transports)Streamable HTTP, stateless; stdio isn't served (Migration)Streamable HTTP, stateless; stdio (Transports)
Runtimes and deploymentNode 24+; builds for Node, Vercel, AWS Lambda, Cloudflare Workers and a browser module (Production build); a fetch handler (createFetchHandler())Node 20+, Bun, Deno, Cloudflare Workers; Express, Hono and Fastify adapters (Web-standard runtimes)Node, Bun; Cloudflare Workers and Deno Deploy with EdgeFastMCP (Edge Runtime Support)Node 24+; Cloudflare Workers and Deno Deploy with EdgeViteMCP (Edge Runtime Support)Node 22+; server.fetch() for a web-standard Request (Installation, fetch())Node 18.19+; AWS Lambda, and Cloudflare Workers and Vercel Edge through handleRequest() (Serverless)Node 22.22.2+; fetch and Node handlers, Next.js, Docker, Manufact hosting (Self-hosted)Node 22+; Vercel, Cloudflare Workers; adapters for ten web frameworks (Vercel, Next.js)
CLI and scaffoldingfrontmcp create, dev, build, test, inspector, registry; an Nx plugin (CLI)No project CLI; a v1-to-v2 codemod (Packages)fastmcp dev, inspect, validate; no project generator (Running Your Server)vitemcp dev, inspect, validate; no project generator (Testing and Debugging)fastmcp run, inspect, call, list, install, discover; no project generator (CLI)mcp create, mcp add, mcp build, mcp validate (README)create-mcp-use-app; mcp-use dev, build, start, deploy (CLI reference)create-xmcp-app; xmcp dev, build, create (Installation)
LicenseApache-2.0 (LICENSE)Apache-2.0 since 2.3.0; v1 is MIT (LICENSE)MIT (LICENSE)MIT (LICENSE)Apache-2.0 in package.json; no LICENSE file (package.json)MIT (LICENSE)MIT (LICENSE)MIT (license)
Version checked, date1.11.0, 2026-11-032.3.1, 2026-10-104.23.4, 2026-10-201.9.5, 2026-10-201.7.3, 2026-10-200.2.22, 2026-10-102.8.2, 2026-10-101.7.1, 2026-10-10

Popularity and age

On 2026-10-20, from the GitHub API, npm's download counts for 2026-10-12 to 2026-10-18, and each package's first publish date on npm:

GitHub starsnpm downloads that weekFirst published
FrontMCP14615,574 (@frontmcp/sdk)2025-11-05
Official SDK13,6188,202,973 (@modelcontextprotocol/server); 39,432,481 (v1, @modelcontextprotocol/sdk)v1 2024-11-11; v2 2026-04-01
FastMCP3,275351,155 (fastmcp)2024-12-23
ViteMCP16509 (@vitemcp/server)2026-08-06
FastMCP TypeScript789,609 (@prefecthq/fastmcp-ts)2026-04-23
mcp-framework93134,226 (mcp-framework)2024-12-08
mcp-use10,789 (with the Python SDK)21,761 (mcp-use)2025-04-20
xmcp1,3427,528 (xmcp)2025-05-17

These are dated activity signals, not counts of production users. Downloads include repeat installations and automated builds; stars do not verify reliability. FrontMCP had fewer stars than every library here except ViteMCP and FastMCP TypeScript. Weekly downloads move a lot: in the week of 2026-10-02 to 2026-10-08, npm counted 8,479 for @frontmcp/sdk, 17,014 for xmcp and 709,121 for fastmcp. Assess maintenance through issue responses, actual breaking changes and your own upgrade checks, rather than treating release frequency as API churn.

How this was checked

On 2026-10-10 for the official SDK, mcp-framework, mcp-use and xmcp, and on 2026-10-20 for FastMCP 4.23.4, ViteMCP and FastMCP TypeScript, we:

  1. Read its own sources: its documentation site, README, repository at the release tag, changelog and npm entry. Nothing came from third-party articles or comparisons. Where those sources don't mention a feature, the table says "not documented".
  2. Ran its hello world. We installed the current version in an empty project, with Node 24.18.1 and npm 11.16.0, followed its documented quickstart, made it serve one tool, add, and called it with { "a": 2, "b": 3 }. The code each page shows for that library is the code we ran. Where something didn't work as documented, the page says what happened.
  3. Asked the running server which MCP revisions it serves. A small client sent initialize with each of 2024-11-05, 2025-03-26, 2025-06-18 and 2025-11-25 and called add on the session, then sent the 2026-07-28 requests, which have no initialize: server/discover and tools/call, with the MCP-Protocol-Version: 2026-07-28 header and the revision in _meta. We sent them over HTTP and, where the library serves it, over stdio, and noted whether an older revision got an Mcp-Session-Id. On 2026-10-20 we sent them again to every library at the version in the table, and to mcp-use 2.11.0 and xmcp 1.7.2, the latest that day, which answered as 2.8.2 and 1.7.1 did. The two rows on MCP 2026-07-28 and on sessions are what the servers answered.
  4. Counted popularity from the GitHub API and npm's download API, on 2026-10-20. The recommendations at the top are editorial judgments based on those observations. We do not assign an overall score. More built-in components can reduce application wiring but can also introduce conventions or dependencies you do not need. "Not documented" is a gap in the sources reviewed, not proof that a feature is impossible.

FrontMCP serves all five revisions over Streamable HTTP and stdio. On stdio, server/discover lists the five revisions and a 2026-07-28 tools/call returns resultType and the server's info in _meta. An initialize connection still serves the older revisions and can also answer an explicitly versioned 2026-07-28 request. Protocol versions describes the routing.

For 1.11.0, we re-checked the protocol dependency and transport handlers in the source on 2026-11-03. MCP 2026-07-28 requests that fail their handler's request schema now get -32602 before the handler runs (request validation, #966). A stateless Worker rejects standalone GET streams with 405; streamed POST replies to older clients release their server when the body ends or the client cancels it (Workers, #963). Legacy HTTP+SSE message posts still accept any Accept value (client compatibility). The internal protocol client has its own subpath, and the protocol dependency remains the official SDK v1, pinned to 1.32.1. Changed in 1.10.5: before, server/discover over stdio got -32601 and a 2026-07-28 tool call was answered as an older revision.

Loopback servers now check Origin by default, Unix sockets use owner-only permissions, and stdio shutdown disposes scopes (transport safety, stdio, #984). Provider names can be omitted, hook parameters are checked against their flow, Finally runs after any stage outcome, and object-union output schemas are advertised (providers, hooks, output policy). Skills use a compact instruction line and omit numeric resource priority by default (skills).

FrontMCP's side of each comparison is a Playground: the same add tool, with tests that this site runs on every build. There are no performance numbers on these pages; measuring them fairly needs a harness of its own.

Common questions

Which TypeScript MCP frameworks support MCP 2026-07-28?

In our protocol checks on 2026-10-20, the official SDK (through createMcpHandler() and serveStdio()), ViteMCP, Prefect's FastMCP TypeScript and xmcp served MCP 2026-07-28 over HTTP and stdio, and mcp-use served it over HTTP; FastMCP 4.23.4 and mcp-framework 0.2.22 didn't, answering 400 over HTTP and -32601 over stdio. FrontMCP 1.11.0, re-checked in the source on 2026-11-03, serves it over HTTP and stdio next to the four older revisions. The SDK a framework depends on doesn't settle it: FrontMCP does this on the official SDK v1, with its own implementation of that revision (Protocol versions).

How does FrontMCP differ from the official TypeScript SDK?

The official SDK is the MCP project's own implementation of the protocol: server and client libraries you write a server around, with Standard Schema libraries such as Zod, ArkType and Valibot, Node 20 or later, and adapters for Express, Hono and Fastify. FrontMCP is a framework built on the SDK's v1 protocol layer that implements MCP 2026-07-28 itself and adds apps, shared services, auth modes up to its own OAuth server, agents, jobs, widgets, a test library and builds for several platforms. FrontMCP vs the official MCP TypeScript SDK shows the same server written with each, and when the SDK alone is the better choice.

Is there a FastMCP alternative for TypeScript?

Three TypeScript libraries share FastMCP's name or API. FastMCP for TypeScript, punkpeye's fastmcp, serves MCP 2025-11-25 and earlier; ViteMCP, by the same author, continues its API on 2026-07-28 for stateless servers; and Prefect's @prefecthq/fastmcp-ts is the TypeScript counterpart of the Python FastMCP, serving both protocol eras. Each has a page comparing it with FrontMCP (FastMCP, ViteMCP, FastMCP TypeScript), and Migrating from FastMCP for TypeScript moves a fastmcp server to FrontMCP one client contract at a time.

Which TypeScript MCP frameworks support OAuth?

FrontMCP can be the OAuth server itself, with its own sign-in page or an upstream provider's, or verify the JWTs your identity provider issues. The official SDK, mcp-framework and mcp-use document an OAuth resource server, FastMCP and ViteMCP an OAuth proxy with Google, GitHub and Azure presets, FastMCP TypeScript an OAuth server and proxy from the official SDK's frozen server-legacy package, and xmcp OAuth through plugins. The full table links each library's authentication docs, and Authenticating Clients maps FrontMCP's modes to the MCP authorization specification.

Which TypeScript MCP frameworks run on Cloudflare Workers?

The official SDK, FastMCP (with EdgeFastMCP), ViteMCP (with EdgeViteMCP), mcp-framework (through handleRequest()) and xmcp document Cloudflare Workers, and FrontMCP builds a Worker with frontmcp build --target cloudflare. A FrontMCP Worker keeps no sessions and can't reach Redis over TCP, so it serves MCP 2026-07-28 clients fully and older clients one request at a time (Cloudflare Workers).

On 2026-10-20, FrontMCP had 146 GitHub stars and 15,574 npm downloads of @frontmcp/sdk in the week of 2026-10-12 to 2026-10-18, fewer stars than every library here except ViteMCP and FastMCP TypeScript. The official SDK had the most stars and downloads. These are activity signals, not counts of production users; Popularity and age lists every library's numbers.

Report a docs issue · Report a security concern privately