create-mcp-server-template
A CLI tool to generate a Model Context Protocol (MCP) server template.
Overview
This package provides a command-line interface to quickly scaffold a new MCP server project. The generated template includes:
- TypeScript configuration
- MCP SDK integration
- Example tools, resources, and prompts
- Basic project structure
- Development tools and scripts
Usage
npx create-mcp-server-template my-mcp-server
npm install -g create-mcp-server-template
create-mcp-server-template my-mcp-server
Generated Project Structure
my-mcp-server/
├── src/
│ ├── index.ts # Main entry point
│ ├── base/ # Base classes
│ │ └── base-tool.ts # Base tool implementation
│ └── tools/ # Tool implementations
│ └── demo-tool.ts # Example tool
├── tsconfig.json # TypeScript configuration
├── package.json # Project dependencies
└── README.md # Project documentation
Features of Generated Template
- TypeScript Support: Full TypeScript configuration
- MCP SDK Integration: Ready to use MCP server implementation
- Modular Architecture: Easy to add new tools and capabilities
- Example Implementations: Demo tools, resources, and prompts
- Development Tools: Watch mode, build scripts, and more
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT