create-typescript-server

This repository provides a command-line tool, `create-typescript-server`, for quickly scaffolding new Model Context Protocol (MCP) servers with customizable names and descriptions, streamlining server creation and setup. This repository provides a

154
40

create-typescript-server NPM Version

This is a command-line tool designed for rapidly scaffolding new Model Context Protocol (MCP) servers. It streamlines the initial setup process, allowing developers to quickly begin building MCP-compliant servers.

Getting Started

To create a new server, execute the following command, replacing my-server with your desired directory name:

npx @modelcontextprotocol/create-server my-server

# With options
npx @modelcontextprotocol/create-server my-server --name "My MCP Server" --description "A custom MCP server"

You can also customize the server creation using options like --name and --description. After the server is created, navigate into the directory, install dependencies, and build the project:

cd my-server     # Navigate to server directory
npm install      # Install dependencies

npm run build    # Build once
# or...
npm run watch    # Start TypeScript compiler in watch mode

# optional
npm link         # Make your server binary globally available

The npm run watch command starts the TypeScript compiler in watch mode for continuous development. Optionally, npm link makes the server binary globally accessible.

License

This project is licensed under the MIT License⌘€”see the LICENSE file for details.

Repository

MO
modelcontextprotocol

modelcontextprotocol/create-typescript-server

Created

November 18, 2024

Updated

March 28, 2025

Language

JavaScript

Category

Developer Tools