5 production-ready TypeScript templates for the Model Context Protocol. Stop reading docs, start shipping.
Each template is a complete, runnable MCP server. Copy, customize, ship.
The minimal MCP server. Two example tools, clean structure, fully commented. Your starting point.
Read, write, search, and list files. Path sandboxing and security built in. Perfect for code assistants.
Query databases with natural language. Schema inspection, read/write separation, parameterized queries.
Wrap any REST API as MCP tools. Dynamic registration, auth handling, multi-API support.
Fetch pages, extract text, get metadata, pull links. No browser dependencies โ pure Node.js fetch.
Clean, documented TypeScript. Every line explained.
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { z } from "zod"; // Create your MCP server const server = new McpServer({ name: "my-server", version: "1.0.0", }); // Register a tool โ this is what the AI sees and can call server.tool( "greet", // tool name "Generate a greeting", // description for AI { name: z.string(), // input schema language: z.enum(["en","es","fr"]) .default("en"), }, async ({ name, language }) => { return { content: [{ type: "text", text: `Hello, ${name}!` }] }; } ); // Start the server const transport = new StdioServerTransport(); await server.connect(transport);
Built for developers who ship, not read docs.
npm install && npm start. Each template runs out of the box.
Path sandboxing, query validation, auth handling. Production patterns baked in.
Every file has inline comments explaining the MCP protocol. Learn while you build.
Full TypeScript with Zod validation. Catch errors before your users do.
Works with Claude Desktop, Cursor, Windsurf, and any MCP client. Stdio transport by default.
Use personally for free. Commercial license available for teams and products.
5 templates, 20+ tools, unlimited projects.