MCP TypeScript SDK
Official TypeScript SDK for building Model Context Protocol servers and clients.
TypeScript and Node.js developers building MCP servers to expose internal APIs or data to Claude Desktop, Cursor and other MCP-aware agents, or building agent apps that consume MCP tools.
Non-JavaScript stacks, teams that want a no-code tool-builder UI, or anyone looking for a hosted MCP marketplace rather than an SDK to write servers with.
The MCP TypeScript SDK is the official Model Context Protocol implementation for the JavaScript/TypeScript ecosystem, maintained by the Model Context Protocol organization alongside SDKs for Python, Kotlin, C#, Java, Ruby, Swift, Rust and others. It gives developers a batteries-included toolkit for building both MCP servers (which expose tools, resources and prompts to LLM hosts like Claude Desktop, Cursor, Zed, VS Code and Windsurf) and MCP clients (which consume those servers from inside an agent or app).
The v2 line implements the 2026-07-28 MCP specification. Server helpers cover tool registration, structured input/output validation via Standard Schema (Zod, Valibot, ArkType), resource templates with URI-style routing, prompt libraries, sampling requests back to the host model, and progress/notification streams. Transport support includes stdio for local process-based servers and Streamable HTTP for remote/hosted servers, with drop-in middleware for Express, Fastify, Hono and the raw Node HTTP module, plus first-class runtime support for Node.js, Bun and Deno. Built-in OAuth 2.1 helpers handle authorization for hosted servers, and the client library ships transport implementations, session helpers and typed request/response objects.
Typical workflows: wrapping an internal REST or GraphQL API as a locally installed MCP server so Claude Desktop or Cursor can call it as tools; publishing a hosted Streamable-HTTP server behind OAuth that any MCP-aware agent can attach to; writing an agent that discovers and invokes third-party MCP servers; or scaffolding integration tests against a live MCP server using the client's in-memory transport. Documentation, tutorials and runnable examples live at ts.sdk.modelcontextprotocol.io.
If you are writing MCP servers in TypeScript, this is the SDK to start with — full stop. The reference-implementation status matters because MCP is still evolving, and lagging a spec revision is a real risk with community ports. The v2 rewrite around Standard Schema and pluggable HTTP middleware is a big quality-of-life step over v1.
— The AI Tool Bible editorial team
Pros
- ✅ Official reference implementation — tracks new MCP spec revisions faster than community SDKs
- ✅ Covers both server and client sides in one package family, so agents and tools share types
- ✅ Standard Schema support means you can bring Zod, Valibot or ArkType instead of a proprietary validator
- ✅ Middleware adapters for Express, Fastify, Hono and node:http make hosted deployment straightforward
- ✅ First-class Node, Bun and Deno runtime support
- ✅ Built-in OAuth 2.1 helpers remove most of the auth boilerplate for remote servers
- ✅ Apache 2.0 / MIT licensing is friendly for commercial and closed-source use
Cons
- ⚠️ MCP itself is young and the spec still shifts — v2 (2026-07-28) is a breaking change from v1 servers
- ⚠️ Documentation is improving but examples still lag Python SDK coverage for advanced patterns
- ⚠️ TypeScript-only — teams on Go, Rust or PHP need a different SDK or a thin wrapper
- ⚠️ Streamable HTTP transport is newer than stdio and has fewer battle-tested production references
- ⚠️ You still write, deploy and secure the server yourself; the SDK does not provide hosting or a registry
Use cases
Explore related
Compare with similar tools
All in MCP Servers →Airtable MCP Server
Model Context Protocol server that gives LLMs full read/write access to your Airtable bases.
Apple Notes MCP
Let Claude read your local Apple Notes over the Model Context Protocol.
AWS MCP Servers
Official AWS Labs collection of Model Context Protocol servers for connecting AI coding assistants and agents to AWS services and documentation.
Azure MCP Server
Official Microsoft MCP server that exposes 40+ Azure services to AI agents under the developer's own Entra ID credentials.
Blender MCP
Give Claude hands inside Blender — an MCP server for natural-language 3D modeling.
Brave Search MCP
Give any MCP client web and local search powered by the Brave Search API.