1.0.4 โข Published 4 months ago
mcpgen v1.0.4
mcpgen
mcpgen is a minimal, elegant command-line tool for generating MCP servers that connect Claude and other MCP clients to your data sources with zero friction. This state-of-the-art tool streamlines the process of creating custom Model Context Protocol servers with advanced AI capabilities.
Features
- ๐ Interactive CLI with guided workflow
- ๐งฉ Multiple data sources - in-memory, JSON file, PostgreSQL, MySQL, MongoDB, Supabase, or custom API
- ๐ ๏ธ Customizable tools and prompts - ready-made templates optimized for Claude
- ๐ค Advanced AI capabilities - vector embeddings, document processing, image analysis
- โ๏ธ One-click cloud deployment - AWS, Google Cloud, Azure, Vercel, Heroku, Docker
- ๐ Data visualization - generate charts and graphs from your data
- ๐ Schema inference - automatically generate TypeScript interfaces from sample data
- โก Zero configuration - sensible defaults with minimal setup
- ๐งช Automated testing - built-in test suite generation
- ๐ Instant integration with Claude Desktop and other MCP clients
Installation
# Global installation
npm install -g mcpgen
# Or run directly with npx
npx mcpgen
Usage
Just run and follow the interactive prompts:
mcpgen
The tool guides you through: 1. Project setup (name, description) 2. Data source selection 3. Tool selection 4. Schema customization 5. Cloud deployment options 6. Build and integration
Example: Creating a Weather MCP Server
Create a weather API that Claude can use to get current weather conditions:
mcpgen
> Project name: weather-mcp
> Description: Weather information MCP server
> Data source: External API
> Tools: getWeather
> Deploy to: Vercel
This creates a complete MCP server with:
- TypeScript code for the weather API
- Environment configuration for API keys
- Ready-to-use integration with Claude
- One-click cloud deployment
- Automated test suite
Integration with Claude Desktop
Add to your Claude Desktop configuration:
// macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
// Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"your-mcp-name": {
"command": "node",
"args": ["/path/to/your-project/dist/main.js"],
"env": {}
}
}
}
License
MIT