# Vercel MCP server

> Manage Vercel deployments and inspect build and runtime application logs through the Vercel REST API.

- Repository: https://github.com/pulsemcp/mcp-servers
- Page: https://hostedmcp.org/servers/pulsemcp/vercel
- Official: yes
- Transport: stdio
- Stars: 81
- License: MIT
- Latest version: 0.1.3

## Install

### Claude Code

```sh
claude mcp add --env 'VERCEL_TOKEN=<YOUR_VERCEL_TOKEN>' vercel -- npx -y vercel-platform-mcp-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "vercel": {
      "command": "npx",
      "args": [
        "-y",
        "vercel-platform-mcp-server"
      ],
      "env": {
        "VERCEL_TOKEN": "<YOUR_VERCEL_TOKEN>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "vercel": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "vercel-platform-mcp-server"
      ],
      "env": {
        "VERCEL_TOKEN": "<YOUR_VERCEL_TOKEN>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"vercel","type":"stdio","command":"npx","args":["-y","vercel-platform-mcp-server"],"env":{"VERCEL_TOKEN":"<YOUR_VERCEL_TOKEN>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "vercel": {
      "command": "npx",
      "args": [
        "-y",
        "vercel-platform-mcp-server"
      ],
      "env": {
        "VERCEL_TOKEN": "<YOUR_VERCEL_TOKEN>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add vercel --env 'VERCEL_TOKEN=<YOUR_VERCEL_TOKEN>' -- npx -y vercel-platform-mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.vercel]
command = "npx"
args = ["-y", "vercel-platform-mcp-server"]

[mcp_servers.vercel.env]
VERCEL_TOKEN = "<YOUR_VERCEL_TOKEN>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'VERCEL_TOKEN=<YOUR_VERCEL_TOKEN>' vercel npx -- -y vercel-platform-mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "vercel": {
      "command": "npx",
      "args": [
        "-y",
        "vercel-platform-mcp-server"
      ],
      "env": {
        "VERCEL_TOKEN": "<YOUR_VERCEL_TOKEN>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `VERCEL_TOKEN` | yes | yes | Vercel API token for authentication. |
| `VERCEL_ENABLED_TOOLGROUPS` | no | no | Comma-separated list of tool groups to enable (readonly, readwrite). |
| `VERCEL_TEAM_ID` | no | no | Team ID for team-scoped operations. |
| `VERCEL_TEAM_SLUG` | no | no | Team URL slug for team-scoped operations. |

## Tools (10)

- `list_deployments`
- `get_deployment`
- `list_projects`
- `get_deployment_events`
- `get_runtime_logs`
- `create_deployment`
- `cancel_deployment`
- `delete_deployment`
- `promote_deployment`
- `rollback_deployment`

## FAQ

### How do I authenticate the Vercel MCP server?

You provide a Vercel API token in the VERCEL_TOKEN environment variable, which you can create in your Vercel account settings.

### Can I limit the Vercel MCP server to read-only operations?

Yes. Set VERCEL_ENABLED_TOOLGROUPS=readonly to enable only read-only tools and prevent any write operations.

### Can the server scope operations to a specific Vercel team?

Yes, you can set VERCEL_TEAM_ID or VERCEL_TEAM_SLUG to scope operations to a specific team.

### How long are runtime logs retained?

Retention depends on your plan: Hobby is 1 hour, Pro is 1 day, and Enterprise is 3 days (up to 30 days with Observability Plus).

### Can the server promote or roll back deployments?

Yes, it provides promote_deployment and rollback_deployment tools, along with create, cancel, and delete deployment tools.
