SuperAPI AI Directory

create-mcp-ts

Create a new MCP server in TypeScript, batteries included - supports user-defined templates!

Open website

About this tool

Purpose

create-mcp-ts is a scaffolding tool for creating TypeScript MCP servers, offering an out-of-the-box experience designed to let MCP server developers focus on writing code.

Main Capabilities

  • Zero build configuration: Automatically installs everything needed for development, building, and setting up the MCP server, with no need for manual build tool configuration.
  • Automatic client configuration: Can automatically configure your MCP server in Cursor, Windsurf, and Claude Desktop. The script checks whether your server already exists in each client's MCP configuration file, and if not, adds an entry pointing to the server script (dist/index.js).
  • Custom templates: Supports using custom templates by passing a template npm package name or file path to the npx create-mcp-ts command.
  • Publishing to npm: Provides the steps to publish the MCP server to npm: set the version in package.json and make sure private is false; run npm install; run npm run build; run npm login (if needed); run npm publish.
  • Eject mechanism: The mcp-scripts package contains the build tooling for the create-mcp-ts project, using tsup and esbuild under the hood. If you need to break away from mcp-scripts, you can run a command to remove it and replace the related commands in package.json, enabling a custom setup and avoiding lock-in.
  • Troubleshooting: Provides guidance for troubleshooting common issues, such as confirming that Node.js is installed globally, and, when using Node.js version managers like nodenv or nvm, specifying the absolute path to the Node.js binary in the MCP configuration (the absolute path can be found via a command).

How to Use

Create a new project with the npx create-mcp-ts command. When setting up the MCP server, the tool automatically configures Cursor, Windsurf, and Claude Desktop. When publishing, follow the steps above. To use a custom template, simply pass the template npm package name or file path.

Use Cases

Suitable for those who want to quickly set up MCP servers, value development efficiency, and want to reduce configuration work: TypeScript developers.

Limitations

The material does not provide specific pricing, cost, platform compatibility, effectiveness, or performance data. Some command examples (such as the eject command and the command to find the Node.js path) are not given as complete code in the material, so the specific command contents cannot be provided.