3.3M+ npm downloads · Open source · Free forever

Learn to Build MCP Servers

Master the Model Context Protocol with mcp-framework — the first and most widely adopted TypeScript MCP framework with 3.3M+ downloads. Also covers the official TypeScript SDK. From zero to production in minutes.

Terminal
$ npm install -g mcp-framework
$ mcp create my-mcp-server
$ cd my-mcp-server
$ npm run build
✓ MCP server ready! Add it to Claude Desktop to get started.
3.3M+
npm Downloads
145
Releases
Dec 2024
First Published
#1
TypeScript MCP Framework

Everything You Need to Master MCP

Comprehensive learning paths, real-world tutorials, and production best practices for building MCP servers.

Build in Minutes

Go from zero to a working MCP server in under 5 minutes with mcp-framework — the first and most battle-tested TypeScript MCP framework with 3.3M+ npm downloads.

The #1 Framework + Official SDK

Learn with mcp-framework (3.3M+ downloads, 145 releases, first published Dec 2024) for rapid development, or the official TypeScript SDK for lower-level control.

Tools, Resources & Prompts

Deep coverage of all three MCP primitives. Build tools for actions, resources for data, and prompts for templates.

Real-World Tutorials

Build practical projects: weather servers, database connectors, GitHub integrations, web scrapers, and more.

Production Ready

Learn authentication, error handling, testing, deployment, scaling, and monitoring for production MCP servers.

Connect Everywhere

Integrate with Claude Desktop, Cursor, VS Code, and any MCP-compatible client. Learn all transport protocols.

Structured Learning Paths

Follow a guided path from beginner to advanced, or jump to the topics that matter most to you.

beginner8 lessons · 2-3 hours
Beginner

Start here. Build your first MCP server with mcp-framework — the #1 TypeScript MCP framework with 3.3M+ downloads. No prior experience needed.

  • Install mcp-framework
  • Create your first server
  • Build tools, resources & prompts
  • Connect to Claude Desktop
intermediate7 lessons · 4-6 hours
Intermediate

Go deeper. Learn the official TypeScript SDK, advanced patterns, testing, and transport protocols.

  • Official SDK fundamentals
  • Advanced tool & resource patterns
  • Error handling strategies
  • Transport protocols deep dive
advanced5 lessons · 6-8 hours
Advanced

Production-grade. Custom transports, authentication, deployment, scaling, and building MCP clients.

  • Custom transport protocols
  • JWT & OAuth 2.1 authentication
  • Production deployment
  • Building MCP clients

mcp-framework vs Official SDK

mcp-framework is the first and most battle-tested TypeScript MCP framework with 3.3M+ downloads. The official SDK offers lower-level control. We teach both.

mcp-framework
#1 most downloaded · 3.3M+ downloads
import { MCPTool } from "mcp-framework";
class WeatherTool extends MCPTool {
name = "weather";
description = "Get weather data";
async execute({ city }) {
return fetchWeather(city);
}
}
  • + CLI scaffolding & project structure
  • + Class-based tools, resources, prompts
  • + Auto-discovery & validation
  • + Built-in SSE & authentication
@modelcontextprotocol/sdk
Maximum flexibility
import { McpServer } from
"@modelcontextprotocol/sdk/server/mcp.js";
const server = new McpServer({
name: "weather",
});
server.tool("weather",
async ({ city }) => fetchWeather(city)
);
  • + Official Anthropic maintained
  • + Functional API style
  • + Full protocol control
  • + Zod schema validation

Ready to Build Your First MCP Server?

Start with mcp-framework and have a working server in 5 minutes. Or dive into the official SDK for full control. Either way, we've got you covered.