Agent skill · software engineering · github
typescript-mcp-server-generator
Generate a complete MCP server project in TypeScript using the MCP TypeScript SDK v2 (@modelcontextprotocol/server) with tools, resources, and proper configuration
Why this skill is useful
Adds a complete project generation script for MCP server setup in TypeScript, including specific package configurations and error handling patterns.
What it needs
Requires node, npm installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 37,534 stars on the source repository.
What this skill does
Generate TypeScript MCP Server Create a complete Model Context Protocol (MCP) server in TypeScript using the MCP TypeScript SDK v2 with the following specifications: Requirements 1. Project Structure: Create a new TypeScript/Node.js project with proper directory structure 2. NPM Packages: The v1 monolithic @modelcontextprotocol/sdk package is retired. Use the focused v2 packages: @modelcontextprotocol/server — server implementation (stdio transport via the @modelcontextprotocol/server/stdio subpath) @modelcontextprotocol/node — Node HTTP transport (NodeStreamableHTTPServerTransport), or a framework adapter: @modelcontextprotocol/express, @modelcontextprotocol/hono, @modelcontextprotocol/fastify — each adapter requires its peer framework to be installed alongside it (e.g. @modelcontextprotocol/express + express) @modelcontextprotocol/core — shared protocol schemas (import Schema constants from here, not from sdk/types.js) zod@^4.2 — v2 requires Zod 4.2+; do not use zod@3 3. Runtime: Node.js 20+ (v2 minimum); ESM-first with "type": "module" (a CommonJS build is also shipped, so require() works if needed) 4. Server Type: Choose between HTTP (Streamable HTTP transport) or stdio-based server. SSE and WebSocket transports were removed in v2 — do not generate them. 5. Tools: Create at least one useful tool with proper schema validation 6. Error Handling: Include comprehensive error handling and validation Implementation Details Project Setup Initialize with npm init and create package.json Install dependencies: @modelcontextprotocol/server, zod@^4.2, and the transport package — @modelcontextprotocol/node for plain Node HTTP, or a framework adapter together with its peer framework (e.g. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills github/typescript-mcp-server-generator