typescript-mcp-server-generator

Installation
Summary

Complete TypeScript MCP server project generator with tools, resources, and transport configuration.

  • Scaffolds a full Node.js/TypeScript project with @modelcontextprotocol/sdk, zod validation, and choice of HTTP (Express) or stdio transport
  • Generates at least one production-ready tool with schema validation, error handling, and structured content responses
  • Includes tsconfig.json with ES modules, proper package.json setup, and dev tooling (tsx/ts-node)
  • Optionally adds resources with dynamic URI templates and prompts with argument schemas for extensibility
  • Provides testing guidance via MCP Inspector, example tool invocations, and troubleshooting for common deployment issues
SKILL.md

Generate TypeScript MCP Server

Create a complete Model Context Protocol (MCP) server in TypeScript with the following specifications:

Requirements

  1. Project Structure: Create a new TypeScript/Node.js project with proper directory structure
  2. NPM Packages: Include @modelcontextprotocol/sdk, zod@3, and either express (for HTTP) or stdio support
  3. TypeScript Configuration: Proper tsconfig.json with ES modules support
  4. Server Type: Choose between HTTP (with Streamable HTTP transport) or stdio-based server
  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/sdk, zod@3, and transport-specific packages
  • Configure TypeScript with ES modules: "type": "module" in package.json
Related skills

More from github/awesome-copilot

Installs
9.9K
GitHub Stars
32.8K
First Seen
Feb 25, 2026