create -cli
create mcp server cli in TS.
claude mcp add --transport stdio makoq-create-mcp-server-cli npx -y create-ts-mcp-server
How to use
This MCP server scaffolding tool is a Node.js-based command-line utility for quickly generating standardized MCP servers. It provides an interactive CLI to configure server metadata, API level, and transport type, and then produces a ready-to-use TypeScript project with a typical MCP server structure. You can use it to bootstrap both High-Level and Low-Level API variants, with an emphasis on rapid project generation and sensible defaults. Once generated, you’ll have a skeleton server (src/server/server.ts and src/index.ts) along with a package.json and tsconfig.json to help you start developing immediately.
To get started, install and run the scaffolder with npx, then follow the prompts to specify your server name, description, API level, and transport. After generation, follow the included “Next steps” guidance to install dependencies, build, and run debugging or the SSE/stdio variants as needed. The tool emphasizes a template-based approach, automatic configuration of package.json, and reusable middleware and routing presets to accelerate development.
How to install
Prerequisites:
- Node.js (LTS version) and npm installed on your machine
- Internet access to fetch the scaffolding package via npx
Install and use:
-
Ensure Node.js and npm are installed. You can verify with: node -v npm -v
-
Use npx to run the scaffolding tool and create a new MCP server project: npx create-ts-mcp-server your-server-name
-
Change into the new project directory and install dependencies: cd your-server-name npm install
-
Build the project (required to generate production-ready artifacts): npm run build
-
Run the inspector or other development aids as needed: npm run inspector
For running the SSE interface during development, you can use its dedicated command as documented in the generated README.
Notes:
- The tool provides interactive prompts to tailor the server. If you prefer non-interactive generation, you can pass the appropriate flags or customize after generation.
Additional notes
Tips and considerations:
- The generated project follows a standard MCP server layout (src/server/server.ts and src/index.ts). You can adapt the TS types and routing to fit your domain.
- The scaffold includes pre-configured middleware and RESTful patterns for common scenarios, plus a High-Level and Low-Level API example to help you choose the right approach.
- If you encounter issues with npx installations due to network constraints, you can npm pack or install the scaffolder locally and run it from the local path as an alternative.
- The environment is ready to support both stdio and SSE transports for client-server communication; choose the transport in the interactive setup or adjust the generated config as needed.
Related MCP Servers
frontmcp
TypeScript-first framework for the Model Context Protocol (MCP). You write clean, typed code; FrontMCP handles the protocol, transport, DI, session/auth, and execution flow.
editor
MCP Server for AI automation of the PlayCanvas Editor
mcp-bun
Bun Javascript Runtime MCP Server for AI Agents
mcp -weather-js
Simple Weather MCP Server Example
Roo-Code -installer
An MCP server installer for Roo Code. Handles the installation from Github, requirements, package management, update, installation and MCP Json configuration.
mcp-starwars
MCP Server for the SWAPI Star Wars API. The main goal of the project is to show how an MCP server can be used to interact with APIs.