Skip to content
Sign in
  • Browse all toolsFilter by category and pricing
  • Browse categoriesWriting, code, image, audio and more
  • Compare toolsPut up to three side by side
  • Read the blogGuides and comparisons

typescript-sdk

Official TypeScript SDK for building Model Context Protocol servers and clients.

typescript-sdk is a TypeScript SDK for building Model Context Protocol servers and clients. typescript-sdk provides tools, resources, prompts, transports, and authentication helpers for developers connecting applications to LLM context. typescript-sdk is available as an open-source project through its public repository and installable packages.

Updated 9 Nov 20266 sections

typescript-sdk website screenshot

What is typescript-sdk?

typescript-sdk is the official open-source TypeScript SDK for Model Context Protocol servers and clients. The project implements the MCP specification, which standardizes how applications provide context for large language models. typescript-sdk serves developers building the context-providing and context-consuming parts of an MCP application, rather than providing a standalone chat interface.

typescript-sdk runs on Node.js, Bun, and Deno. The repository publishes separate server and client packages, optional middleware packages, and runnable examples. The main branch contains the stable v2 release line, while the legacy v1.x generation has a separate branch and documentation.

What typescript-sdk can do

typescript-sdk provides libraries for both sides of an MCP connection. Server capabilities cover exposing context and callable functionality, while client capabilities cover transports, high-level helpers, and OAuth helpers. Tool and prompt schemas use Standard Schema, allowing developers to choose Zod v4, Valibot, ArkType, or another compatible schema library.

  • typescript-sdk exposes server tools, resources, and prompts.
  • typescript-sdk supports Streamable HTTP and stdio transports.
  • typescript-sdk includes server authentication helpers and client OAuth helpers.
  • typescript-sdk offers optional middleware for Express, Fastify, Hono, and Node.js HTTP.
  • typescript-sdk includes runnable, self-verifying client/server example pairs.

How typescript-sdk works

typescript-sdk separates installation into @modelcontextprotocol/server for servers and @modelcontextprotocol/client for clients. The repository provides installation commands using npm, Bun, and Deno. Developers can add optional framework middleware separately; these packages are thin adapters for connecting MCP functionality to a supported runtime or web framework.

typescript-sdk demonstrates a minimal server that creates an McpServer, registers a greet tool with a Zod input schema, and connects through StdioServerTransport. The server tutorial develops a weather-alert server, while the client tutorial explains connecting to that server, listing available tools, and calling them.

Who typescript-sdk is for

typescript-sdk is for TypeScript developers implementing MCP servers or clients and developers connecting MCP to supported JavaScript runtimes and web frameworks. The documentation supports both initial implementation and ongoing development through step-by-step tutorials, an API reference, troubleshooting guidance, and migration information for users moving from the earlier SDK generation.

  • typescript-sdk supports building servers that expose tools and contextual resources.
  • typescript-sdk supports building clients that discover and call server tools.
  • typescript-sdk supports integrating MCP with Express, Fastify, Hono, or Node.js HTTP.

typescript-sdk pricing and licensing

typescript-sdk is available as an open-source project through its public GitHub repository and published packages. The repository documents installation rather than a product subscription or paid SDK plan. typescript-sdk licenses new contributions under the Apache License 2.0, with existing code under MIT; the LICENSE file provides the details.

typescript-sdk strengths and limitations

typescript-sdk combines official MCP implementation, runtime support, framework adapters, and runnable examples in the same repository. Separate server and client packages let developers install the relevant component. The documentation covers implementation, transports, OAuth, troubleshooting, and migration, but using the SDK still requires writing application code and working with package installation.

  • typescript-sdk requires developer implementation rather than offering a ready-made end-user application.
  • typescript-sdk middleware does not introduce additional MCP functionality or business logic.
  • typescript-sdk maintains separate packages, branches, and documentation for legacy and current generations.

typescript-sdk FAQ

What is typescript-sdk?

typescript-sdk is the official TypeScript SDK for Model Context Protocol servers and clients. typescript-sdk implements the MCP specification and provides libraries for tools, resources, prompts, transports, authentication helpers, and client connections.

Is typescript-sdk free and open source?

typescript-sdk is available as an open-source project through a public repository and installable packages, with no paid SDK plan stated. typescript-sdk uses the Apache License 2.0 for new contributions, while existing code remains under MIT.

Which runtimes and frameworks does typescript-sdk support?

typescript-sdk runs on Node.js, Bun, and Deno. typescript-sdk also publishes optional middleware packages for Node.js HTTP, Express, Fastify, and Hono; these packages are thin adapters rather than sources of additional MCP functionality.

How do developers install typescript-sdk?

typescript-sdk provides separate @modelcontextprotocol/server and @modelcontextprotocol/client packages, with installation commands for npm, Bun, and Deno. typescript-sdk also offers separately installed middleware packages and tutorials for building a server and a client.

Which schema libraries work with typescript-sdk?

typescript-sdk uses Standard Schema for tool and prompt schemas. typescript-sdk supports Zod v4, Valibot, ArkType, or any compatible library, and the repository's minimal server example defines a tool input schema with Zod.

What can developers build with typescript-sdk?

typescript-sdk supports building MCP servers that expose tools, resources, and prompts, and clients that connect to servers, list tools, and call them. typescript-sdk includes Streamable HTTP and stdio support, plus authentication and OAuth helpers.

From the community

No reviews yet

Be the first to review this tool. What you write helps the next person choose.

More tools like typescript-sdk

mcp-go

www.github.com

An open-source Go SDK for building MCP servers that connect LLM applications to data, tools and prompts.

Free

harness-sdk

www.github.com

Open-source Python and TypeScript SDK for building AI agent harnesses with model portability and execution controls.

Free

FastMCP

www.gofastmcp.com

A Python framework for building MCP servers, clients, and interactive applications.

Freemium

Model Context Protocol Registry provides MCP server listings, a publishing CLI, and an API for MCP clients.

Free