
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@haleyio/create-mcp-server
Advanced tools
Template generator for creating MCP servers with best practices and comprehensive tooling
A comprehensive template generator for creating Model Context Protocol (MCP) servers with best practices, comprehensive testing, CI/CD, and Claude Code integration.
✨ Comprehensive Template: Full project structure with TypeScript, testing, and CI/CD
🏗️ Best Practices: Clean architecture, error handling, and security patterns
🧪 Testing Ready: Vitest setup with coverage enforcement and utilities
🚀 CI/CD Pipeline: GitLab CI with validation, testing, and NPM publishing
📝 Documentation: Complete README, CLAUDE.md, and troubleshooting guides
🔧 Claude Integration: Pre-configured for Claude Code with setup instructions
⚡ Development Tools: Scripts, validation, and development environment setup
# Create a new MCP server
npx @haleyio/create-mcp-server my-mcp-server
# Or install globally
npm install -g @haleyio/create-mcp-server
create-mcp-server my-mcp-server
The generator will prompt you for:
my-mcp-server/
├── src/
│ ├── index.ts # Entry point
│ ├── server.ts # Main MCP server setup
│ ├── core.ts # Shared utilities
│ ├── schemas.ts # Zod schema definitions
│ └── example-module.ts # Example domain module
├── tests/
│ ├── setup.ts # Test configuration
│ ├── global-setup.ts # Global test setup
│ └── example.test.ts # Example tests
├── scripts/
│ └── validate-installation.sh
├── .gitlab-ci.yml # Complete CI/CD pipeline
├── tsconfig.json # TypeScript configuration
├── vitest.config.ts # Test configuration
├── package.json # Project configuration
├── CLAUDE.md # Claude Code instructions
├── README.md # Project documentation
└── CONTRIBUTING.md # Development guide
After generation, you can customize:
src/
src/schemas.ts
The template includes example implementations for:
# Clone the template generator
git clone https://git.haley.io/john/create-mcp-server.git
cd create-mcp-server
# Install dependencies
npm install
# Build the generator
npm run build
# Test locally
npm link
create-mcp-server test-server
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
MIT © John Haley
FAQs
Template generator for creating MCP servers with best practices and comprehensive tooling
We found that @haleyio/create-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.