Get the FREE Ultimate OpenClaw Setup Guide →

create

A MCP Server to Create MCP Server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio maoxiaoke-create-mcp-server npx -y create-mcp-server@latest

How to use

This MCP server, named create-mcp-server, helps you scaffold new MCP servers by leveraging the create-mcp-server package. It provides a structured development protocol and ready-to-use templates to accelerate building new MCP servers. Using NPX, you can invoke the scaffolding tool without installing it globally, generating a consistent project layout, sample models, and boilerplate code that follows the MCP conventions. The goal is to streamline setup, ensure best practices, and give you a solid starting point for your own MCP server projects.

To use it, run the NPX command described in the mcp_config. The tool will guide you through creating a new MCP server scaffold, typically producing a directory with standard subfolders (such as templates, models, and initialization scripts) and example templates that you can customize for your use case. After generation, explore the produced files, adjust configuration as needed, and follow the included templates to implement your own MCP contexts and protocols efficiently.

How to install

Prerequisites:

  • Node.js and npm installed on your system.
  • Internet access to fetch the create-mcp-server package via NPX.

Installation steps:

  1. Ensure you have Node.js and npm installed. If not, download and install from https://nodejs.org.

  2. Open your terminal and run the NPX command to generate a new MCP server scaffold:

    npx -y create-mcp-server@latest

  3. Follow the prompts (if any) to customize the scaffold name and options. This will create a new directory with a standard MCP server structure and templates that you can start modifying.

  4. Navigate into the generated project directory and review the README or template files for project-specific setup instructions.

  5. Install any project-specific dependencies if required by the generated scaffold (typically handled by the template or a subsequent npm install command).

Optional:

  • If you prefer a global install (not necessary with NPX), you can install the package and run the generator locally, then use the provided commands to scaffold new servers.

Additional notes

Tips:

  • The generator focuses on creating MCP server scaffolds with consistent structure and templates, which helps maintain uniformity across projects.
  • If you encounter network restrictions, verify your npm/regional proxy settings or try again later.
  • The generated scaffold may include example templates; replace them with your own models and MCP contexts as you develop.
  • Although the example uses NPX, you can refer to the package name (create-mcp-server) if you prefer to install it locally for repeated use.

Environment variables and configuration options are typically provided within the generated scaffold's config files or templates. Check the generated README for any environment-specific setup instructions.

Related MCP Servers

Sponsor this space

Reach thousands of developers