The Vercel MCP Integration provides programmatic access to Vercel deployment management through AI Assistants like Claude and Cursor. It implements Vercel's core API endpoints as tools, enabling you to monitor deployments, manage environment variables, track project status, and handle team operations through a Model Context Protocol server.
git clone [your-repo-url]
cd vercel-mcp
npm install
.env
file:VERCEL_API_TOKEN=your_api_token_here
npm start
npm start
/connect
command:
/connect mcp --path [path-to-server]
Please list my recent Vercel deployments using the vercel-list-all-deployments tool
npm install -g @modelcontextprotocol/proxy
mcp-proxy --stdio --cmd "npm start" --port 3399
Then connect in Claude: /connect mcp --url http://localhost:3399
npm start
Use the Model Context Protocol SDK in your own applications:
import { Client } from "@modelcontextprotocol/sdk/client";
// Create an MCP client connected to a stdio transport
const client = new Client({
transport: "stdio",
cmd: "npm --prefix /path/to/vercel-mcp start",
});
// Or connect to an HTTP transport
const httpClient = new Client({
transport: "http",
url: "http://localhost:3399",
});
// Connect to the server
await client.connect();
// List available tools
const { tools } = await client.listTools();
console.log(
"Available tools:",
tools.map((t) => t.name)
);
// Call a tool
const result = await client.callTool({
name: "vercel-list-all-deployments",
args: { limit: 5 },
});
console.log("Deployments:", result);
const response = await mcpClient.callTool({
name: "vercel-list-all-deployments",
args: {
limit: 5,
target: "production",
},
});
const project = await mcpClient.callTool({
name: "vercel-create-project",
args: {
name: "my-awesome-project",
framework: "nextjs",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
},
});
const deployment = await mcpClient.callTool({
name: "vercel-create-deployment",
args: {
project: "my-project-id",
gitSource: {
type: "github",
ref: "main",
},
},
});
docker build -t vercel-mcp .
docker run -it --rm \
-e VERCEL_API_TOKEN=your_token_here \
-p 3399:3399 \
vercel-mcp
docker run -d \
--name vercel-mcp \
--restart unless-stopped \
-e VERCEL_API_TOKEN=your_token_here \
-p 3399:3399 \
vercel-mcp
Variable | Description | Required |
---|---|---|
VERCEL_API_TOKEN |
Vercel access token | Yes |
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "vercel" '{"command":"npx","args":["-y","vercel-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"vercel": {
"command": "npx",
"args": [
"-y",
"vercel-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"vercel": {
"command": "npx",
"args": [
"-y",
"vercel-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect