MCP HubMCP Hub
modelcontextprotocol

create-typescript-server

by: modelcontextprotocol

CLI tool to create a new TypeScript MCP server

153created 18/11/2024
Visit
TypeScript
CLI

📌Overview

Purpose: To provide a command line tool that facilitates the rapid scaffolding of new Model Context Protocol (MCP) servers.

Overview: The create-typescript-server tool simplifies the process of establishing a new MCP server by allowing users to create a server structure quickly and efficiently with customizable options.

Key Features:

  • Quick Scaffolding: Allows users to swiftly set up a new server with minimal commands, streamlining the initiation process for developers.

  • Customization Options: Users can specify the server's name and description during the creation process, enabling tailored server setups that meet specific project needs.


create-typescript-server

A command line tool for quickly scaffolding new MCP (Model Context Protocol) servers.

Getting Started

To create a new server, run:

npx @modelcontextprotocol/create-server my-server

To create a server with options:

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

After creating your server, navigate to the server directory and install dependencies:

cd my-server
npm install

Build the project:

npm run build

Or start the TypeScript compiler in watch mode:

npm run watch

Optionally, you can make your server binary globally available:

npm link

License

This project is licensed under the MIT License—see the LICENSE file for details.