Create Advanced MCP Server
A comprehensive architecture for building robust Model Context Protocol (MCP) servers with integrated web capabilities
Ask AI about Create Advanced MCP Server
Powered by Claude Β· Grounded in docs
I know everything about Create Advanced MCP Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
create-mcp-server
A CLI tool to scaffold a Model Context Protocol (MCP) server with integrated web capabilities.
This package creates a fully structured MCP server project following the architecture documented in the MCP Advanced Node specification, providing a robust foundation for MCP server development.
Features
- Generates a complete MCP server project structure
- Configurable options for web API, WebSocket, and database integration
- TypeScript-based with modern ES modules
- Includes Prisma ORM integration (optional)
- Express-based web API (optional)
- WebSocket server integration (optional)
- Example implementations for tools, resources, and prompts
- Full error handling and logging infrastructure
- Configuration system with environment variable support
Installation
npm install -g create-advanced-mcp-server
Usage
# Create a new project with interactive prompts
npx create-advanced-mcp-server my-mcp-server
# Create a new project with default options
npx create-advanced-mcp-server my-mcp-server --yes
# Skip dependency installation
npx create-advanced-mcp-server my-mcp-server --skip-install
# Show verbose output
npx create-advanced-mcp-server my-mcp-server --verbose
Generated Project Structure
The generated project follows the structure outlined in the MCP Advanced Node specification:
src/
βββ index.ts # Entry point
βββ initialize.ts # Initialization logic
βββ config.ts # Configuration management
βββ types.ts # Type definitions
βββ utils/ # Utility modules
β βββ index.ts # Utility exports
β βββ logging.ts # Logging utilities
β βββ errors.ts # Error classes
β βββ ... # Additional utilities
βββ tools/ # Individual tool implementations
β βββ index.ts # Tool registration
β βββ exampleTool.ts # Example tool implementation
β βββ ... # Additional tools
βββ resources/ # Resource implementations
β βββ index.ts # Resource registration
β βββ exampleResource.ts # Example resource implementation
β βββ ... # Additional resources
βββ prompts/ # Prompt implementations
β βββ index.ts # Prompt registration
β βββ examplePrompt.ts # Example prompt implementation
β βββ ... # Additional prompts
βββ services/ # Service layer
β βββ index.ts # Service exports
β βββ exampleService.ts # Example service implementation
β βββ ... # Additional services
Depending on your selections, additional directories may be included:
Web API (if enabled)
βββ web/ # Web API components
β βββ index.ts # Web server setup
β βββ middleware/ # Express middleware
β β βββ index.ts # Middleware exports
β β βββ errorHandler.ts # Error handling middleware
β β βββ ... # Additional middleware
β βββ routes/ # API routes
β β βββ index.ts # Route registration
β β βββ exampleRoutes.ts # Example route definitions
β β βββ ... # Additional routes
β βββ controllers/ # API controllers
β βββ index.ts # Controller exports
β βββ exampleController.ts # Example controller logic
β βββ ... # Additional controllers
WebSocket (if enabled)
βββ websocket/ # WebSocket components
β βββ index.ts # WebSocket server setup
β βββ events/ # Event definitions
β β βββ index.ts # Event exports
β β βββ exampleEvents.ts # Example event handlers
β β βββ ... # Additional events
β βββ ... # Additional WebSocket components
Prisma (if enabled)
βββ data/ # Data access layer
β βββ index.ts # Data layer exports
β βββ client.ts # Prisma client initialization
β βββ database.ts # Database management (migrations)
β βββ repositories/ # Repository implementations
β β βββ index.ts # Repository exports
β β βββ baseRepository.ts # Base repository pattern
β β βββ ... # Additional repositories
β βββ ... # Additional data components
βββ prisma/ # Prisma configuration
β βββ schema.prisma # Database schema definition
License
MIT
