Deploy MCP
🚀 Deploy MCP
将任何网站部署到 Vercel — 直接从你的 AI IDE 中,几秒内完成。
免费。开源。零服务器成本。为 vibe 编码者而生。
快速开始 • IDE 设置 • 工具 • 故障排除 • 贡献
✨ 什么是 Deploy MCP?
Deploy MCP 是一个免费、开源的 MCP(模型上下文协议)服务器,可让你的 AI 编码助手(Cursor、VS Code、Antigravity 等)自动将你的网站部署到 Vercel — 并支持完整的环境变量同步、构建验证和 Git 安全检查。
只需在 AI 聊天中说 "部署这个" 即可。就这么简单。
You: "Deploy this website."
AI: ✓ Next.js detected
✓ Build check passed
✓ Environment variables verified (secrets never exposed)
✓ Deployed to Vercel
🎉 Live at: https://my-portfolio.vercel.appRelated MCP server: Vercel MCP Relay Server
⚡ 快速开始 — 3 步部署
第 1 步 — 运行设置(仅一次)
打开终端并运行:
npx @tusharjain-19/deploy-mcp setup这将:
询问你的 Vercel 个人访问令牌(见下方获取方法)
安全地保存在你的机器上
打印要粘贴到 IDE 中的确切配置
如何获取 Vercel 令牌:
点击 "创建令牌"
随意命名(例如
deploy-mcp)将范围设置为 完全访问
复制令牌并在设置向导要求时粘贴
第 2 步 — 添加到你的 IDE
复制适合你 IDE 的配置并添加到设置文件中:
Cursor
文件位置:%APPDATA%\Cursor\User\settings\cursor_settings.json(Windows)或 ~/.cursor/rules/cursor_settings.json(Mac/Linux)
{
"mcpServers": {
"deploy": {
"command": "npx",
"args": ["-y", "@tusharjain-19/deploy-mcp"],
"disabled": false
}
}
}VS Code + Claude 扩展
文件位置:settings.json(Ctrl+Shift+P → "打开设置 JSON")
{
"claude.mcp.servers": [
{
"name": "deploy",
"command": "npx",
"args": ["-y", "@tusharjain-19/deploy-mcp"]
}
]
}Antigravity(VS Code + Antigravity AI)
文件位置:settings.json(Ctrl+Shift+P → "打开设置 JSON")
{
"claude.mcp.servers": [
{
"name": "deploy",
"command": "npx",
"args": ["-y", "@tusharjain-19/deploy-mcp"]
}
]
}✅ 保存配置后重启你的 IDE。
第 3 步 — 部署!
在你的 IDE 中打开项目文件夹,然后告诉 AI:
"Deploy this website"AI 会处理后续所有事情:
1. Scans your project → Detects Next.js / React / Vue / etc.
2. Runs build check → Makes sure your code compiles
3. Checks git status → Warns if files aren't committed
4. Scans environment variables → Keys only, values NEVER exposed to AI
5. Syncs missing env vars → Uploads secrets directly to Vercel
6. Deploys to Vercel → Triggers the actual deployment
7. Polls until live → Waits and confirms it's up
8. Returns your live URL 🎉🔄 版本控制(Git)— 内置
Deploy MCP 内置了完整的 Git 支持。你的 AI 可以:
功能 | 向 AI 询问的命令 |
检查未提交的更改 | "检查我的 git 状态" |
部署前提交并推送 | "提交我的更改并部署" |
检测泄露的 | "检查我的 .env 是否在 git 中" |
最佳实践: 部署前始终提交代码。向 AI 询问:"提交我的更改,消息为 'fix: update homepage',然后部署"
Git 工具会在部署过程中自动工作 — 如果你有未提交的更改,AI 会警告你并询问是否先提交。
🧰 可用工具
你的 AI 可以访问 4 个模块中的 16 个工具:
📦 项目工具
工具 | 功能 |
| 一体化部署 — 检测、检查、同步环境变量、部署、轮询,并自动诊断失败 |
| 检测框架(Next.js、React、Vue 等)和构建配置 |
| 验证项目能否成功构建 |
| 完整的预检报告 — git、构建、环境变量,一切尽在其中 |
| 永久删除 Vercel 项目(需要你通过操作系统弹窗手动批准) |
🔐 环境变量工具
安全性: 秘密值永远不会到达 AI。仅显示键名。值直接从你的机器发送到 Vercel。
工具 | 功能 |
| 列出所有本地 |
| 显示 Vercel 上缺少哪些变量(与本地 |
| 直接从你的机器上传缺失的秘密到 Vercel |
| 生成一个安全的 |
| 检查本地环境变量是否符合 |
| 🚨 检测是否有任何 |
🌿 Git 工具
工具 | 功能 |
| 显示分支、未提交文件和更改数量 |
| 提交所有更改并推送到远程 |
☁️ Vercel 工具
工具 | 功能 |
| 触发部署 |
| 轮询当前部署状态 |
| 获取原始构建日志以进行调试 |
| 解析日志并给出 AI 可读的修复建议 |
🛠 故障排除
❌ "Vercel 未认证"或令牌错误
npx @tusharjain-19/deploy-mcp setup重新运行设置并粘贴一个新令牌。确保令牌具有完全访问范围。
❌ "MCP 未在我的 IDE 中显示"
仔细检查你粘贴的 JSON 配置 — 查找缺失的逗号或括号
完全重启你的 IDE(关闭所有窗口,重新打开)
手动测试服务器:
npx @tusharjain-19/deploy-mcp你应该看到:
Deploy MCP server running on stdio
❌ 部署期间"构建失败"
向你的 AI 询问:"诊断构建失败并修复它" — diagnose_build_failure 工具会自动解析错误日志并告诉 AI 确切需要修复什么。
常见原因:
缺少
npm install→ 在你的项目中运行npm installNode.js 版本错误 → 在
package.json中添加"engines": { "node": "20" }缺少环境变量 → 让 AI 同步你的环境变量
❌ "环境变量未同步"
确保你的 Vercel 令牌具有完全访问权限
检查你告诉 AI 的项目名称与你的 Vercel 项目名称完全匹配
运行:"将我的本地环境变量与 Vercel 对比" — AI 将准确显示缺少的内容
❌ ".env 文件意外进入 Git"
向你的 AI 询问:"检查我的 .env 是否被 git 跟踪"
check_env_leak 工具会检测到它。如果发现,请修复:
# Remove .env from git tracking (keeps the file locally)
echo ".env" >> .gitignore
echo ".env.local" >> .gitignore
git rm --cached .env
git rm --cached .env.local
git commit -m "fix: remove .env from git tracking"❌ 本地出现"模块未找到"错误
npm install
npm run build❌ "找不到 Vercel CLI"
Deploy MCP 直接使用 Vercel REST API — 无需 Vercel CLI。但如果你仍然想要 CLI:
npm install -g vercel⚙️ 工作原理
┌─────────────────────────────────────────────────┐
│ Your IDE (Cursor / VS Code / Antigravity) │
│ │
│ You say: "Deploy this" │
└───────────────────┬─────────────────────────────┘
│ MCP Protocol (stdio)
▼
┌─────────────────────────────────────────────────┐
│ Deploy MCP Server (runs on YOUR machine) │
│ │
│ ├── detect_project() → Read package.json │
│ ├── check_project() → Run build locally │
│ ├── scan_env() → Read .env names only │
│ ├── sync_env() → Push secrets directly │
│ └── deploy_to_vercel() → Trigger deployment │
└───────────────────┬─────────────────────────────┘
│ Vercel REST API
▼
┌─────────────────────────────────────────────────┐
│ Vercel │
│ ├── Finds or creates your project │
│ ├── Receives encrypted env vars │
│ ├── Builds your site │
│ └── Returns your live URL 🎉 │
└─────────────────────────────────────────────────┘安全模型
❌ INSECURE (secret touches the AI):
.env → AI Model → MCP → Vercel
✅ DEPLOY MCP (secret never leaves your machine):
.env → MCP Process → Vercel API
↑
AI sees key NAMES only, never values🔧 开发设置
想从源码本地运行 Deploy MCP?
# 1. Clone the repo
git clone https://github.com/Tusharjain-19/deploy-mcp.git
cd deploy-mcp/mcp-server
# 2. Install dependencies
npm install
# 3. Build TypeScript
npm run build
# 4. Run setup wizard
npm run setup
# 5. Start the server (IDEs do this automatically)
npm run dev无需 IDE 测试所有工具
npx @modelcontextprotocol/inspector npx tsx src/index.ts这将打开一个浏览器 UI,你可以手动调用每个工具并查看输出。
可用脚本
脚本 | 命令 | 描述 |
构建 |
| 将 TypeScript 编译到 |
开发 |
| 使用 tsx 直接运行服务器 |
设置 |
| 运行设置向导 |
📁 项目结构
mcp-server/
├── src/
│ ├── index.ts ← MCP server entry (all 16 tools registered)
│ │
│ ├── tools/
│ │ ├── smart-deploy.ts ← All-in-one deploy with auto-diagnose
│ │ ├── check-project.ts ← Build validation
│ │ ├── deploy.ts ← Vercel deployment trigger
│ │ ├── diagnose.ts ← Build failure diagnosis
│ │ ├── env-vars.ts ← .env scanning, diffing, syncing
│ │ ├── git.ts ← Git status, commit, leak detection
│ │ ├── logs.ts ← Deployment log fetching
│ │ ├── delete-project.ts ← Safe project deletion with OS prompt
│ │ └── project-report.ts ← Master pre-flight report
│ │
│ ├── vercel/
│ │ └── client.ts ← Vercel REST API wrapper
│ │
│ ├── utils/
│ │ ├── config.ts ← Token storage/retrieval
│ │ ├── filesystem.ts ← File reading utilities
│ │ └── framework-detector.ts ← Framework & package manager detection
│ │
│ └── cli/
│ ├── index.ts ← CLI entry point
│ └── setup.ts ← Interactive setup wizard
│
├── dist/ ← Compiled JS (auto-generated, git-ignored)
├── package.json
├── tsconfig.json
└── README.md🗺 路线图
版本 | 状态 | 功能 |
v1.0 | ✅ 已完成 | 项目检测、构建检查、Vercel 部署、状态轮询 |
v1.5 | ✅ 已完成 | 环境变量扫描(无泄露)、环境变量差异、环境变量同步、Git 工具、项目报告 |
v1.6 | ✅ 已完成 | 智能部署(自动诊断失败)、安全项目删除 |
v2.0 | 🔄 计划中 | AI 错误自动修复循环、预览部署、回滚 |
v3.0 | 💭 未来 | Netlify/Railway 支持、GitHub 集成、团队部署 |
🔄 自动更新
由于你的 IDE 配置使用 npx -y @tusharjain-19/deploy-mcp,Node.js 会在你的 IDE 每次启动服务器时自动从 npm 拉取最新版本。无需手动更新命令 — 你总能自动获得最新功能和修复。
🤝 贡献
欢迎贡献!这是一个为社区构建的免费开源项目。
# Fork the repo, then:
git clone https://github.com/YOUR-USERNAME/deploy-mcp.git
cd deploy-mcp/mcp-server
npm install
# Create a feature branch
git checkout -b feature/my-feature
# Make changes, then build and test
npm run build
# Commit and push
git commit -m "feat: add my feature"
git push origin feature/my-feature
# Open a Pull Request on GitHub对于重大更改,请先打开一个 issue。错误修复和文档改进始终欢迎!
🔐 安全性
原则 | 实现方式 |
秘密永远不会触及 AI |
|
无外部服务器 | MCP 完全在你的机器上运行 |
未经同意不覆盖 |
|
泄露检测 |
|
令牌本地存储 |
|
无硬编码凭据 | 代码库中零硬编码令牌 |
👨💻 关于
由 Tushar Jain 构建 — 连接 AI 与交付真实产品之间的桥梁。
📄 许可证
MIT 许可证 — 永远 100% 免费。可用于商业项目、修改、分发。完整文本见 LICENSE。
为世界各地的 vibe 编码者用 ❤️ 构建
⭐ 如果这个项目为你节省了时间,请给仓库点个星!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to automate Next.js development including project scaffolding, React component generation, API route creation, and full-stack application workflows with TypeScript and Tailwind CSS support.MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with the Vercel REST API to manage projects, deployments, domains, environment variables, and teams through natural language commands.
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with Vercel API for managing projects, deployments, domains, and environment variables.
- AlicenseAqualityBmaintenanceUniversal deployment tracker for AI assistants, enabling real-time monitoring and management of deployments across Vercel, Netlify, and Cloudflare Pages without context switching.5359Apache 2.0
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Your AI builds, deploys, and runs full-stack apps on a hosted workspace created at first sign-in.
Form companies, manage bank accounts, cards, invoices and more — directly from your AI coding tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tusharjain-19/deploy-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server