Vercel MCP

Connect Claude Code or Codex to Vercel, diagnose a failed build, call a second model, and set up team access with Claude Enterprise-managed auth.

Published

Vercel MCP

When a Vercel build fails, you can give your coding agent the deployment URL and ask it to find the error, explain it against the code, and propose a fix. Vercel MCP gives the agent access to the build record. Since December 2, the same connection can also ask another model for a second opinion or generate and score images through AI Gateway.

Connect your coding agent to Vercel

Vercel MCP is Vercel's official remote server for the Model Context Protocol, an open standard that lets an assistant call tools. Think of the connection as a project badge. Claude Code or Codex can use it to inspect a deployment, but the badge only opens projects your account and the connection can access.

Run the command from Vercel's December 2 changelog in your terminal:

Bash
npx -y add-mcp https://mcp.vercel.com -g

The installer detects your AI clients. The -g flag makes the connection available across projects. Next, authorize the client. In Claude Code, type /mcp to authenticate. Codex CLI opens the browser for authorization. Sign in with the Vercel account that owns or can access the project, then grant the client access to the relevant team. For the rest of the terminal workflow, see how to use Claude Code.

A good first request is “List the teams and projects you can see.” If the project is missing, check the account and team grant before debugging the build. Your client's tool list tells you which actions it can actually take. The list and the parameters can vary by client, server configuration and permissions. Vercel's tools reference

A coding terminal connects through a Vercel MCP checkpoint to a room of project logs.
The agent reaches project records through the Vercel connection you authorize.

Which tools should you reach for?

JobWhat to ask the agent to do
Find the right projectUse list_teams and list_projects to locate it, then get_project to inspect its configuration.
Diagnose a buildFind the deployment with list_deployments, check its status with get_deployment, and read its build output with get_deployment_build_logs.
Investigate a live routeUse get_runtime_errors to group errors by affected route, then get_runtime_logs to read the relevant entries.
Review a previewUse web_fetch_vercel_url to fetch a deployment URL, including a protected preview your account can access.
Answer a project questionSearch Vercel documentation for a configuration question, or query Web Analytics for visitors, page views and custom events.
Consult a modelUse the AI Gateway tools below for a text reply, an image, a decision or extracted fields.

Start with a failed preview build. Give the agent the exact deployment URL and ask, “Which build step failed? Quote the error and show me the smallest code change that would address it.” The build-log tool accepts a deployment ID or URL and can filter to failing lines. If the error needs context, ask for the surrounding output. The MCP tool supplies the evidence. Your coding agent can then work on the repository, show you the patch and check the next deployment after you apply the fix. Build-log and deployment tools

A successful build with a broken checkout calls for a different request. An on-call developer could give the agent the route and deployment, ask for grouped runtime errors, then inspect the log entries around the failing request. A release reviewer could fetch a protected preview to check the content it serves before signing off. Each starts with the particular deployment under review.

Four new AI Gateway tools on December 2

Your coding agent can delegate a particular task to a model you choose. All four tools use your existing Vercel MCP sign-in, so you can make the call without creating a separate Gateway API key. December 2 release notes

ToolWhat goes in and what comes back
generate_ai_gateway_textSend a text conversation to a chosen Gateway text model and get its reply. For a second opinion on a proposed fix, send the error and patch as text. To compare models, send the same messages once per model.
generate_ai_gateway_imageDescribe an image and request up to four variants. You can choose size, quality and output format within the model's limits. The tool creates new images from text.
generate_ai_gateway_decisionAsk a defined question about one input. You can request the probability of a yes answer, a choice among supplied options, or a score on a scale you define. Choose a model that accepts images to score a thumbnail.
generate_ai_gateway_extractionGive the model text, a PDF or an image and name the fields you need. A developer working on invoice intake could request the vendor and invoice number, then inspect the returned values. A missing value comes back as null.

Cost. Vercel MCP is available on all Vercel plans. Each Gateway model call draws on the designated team's AI Gateway credits, including every image generated. A team-bound connection bills that team. Gateway tool and billing reference

Four mug thumbnails, one keeper

In Vercel's example, a developer needs a thumbnail of a matte black ceramic mug against white. The agent asks the image tool for four candidates. It then asks a decision model to judge each candidate against the same description and keeps the highest-scoring image. Both jobs happen in one session, and the brief doubles as the scoring criterion.

Four images of a black mug pass from a generation bench to a scoring bench, with one thumbnail selected.
Vercel's example scores each candidate for its fit to the original description.

That distinction matters for a storefront. A thumbnail can match “matte black ceramic mug” beautifully and still have the wrong handle for the mug you sell. Use the score to shortlist a concept. Have someone who knows the product check its likeness before publishing.

Give a Claude organization access

On Claude Team or Enterprise, an admin can set up Vercel once for eligible members. In Organization settings → Connectors, choose Set up auto-connect for Vercel, select Claude-issued, and connect the Vercel team. A Vercel owner, or a member with settings and app-installation permissions, selects the projects and installs the app. Back in Claude, run the connector test, choose the roles that get access, and save. Claude Enterprise-managed auth announcement

A confirmed Vercel team member connects automatically when their primary or verified secondary email matches their Claude account. Claude vouches for that identity. Vercel issues a short-lived token limited by the member's role, project access and the app's permissions. Claude renews it automatically. For a pilot, an admin could select one project and check that an eligible developer sees it before extending the rollout.

Two workflows worth building

My first pick is a thumbnail review tool for storefront teams. A merchandising lead could supply a product brief and get a contact sheet with one recommended thumbnail and the criterion used to select it. The smallest version worth trying adds a human approval step to Vercel's mug example and records which recommendation the merchandiser actually chose. Its value depends on how often the shortlist survives that check.

A failed-build report could serve an agency maintaining several client projects. Start with one deployment URL and return the failing log line, the proposed patch and the status of the subsequent build. I'd try it inside an agency that already handles these incidents. A standalone product would have to earn its place over a saved prompt, perhaps by preserving a consistent handoff between developers. Teams organizing their existing agent instructions can start with Claude skills by job.

Where MCP fits in the Vercel stack

Choose MCP when the person doing the work already has a coding agent open. Choose the AI SDK when you're writing a model-powered feature into a TypeScript application. AI Gateway is the service that routes model requests across providers and tracks spending. The MCP tools give your agent a way to use that service. For application setup and billing, see the Vercel AI Gateway guide. If the job is handing that work to a teammate, Vercel Board gives people and agents shared threads and tasks.

What does Vercel MCP do?

It lets a connected assistant work with Vercel resources. A developer can ask it to read build logs, check a preview or call a model. The available tools and projects depend on the connection.

How is MCP different from an API?

An API describes how software can request an operation from a service. MCP gives assistants a standard way to discover the tools a server offers and call them. Here, Vercel exposes tools such as “read this deployment's logs” through that standard.

How does Vercel MCP authentication work?

For an individual connection, complete the Vercel sign-in in your browser and authorize the relevant team. For Claude auto-connect, an admin installs the connector and eligible members receive access under their own Vercel permissions.

Choosing where your coding agents should send model requests? Compare the best AI gateways for coding agents.

Published
Category
Build
Related Articles
LobeChat Is Now LobeHub: What It Does, What It Costs, and How to Start

LobeChat Is Now LobeHub: What It Does, What It Costs, and How to Start

Connect multiple models in LobeHub, add a provider key, and start a local Docker install. Check the license before distributing a modified app.Dec 3, 2026Build
AWS Kiro: What It Is, What It Costs, and How to Start

AWS Kiro: What It Is, What It Costs, and How to Start

How AWS Kiro turns a feature request into a spec, which models and plans you can use, and how to start in the IDE or terminal.Dec 3, 2026Build
What Is OpenRouter? How It Works and How to Start

What Is OpenRouter? How It Works and How to Start

Get an OpenRouter API key, make your first request, and see how provider fallback and data settings change which models your app can use.Dec 3, 2026Build
Antigravity CLI: What It Is, What It Costs, and How to Start

Antigravity CLI: What It Is, What It Costs, and How to Start

Install Google’s agy terminal agent, review your first edit, and run a headless prompt. See who moved from Gemini CLI and what Google’s terms permit.Dec 3, 2026Build
Claude Code Channels

Claude Code Channels

Message a running Claude Code session from your phone. Set up Telegram, connect a Discord team room, and choose who can send requests or approve tools.Dec 2, 2026Build
Claude Worktree

Claude Worktree

Run Claude Code sessions in separate Git worktrees. Start two features, test a pull request, isolate a subagent and decide which files survive cleanup.Dec 2, 2026Build
AgentMail: What It Is, What It Costs, and How to Start

AgentMail: What It Is, What It Costs, and How to Start

Give an AI agent its own email address. See the first inbox call in Python, the free plan’s limits, and when Gmail or SMTP fits better.Dec 2, 2026Build
Antigravity CLI in Claude Code and Codex: The Setup Google Allows

Antigravity CLI in Claude Code and Codex: The Setup Google Allows

Google's terms now let Claude Code or Codex call the Antigravity CLI as a subagent. The exact rule, what stays forbidden, and a setup built from the docs.Dec 2, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.