mcpgen
v1.0.4
Published
Zero-friction MCP Server Generator
Downloads
11
Maintainers
Readme
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 mcpgenUsage
Just run and follow the interactive prompts:
mcpgenThe tool guides you through:
- Project setup (name, description)
- Data source selection
- Tool selection
- Schema customization
- Cloud deployment options
- 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: VercelThis 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
