Skip to main content
Glama
README.md
# šŸš€ ExitVercel Copilot (MCP Server & Cursor/Claude Skill)

[![MCP Server](https://img.shields.io/badge/MCP-Protocol%20Ready-emerald)](https://modelcontextprotocol.io/)
[![Next.js 14/15](https://img.shields.io/badge/Next.js-14%20%7C%2015-black)](https://nextjs.org/)
[![Cloudflare Workers](https://img.shields.io/badge/Deploy-Cloudflare%20Workers-orange)](https://workers.cloudflare.com/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Web Demo](https://img.shields.io/badge/Live%20Web%20Scanner-pingguye.cn%2Fstackverdict-teal)](https://pingguye.cn/stackverdict/migrate)

> **Eliminate the Vercel Tax.** An autonomous AI Agent Skill and Model Context Protocol (MCP) server for **Cursor**, **Claude Desktop**, **Windsurf**, and **Claude Code** that audits Next.js codebases for proprietary lock-in, calculates true TCO savings, and automatically refactors your project to **Cloudflare Workers** with zero egress fees and $0 seat taxes.

---

## ⚔ Why Migrate? The Math Doesn't Lie

| Cost Dimension | Vercel Pro & Scaling | Cloudflare Workers + OpenNext | Net Savings |
| :--- | :--- | :--- | :--- |
| **Team Member Seats** | **$20 / dev / month** | **$0 / seat** (Unlimited team) | **100% Free** |
| **Asset & Media Bandwidth** | **$40 per 100 GB** overage | **$0 / GB Egress** (100% Zero-Egress) | **100% Free** |
| **Image Optimization** | **$5 per 1,000 images** (after 1k) | Cloudflare Free Cache-Control / Images | **90%+ Cost Cut** |
| **Baseline Compute** | $20/mo + function duration limits | $5/mo Workers Paid (10M requests) | **75% Cheaper** |
| **Small Team Annual Spend** | **~$2,340 / year** | **~$120 / year** | **Save $2,220 / yr (95% Cut)** |

---

## šŸ› ļø MCP Server Tools Included

1. `audit_nextjs_lockin(project_path)`: Scans your Next.js project AST for `next/image` cloud cliffs, middleware limits, and proprietary `@vercel/*` SDKs.
2. `calculate_cloudflare_savings(team_seats, monthly_bandwidth_gb, unique_images)`: Live TCO calculator modeling true monthly and annual cloud deltas.
3. `generate_migration_bundle(app_name, target_dir)`: Auto-generates production-ready OpenNext configs:
   - `wrangler.toml` (Asset binding + Node.js compat)
   - `open-next.config.ts` (Next.js 14/15 App Router Edge adapter)
   - `lib/cloudflare-image-loader.ts` (Decouples from Vercel image billing)
   - `.github/workflows/deploy-cloudflare.yml` (Automated CI/CD)

---

## šŸ“¦ Quickstart: Connect to Cursor IDE

In **Cursor** -> `Settings` -> `Features` -> `MCP Servers` -> `+ Add New MCP Server`:
- **Name**: `ExitVercel`
- **Type**: `command`
- **Command**: `python server.py` (or full path to `server.py`)

Then in Cursor Chat (`Ctrl+L` / `Cmd+L`), simply type:
> *"Audit my project for Vercel lock-in and generate Cloudflare Workers configs."*

---

## šŸ“¦ Quickstart: Connect to Claude Desktop

Add to your `claude_desktop_config.json`:
```json
{
  "mcpServers": {
    "exitvercel": {
      "command": "python",
      "args": ["/absolute/path/to/exitvercel-copilot/server.py"]
    }
  }
}
```

---

## šŸ’» Zero-Config Offline CLI

You can also run the audit and generator directly from your terminal with zero external dependencies:
```bash
# 1. Audit your current project
python scripts/migrate_cli.py --scan .

# 2. Generate migration bundle
python scripts/migrate_cli.py --generate --app my-app --target .
```

---

## 🌐 Live Interactive Web Scanner

Don't want to install anything? Test our live online repository scanner and interactive TCO calculator:
šŸ‘‰ **[https://pingguye.cn/stackverdict/migrate](https://pingguye.cn/stackverdict/migrate)**

---

## šŸ“„ License
MIT License. Built with ā¤ļø for the open-source and indie developer community.