Serverdex · build · TypeScript
Build an MCP server in TypeScript
1. Install the TypeScript SDK
package: @modelcontextprotocol/servernpm install @modelcontextprotocol/serverThe 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 APIimport { 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
AREA
morlutoProduction-ready
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Registry478k 6d agoMIT
AWorld Monitor
koala73Production-ready
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 108 tools.
Registry91k 3d agoAGPL-3.0
AHyperFrames by HeyGen
heygen-comProduction-ready
Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.
Registry90k 6d agoApache-2.0
ARuflo
ruvnetProduction-ready
Agent teams, swarms, memory and hooks for Claude Code and Codex, served over MCP.
Registry82k 6d agoMIT
AClaude Flow
ruvnetProduction-ready
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Registry82k 6d agoMIT
AContext7
upstashProduction-ready
Up-to-date docs for AI agents
Live1.4k tokRegistry65k 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.