๐ A powerful Model Context Protocol (MCP) server that integrates v0.dev AI capabilities for modern web development
Transform your development workflow with AI-powered web application generation, code enhancement, debugging, and component creation through the standardized MCP protocol. Now powered by Bun for 25x faster performance! โก
- ๐ฏ Complete Web App Generation - Create full-stack applications with Next.js, React, Vue, Svelte
- ๐ง Intelligent Code Enhancement - AI-powered code improvements and optimizations
- ๐ Smart Debugging - Automated error detection and fixes
- ๐งฉ Component Generation - Create reusable, type-safe components
- โก Lightning Fast - Powered by Bun runtime (25x faster than npm)
- ๐ MCP Compatible - Works with any MCP client (Claude Desktop, Cursor, etc.)
- ๐ก๏ธ Type-Safe - Full TypeScript support with Zod validation
- ๐งช Well Tested - Comprehensive test suite with Vitest and coverage
# Generate a complete Next.js e-commerce app
mcp-tool generate_webapp --prompt "E-commerce store with shopping cart" --framework nextjs
# Enhance existing code with AI
mcp-tool enhance_code --code "function add(a,b){return a+b}" --enhancement "Add TypeScript types"
# Debug problematic code
mcp-tool debug_code --code "broken code here" --error_message "TypeError: Cannot read property"
# Create reusable components
mcp-tool generate_component --name "UserCard" --description "Profile card component"
- Bun 1.2.0 or higher (for best performance)
- v0.dev API Key (Premium or Team plan required)
- TypeScript 5.0+
- MCP Client (Claude Desktop, Cursor, etc.)
# macOS and Linux
curl -fsSL https://bun.sh/install | bash
# Windows (PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"
# Or with npm (if you have Node.js)
npm install -g bun
git clone https://github.com/nicotordev/v0-mcp-ts.git
cd v0-mcp-ts
bun install # โก 25x faster than npm install
bun run setup
This interactive setup will:
- Configure your v0.dev API key
- Build the project with Bun
- Run tests with coverage
- Generate MCP client configuration
Copy the generated configuration to your Claude Desktop config:
{
"mcpServers": {
"v0-mcp-ts": {
"command": "node",
"args": ["/absolute/path/to/v0-mcp-ts/dist/index.js"],
"env": {
"V0_API_KEY": "your_v0_api_key_here"
}
}
}
}
The server uses standard stdio transport, making it compatible with any MCP client.
Get started quickly with these optimized configurations for AI-powered code editors:
- Cursor AI Configuration - Complete setup with YOLO mode and test-driven development
- Windsurf IDE Configuration - Advanced workflows with Cascade and Flow features
Create complete web applications with AI assistance.
Parameters:
-
prompt
(string) - Description of the application to generate -
framework
(optional) - Target framework:nextjs
,react
,vue
,svelte
-
features
(optional) - Array of required features -
stream
(optional) - Enable streaming responses
Example:
{
"name": "generate_webapp",
"arguments": {
"prompt": "Real-time chat application with authentication",
"framework": "nextjs",
"features": ["authentication", "database", "websockets"],
"stream": false
}
}
Improve existing code with AI-powered suggestions.
Parameters:
-
code
(string) - Code to enhance -
enhancement
(string) - Description of desired improvements -
language
(optional) - Programming language (default: typescript)
Debug and fix code issues automatically.
Parameters:
-
code
(string) - Code with issues -
error_message
(optional) - Error message if available -
language
(optional) - Programming language (default: typescript)
Create reusable components with proper TypeScript types.
Parameters:
-
component_name
(string) - Name of the component -
description
(string) - Component functionality description -
framework
(optional) - Component framework:react
,vue
,svelte
-
props
(optional) - Component props specification
Access comprehensive v0.dev API documentation and best practices.
URI: v0://api-docs
Predefined template for generating web applications with specific requirements.
# Run all tests (with Bun's fast test runner)
bun test
# Run tests in watch mode
bun run test:watch
# Run tests with UI
bun run test:ui
# Generate coverage report
bun run test:coverage
# Start development server with auto-reload
bun run dev
# Build for production
bun run build
# Clean build artifacts
bun run clean
By migrating to Bun, this project now enjoys significant performance improvements:
- 25x faster package installation compared to npm
- Native TypeScript support without transpilation overhead
- Built-in test runner with Jest compatibility
- Hot reload with native watch mode
- Optimized bundling and dependency resolution
# Package management
bun install # Install dependencies
bun add <package> # Add dependency
bun remove <package> # Remove dependency
bun update # Update dependencies
bun audit # Security audit (v1.2.15+)
# Development
bun run dev # Development server
bun run build # Build project
bun test # Run tests
bun --watch src/index.ts # Watch mode
# Utilities
bun upgrade # Update Bun itself
bun --version # Check version
- Daily Requests: 200 messages per day
- Context Window: 128,000 tokens
- Output Limit: 32,000 tokens
- Plan Required: v0.dev Premium or Team
We welcome contributions! Please see our Development Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes and add tests
- Ensure all tests pass:
bun test
- Commit your changes:
git commit -m 'Add amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Nicolas Torres
- ๐ Location: Chile
- ๐ GitHub: @nicotordev
- ๐ผ LinkedIn: nicotordev
- ๐ฅ YouTube: NicoTorDev Channel
Full Stack Web Developer specializing in Node.js, React.js, Next.js, Vue.js, and modern web technologies with expertise in Bun runtime optimization.
- ๐ MCP Documentation
- ๐จ v0.dev API
- โก Bun Documentation
- ๐ง AI SDK
- ๐๏ธ TypeScript MCP SDK
If this project helped you, please give it a โญ on GitHub!
Support continued development and maintenance:
Become a sponsor on GitHub and help keep this project growing! Your support enables:
- ๐ Continuous Development - New features and improvements
- ๐ Bug Fixes & Maintenance - Quick responses to issues
- ๐ Documentation & Tutorials - Better learning resources
- ๐ค Community Support - Help other developers succeed
Built with โค๏ธ by Nicolas Torres in Chile ๐จ๐ฑ