Build MCP Servers
in Minutes
The TypeScript framework for Model Context Protocol. Type-safe tools, auto-discovery, zero boilerplate.
$ npx create-mcp-framework my-serverEverything you need
A batteries-included framework that gets out of your way.
Lightning Fast Setup
Scaffold a production-ready MCP server in seconds. Directory-based discovery means zero configuration.
Type-Safe Tools
Define tools with Zod schemas for automatic validation, JSON schema generation, and full TypeScript IntelliSense.
Auto-Discovery
Drop files into tools/, resources/, or prompts/. The framework finds and registers them automatically.
Multiple Transports
stdio for CLI tools, SSE for web apps, HTTP streaming for production APIs. Switch with one config change.
Built-in Auth
OAuth 2.1, JWT, and API key auth out of the box. Production-ready security with zero extra dependencies.
Extensible
Custom middleware, transports, and auth providers. The framework adapts to your stack, not the other way around.
Simple, expressive API
A tool in 20 lines. Shipped in 5 minutes.
import { MCPTool } from "mcp-framework";
import { z } from "zod";
const schema = z.object({
name: z.string()
.describe("Name to greet"),
});
class GreeterTool extends MCPTool<typeof schema> {
name = "greeter";
description = "Greets a user by name";
schema = schema;
async execute({ name }) {
return {
content: [{
type: "text",
text: `Hello, ${name}!`
}]
};
}
}
export default GreeterTool;Scaffold your project
One command gives you a fully-configured TypeScript MCP server with build scripts and directory structure.
npx create-mcp-framework my-serverAdd tools
Create a class in tools/. Define your schema with Zod. The framework handles registration automatically.
mcp add tool greeterShip it
Build and connect to Claude Desktop, Cursor, or any MCP-compatible client.
npm run buildJoin the community
Get help, share your work, and help shape the framework.