MCPAgenticFrameworks

MCP TypeScript SDK

by Model Context Protocol

IntermediateDocumentationFree

The official TypeScript SDK for MCP servers and clients.

Start LearningReviewed July 4, 2026

Overview

The official TypeScript SDK implements the MCP specification and runs on Node.js, Bun, and Deno. It ships MCP server libraries (tools, resources, and prompts, plus Streamable HTTP and stdio transports and auth helpers) and MCP client libraries (transports, high-level helpers, and OAuth helpers). It offers split packages for separate server and client development, optional middleware adapters for frameworks like Express and Hono, and uses Standard Schema for tool and prompt validation with support for multiple schema libraries (Zod, Valibot, ArkType). The repository's v2 (beta) line implements the newer spec while v1.x remains the production-supported release.

At a Glance

Topic
MCP
Level
Intermediate
Format
Documentation
Cost
Free
Provider
Model Context Protocol
Hands-on
Yes — code/exercises
Certificate
None

What You’ll Learn

  • Building MCP servers in TypeScript with tools, resources, and prompts
  • Using Streamable HTTP and stdio transports
  • Adding OAuth authentication with the SDK's helpers
  • Validating tools/prompts with Zod, Valibot, or ArkType

Highlights

  • Runs on Node.js, Bun, and Deno
  • Express/Hono middleware adapters
  • Split server/client packages and OAuth support

Who It’s For

Best For

  • JavaScript/TypeScript engineers building MCP servers
  • Web teams adding MCP to Node/edge services

Prerequisites

  • Intermediate TypeScript and Node.js
  • Basic understanding of MCP tools/resources

FAQ

What is MCP TypeScript SDK?

The official TypeScript implementation of the Model Context Protocol, running on Node.js, Bun, and Deno. For JS/TS developers building MCP servers or clients with tools, resources, prompts, and OAuth.

Is MCP TypeScript SDK free?

MCP TypeScript SDK is free to access.

What level is MCP TypeScript SDK for?

MCP TypeScript SDK is aimed at a intermediate audience. Recommended background: Intermediate TypeScript and Node.js, Basic understanding of MCP tools/resources.

What will I learn from MCP TypeScript SDK?

You'll learn: Building MCP servers in TypeScript with tools, resources, and prompts; Using Streamable HTTP and stdio transports; Adding OAuth authentication with the SDK's helpers; Validating tools/prompts with Zod, Valibot, or ArkType.

Topics

MCPTypeScriptSDKNode.jsOAuthservers