Skip to main content
📖 The AI Tool Bible

MCP TypeScript SDK

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

Free· Free and open source (Apache 2.0 for new contributions; older code MIT).MCP Servers
Visit website →
Best for

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.

Skip if

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.

Editor's take

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

Wrapping an internal REST API as an MCP serverExposing a database to Claude Desktop as tools and resourcesBuilding a hosted Streamable-HTTP MCP server with OAuthWriting an agent that consumes third-party MCP serversAdding MCP tool support to a Cursor or VS Code extensionPrototyping MCP servers in Bun or DenoIntegration-testing MCP servers with an in-memory client transportPublishing a company-internal tool catalog over MCP

Explore related

Compare with similar tools

All in MCP Servers

Airtable MCP Server

MCP Servers

Model Context Protocol server that gives LLMs full read/write access to your Airtable bases.

Free· Open source (MIT) and free to run. You still need an Airtable account and personal access token; Airtable itself is Free / Team $20 per user/mo / Business $45 per user/mo / Enterprise (custom).Natural-language CRM queries against AirtableLLM-driven lead triage and enrichment

Apple Notes MCP

MCP Servers

Let Claude read your local Apple Notes over the Model Context Protocol.

Free· Free / open-source (MIT). No hosted service; runs locally on your Mac.Personal knowledge retrieval from Apple NotesSearching decade-old meeting notes during a Claude chat

AWS MCP Servers

MCP Servers

Official AWS Labs collection of Model Context Protocol servers for connecting AI coding assistants and agents to AWS services and documentation.

Free· Free and open source (Apache 2.0). AWS service usage billed at standard AWS rates. Optional AWS-hosted 'remote managed' servers included at no additional charge beyond consumed AWS services.AWS infrastructure-as-code scaffolding with CDK or CloudFormationGrounded answers from live AWS documentation

Azure MCP Server

MCP Servers

Official Microsoft MCP server that exposes 40+ Azure services to AI agents under the developer's own Entra ID credentials.

Free· Server is free and MIT-licensed. Azure resource usage is billed separately at standard Azure rates based on whatever services the agent queries or mutates.Natural-language Azure resource inventoryLog Analytics and Kusto (KQL) querying from an agent

Blender MCP

MCP Servers · Model-agnostic; commonly paired with Claude (Sonnet/Opus) via Claude Desktop, but works with any MCP-capable client

Give Claude hands inside Blender — an MCP server for natural-language 3D modeling.

Free· Free and open-source (MIT license). No hosted service, no subscription; you supply your own MCP-capable client (Claude Desktop, Cursor, VS Code, OpenCode) and pay only for whatever LLM the client uses.AI-assisted 3D scene blockingGenerative prop and mesh creation via Hyper3D Rodin

Brave Search MCP

MCP Servers

Give any MCP client web and local search powered by the Brave Search API.

Freemium· Free: $ 0 USD · Team: $ 4 USD per user/month · Enterprise: $ 21 USD per user/monthGrounded web search inside Claude DesktopAgent fact-checking and citation lookup