Mirror of https://github.com/modelcontextprotocol/create-typescript-server — CLI tool to create a new TypeScript MCP server
  • EJS 51.7%
  • JavaScript 48.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-11-18 15:40:21 +00:00
.github/workflows CI workflow 2024-11-18 14:29:14 +00:00
src Always require a directory 2024-11-18 15:06:40 +00:00
template Refactor/expand into a more substantial example 2024-11-18 15:21:22 +00:00
.gitignore Basic template, authored by Claude 2024-11-18 13:16:04 +00:00
.npmrc Basic template, authored by Claude 2024-11-18 13:16:04 +00:00
CODE_OF_CONDUCT.md Add code of conduct 2024-11-18 15:40:21 +00:00
LICENSE Mention license in README 2024-11-18 13:08:18 +00:00
package-lock.json Basic template, authored by Claude 2024-11-18 13:16:04 +00:00
package.json Bump version 2024-11-18 15:22:54 +00:00
README.md Add npm badge to README 2024-11-18 15:31:11 +00:00
tsconfig.json Basic template, authored by Claude 2024-11-18 13:16:04 +00:00

create-typescript-server NPM Version

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

Getting Started

# Create a new server in the directory `my-server`
npx @modelcontextprotocol/create-server my-server

# With options
npx @modelcontextprotocol/create-server 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

License

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