Serverdex · build · TypeScript

Build an MCP server in TypeScript

The official TypeScript SDK, the exact install command, the API you start from — and the real TypeScript MCP servers in our index to copy. SDK facts read from the repository on 1 December 2026.
Official SDK
Tier 1
Model Context Protocol
TypeScript servers
23k
in our index
Requires
Node.js, Bun or Deno
toolchain
Good to know: v2 package. The v1 SDK (@modelcontextprotocol/sdk) still gets fixes on its own branch, but new servers should use @modelcontextprotocol/server.

1. Install the TypeScript SDK

package: @modelcontextprotocol/server
npm install @modelcontextprotocol/server

The official SDK repository: modelcontextprotocol/typescript-sdk. It runs on Node.js, Bun and Deno — the same package for JavaScript and TypeScript.

2. The shape of a minimal server

start from this API
import { McpServer } from "@modelcontextprotocol/server";
import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";

const server = new McpServer({ name: "my-server", version: "1.0.0" });
// server.registerTool("greet", { … }, async (args) => …);
await server.connect(new StdioServerTransport());

This is the starting API, not a full program — the complete, always-current walkthrough is the official quickstart. Define your tools, then connect a transport (stdio for local, HTTP for remote). Read on 1 December 2026; confirm the current version in the quickstart.

3. Real TypeScript MCP servers to learn from

most-starred in our index · open source
  1. REA

    morluto
    A

    Production-ready

    Reverse engineer anything from your terminal or agent with one CLI and MCP server.

    Registry
    478k 6d agoMIT
  2. World Monitor

    koala73
    A

    Production-ready

    Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 108 tools.

    Registry
    91k 3d agoAGPL-3.0
  3. HyperFrames by HeyGen

    heygen-com
    A

    Production-ready

    Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.

    Registry
    90k 6d agoApache-2.0
  4. Ruflo

    ruvnet
    A

    Production-ready

    Agent teams, swarms, memory and hooks for Claude Code and Codex, served over MCP.

    Registry
    82k 6d agoMIT
  5. Claude Flow

    ruvnet
    A

    Production-ready

    AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

    Registry
    82k 6d agoMIT
  6. Context7

    upstash
    A

    Production-ready

    Up-to-date docs for AI agents

    Live1.4k tokRegistry
    65k 2 7d agoMIT

See all TypeScript MCP servers, or the best-maintained across every language.

4. Connect it, then get it found

Point a client at your server to try it — the client matrix shows which clients support what. When it works, list it on Serverdex: a free listing is a server page with a link back to us, in front of developers choosing MCP servers. Want it live now without the link? Priority Review ($9, one-time) does that.

Questions people ask

What's the official way to build an MCP server in TypeScript?
Use the official TypeScript SDK, @modelcontextprotocol/server. Install it (npm install @modelcontextprotocol/server), construct a server, register your tools, and connect a transport. The full, always-current walkthrough is the official quickstart; the snippet here shows the shape. Read from the SDK's repository on 1 December 2026.
Is the TypeScript SDK production-ready?
Tier 1 — passes 100% of the MCP conformance tests and implements every non-experimental feature. v2 package. The v1 SDK (@modelcontextprotocol/sdk) still gets fixes on its own branch, but new servers should use @modelcontextprotocol/server.
How do I test and connect my TypeScript server?
Run it over stdio and point a client at it. Serverdex's client matrix shows which clients support what; most developers start with Claude Desktop or an IDE client. Once it answers, list it on Serverdex so others find it.