Get the FREE Ultimate OpenClaw Setup Guide →

create -cli

create mcp server cli in TS.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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:

  1. Ensure Node.js and npm are installed. You can verify with: node -v npm -v

  2. Use npx to run the scaffolding tool and create a new MCP server project: npx create-ts-mcp-server your-server-name

  3. Change into the new project directory and install dependencies: cd your-server-name npm install

  4. Build the project (required to generate production-ready artifacts): npm run build

  5. 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

Sponsor this space

Reach thousands of developers