A command line tool for quickly scaffolding new MCP (Model Context Protocol) servers. This is a public fork of @modelcontextprotocol/create-server, maintained with the latest SDK updates and improvements.
# Create a new server in the directory `my-server`
npm create mcp-tools my-server
# With options
npm create mcp-tools my-server --name "My MCP Server" --description "A custom MCP server"
After creating your server:
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
% npm create mcp-tools --help
Create a package.json file
Usage:
npm init <package-spec> (same as `npx <package-spec>`)
npm init <@scope> (same as `npx <@scope>/create`)
Options:
[--init-author-name <name>] [--init-author-url <url>] [--init-license <license>]
[--init-module <module>] [--init-version <version>] [-y|--yes] [-f|--force]
[--scope <@scope>]
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
[-ws|--workspaces] [--no-workspaces-update] [--include-workspace-root]
aliases: create, innit
Run "npm help init" for more info
This fork includes:
- Updated MCP SDK to version 1.8.0
- Added Zod for input validation
- Simplified API usage with the latest best practices
- Regular maintenance and updates
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License—see the LICENSE file for details.
- Original project: @modelcontextprotocol/create-server