Vercel MCP server
55 operations4 webhooks
Manage Vercel projects, deployments, environment variables, domains, DNS, aliases, teams, webhooks and Edge Config.
Try Vercel with your agent
Connect Vercel, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Vercel on my account, then run one read-only example and show me the result.
Vercel tools and triggers
Tools are what your agent can do in Vercel through Corsair's MCP server. Triggers are the Vercel events a routine can start from.
Domains
- Add DomainWrite
Add a domain you already own to the account. No purchase or transfer. It may need ownership verification through DNS before it serves; zone: true creates a Vercel DNS zone (use when its nameservers point at Vercel). To serve it from a project, also call addProjectDomain.
domains.addDomain
- Add Project DomainWrite
Assign a domain to a project, optionally as a redirect or tied to a git branch or custom environment. If verified comes back false, set the record listed in verification, then call verifyProjectDomain. Errors if the domain is already on the project.
domains.addProjectDomain
- Delete DomainDestructive
Remove a domain from the account. Also removes its aliases and every DNS record in its Vercel DNS zone; the records cannot be recovered. Does not cancel a registration held at another registrar.
domains.deleteDomain
- Get DomainRead-only
Get one account domain by name: whether ownership is verified, current and intended nameservers, whether Vercel serves its DNS (serviceType), and purchase/expiry dates when bought through Vercel.
domains.getDomain
- Get Domain ConfigRead-only
Check whether a domain's DNS points at Vercel: misconfigured, configuredBy (A, CNAME, http or null) and the recommended A and CNAME values to set at the DNS provider. Pass projectIdOrName for a domain not on a project yet.
domains.getDomainConfig
- Get DomainsRead-only
List the domains in the account or team (apex domains, not per-project assignments), newest first, 20 per page by default. For the next page pass pagination.next as until.
domains.getDomains
- Get Project DomainRead-only
Get one domain on a project, including the verification challenge (the DNS record to set) when verified is false.
domains.getProjectDomain
- Get Project DomainsRead-only
List the domains assigned to a project (custom domains and *.vercel.app) with their redirect, git branch and verification state. Filters: production, target, gitBranch, verified, redirects, redirect, customEnvironmentId.
domains.getProjectDomains
- Remove Project DomainDestructive
Unassign a domain from a project; it stops serving that project immediately. The domain stays in the account and can be added back, though it may need verifying again. removeRedirects: true also removes the project domains that redirect to it.
domains.removeProjectDomain
- Update Project DomainWrite
Change a project domain's git branch or redirect (target domain and status code). Pass null to clear a field.
domains.updateProjectDomain
- Verify Project DomainWrite
Re-check an unverified project domain's verification challenge and mark it verified once the DNS record is in place. Errors if the challenge isn't satisfied yet.
domains.verifyProjectDomain
Projects
- Create ProjectWrite
Create a project, optionally connected to a Git repo and with initial environment variables.
projects.createProject
- Delete ProjectDestructive
Delete a project with all its deployments, domains and environment variables. Cannot be undone.
projects.deleteProject
- Get ProjectRead-only
Get a project by id or name, with its settings and latest deployments.
projects.getProject
- Get Project MembersRead-only
List the members of a project and their project roles.
projects.getProjectMembers
- Get ProjectsRead-only
List projects in the team, newest first, with optional search and repo filters.
projects.getProjects
- Pause ProjectWrite
Pause a project: its production deployment stops serving until unpaused.
projects.pauseProject
- Promote DeploymentWrite
Make an existing production build (an earlier or staged production deployment) the live production deployment, without rebuilding. Vercel refuses preview deployments (422); redeploy those with target production instead. Runs in the background: getProject with rollbackInfo shows its jobStatus.
projects.promoteDeployment
- Rollback DeploymentWrite
Roll production back to an earlier deployment (Instant Rollback).
projects.rollbackDeployment
- Unpause ProjectWrite
Unpause a paused project so production serves again.
projects.unpauseProject
- Update ProjectWrite
Update project settings: name, framework, build/dev/install commands, Node version, protection.
projects.updateProject
Deployments
- Cancel DeploymentWrite
Stop a deployment that is still queued or building. Fails with 400 once it is READY, ERROR or already CANCELED. Redeploy to build it again.
deployments.cancelDeployment
- Create DeploymentDestructive
Start a deployment from a Git ref, from inline files, or as a redeploy of an existing deployment. It builds in the background: follow readyState with getDeployment. target production replaces the live site once ready.
deployments.createDeployment
- Delete DeploymentDestructive
Delete a deployment by id or hostname. Its URL stops serving and its build output and logs are gone. Cannot be undone.
deployments.deleteDeployment
- Get DeploymentRead-only
Get one deployment by id or hostname: readyState (QUEUED, BUILDING, READY, ERROR, CANCELED), URL, aliases, creator, Git metadata and error details.
deployments.getDeployment
- Get Deployment EventsRead-only
Read the build logs of a deployment: stdout/stderr lines and state changes, oldest first by default. Returns what has been logged so far; it does not wait for new lines.
deployments.getDeploymentEvents
- Get Deployment FilesRead-only
Get the source file tree of a deployment made with the CLI or the API files field. Git deployments have no file tree and return 404.
deployments.getDeploymentFiles
- Get DeploymentsRead-only
List deployments, newest first, filtered by project, environment, state, branch, commit or creator. Page with until = pagination.next.
deployments.getDeployments
Aliases
- Assign AliasWrite
Point a hostname at a deployment. If the hostname already serves another deployment it moves, so live traffic switches; the response names the old deployment so it can be moved back.
aliases.assignAlias
- Delete AliasDestructive
Remove an alias by id or hostname. The hostname stops serving the deployment until it is assigned again, and share links on it are lost.
aliases.deleteAlias
- Get AliasRead-only
Get one alias by id or hostname: the deployment and project it points at, redirect settings and creator.
aliases.getAlias
- Get AliasesRead-only
List aliases (hostnames pointing at deployments), newest first, filtered by domain or project. Page with until = pagination.next.
aliases.getAliases
- Get Deployment AliasesRead-only
List the aliases (hostnames) currently pointing at a deployment.
aliases.getDeploymentAliases
Edge Config
- Get Edge ConfigRead-only
Get one Edge Config (Global Config) by id: slug, item count, size and digest.
edgeConfig.getEdgeConfig
- Get Edge Config ItemRead-only
Read one Edge Config (Global Config) item by key. Returns found: false when the key does not exist.
edgeConfig.getEdgeConfigItem
- Get Edge Config ItemsRead-only
List every item (key, JSON value, description) stored in an Edge Config (Global Config).
edgeConfig.getEdgeConfigItems
- Get Edge ConfigsRead-only
List the team’s Edge Configs (called Global Config in Vercel’s API): id, slug, item count and size.
edgeConfig.getEdgeConfigs
- Update Edge Config ItemsWrite
Change several Edge Config (Global Config) items in one request: create, update, upsert or delete items by key. A delete removes the item and its value for good.
edgeConfig.updateEdgeConfigItems
Envs
- Create Env VariableWrite
Add one or several environment variables to a project (key, value, type, target environments, optional Git branch). Variables that already exist are listed under failed unless upsert is true. Takes effect on the next deployment.
envs.createEnvVariable
- Delete Env VariableDestructive
Delete an environment variable by id. Its value is gone for good; deployments built after this no longer get it.
envs.deleteEnvVariable
- Get Env VariableRead-only
Get one environment variable by id, including its DECRYPTED value (the secret itself) for encrypted and plain variables. Sensitive variables never return a value.
envs.getEnvVariable
- Get Env VariablesRead-only
List a project’s environment variables: key, type, targets, Git branch and id. Values of encrypted and sensitive variables come back encrypted (plain ones as is); use getEnvVariable to read one decrypted value.
envs.getEnvVariables
- Update Env VariableWrite
Change an environment variable by id: its value, key, type, targets, Git branch or comment. Takes effect on the next deployment.
envs.updateEnvVariable
Dns
- Create RecordWrite
Add a DNS record to a domain whose DNS is on Vercel. Fields depend on type: A, AAAA, ALIAS, CAA, CNAME, TXT and NS take value; MX takes value and mxPriority; SRV takes srv; HTTPS takes https. Takes effect on live traffic and email.
dns.createRecord
- Delete RecordDestructive
Delete a DNS record from a domain. Takes effect on live traffic and email, and the record cannot be restored, only recreated with a new id.
dns.deleteRecord
- Get RecordsRead-only
List the DNS records in a domain's Vercel DNS zone, 20 per page by default. Empty when the domain's DNS is hosted elsewhere (check serviceType with domains.getDomain). For the next page pass pagination.next as until.
dns.getRecords
- Update RecordWrite
Change an existing DNS record by id (from getRecords): name, value, type, TTL, MX priority, SRV or HTTPS data, comment. Takes effect on live traffic and email; read the record first to be able to restore it.
dns.updateRecord
Webhooks
- Create WebhookWrite
Register a URL to receive Vercel events (deployments, projects, domains, env vars and more), for all projects or chosen ones. Returns the signing secret used to verify deliveries; it is shown only once, so store it.
webhooks.createWebhook
- Delete WebhookDestructive
Delete a webhook: Vercel stops sending events to its URL. A replacement gets a new id and signing secret.
webhooks.deleteWebhook
- Get WebhookRead-only
Get one webhook by id: URL, events and projects.
webhooks.getWebhook
- Get WebhooksRead-only
List the team’s webhooks: URL, subscribed events and the projects each covers. Filter by project.
webhooks.getWebhooks
Teams
- Get TeamRead-only
Get a team by id or slug (default: the connected team): name, slug, plan, creation date and the user’s membership.
teams.getTeam
- Get Team MembersRead-only
List a team’s members (default: the connected team) with their role, username and email. Filter by role or search by name, username or email.
teams.getTeamMembers
- Get TeamsRead-only
List the teams the token’s user belongs to, with each team’s id, slug, name and the user’s role.
teams.getTeams
User
- Get UserRead-only
Get the user the token belongs to: id, username, name, email and default team id.
user.getUser
Connect Vercel to Claude, ChatGPT or Cursor
- 1
Connect Vercel in Corsair
Add your Vercel API key or sign in with OAuth once in Corsair. Corsair stores the credential encrypted and makes the Vercel API calls for your agent, so it never goes into a prompt or a config file. Connect Vercel
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Vercel. On a ChatGPT personal plan, connect Vercel here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Vercel's read and write operations run right away and its 9 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
Vercel works with
FAQ
Install corsair and @corsair-dev/vercel, add the Vercel plugin, and connect with an API key or OAuth. Then call methods like corsair.vercel.api.aliases.assignAlias() from your app. Corsair verifies webhooks, stores tokens, and syncs data per tenant.
Yes. Vercel supports an API key or OAuth. Use credentials or OAuth scopes that match what you automate. Create them in the Vercel developer console, then paste into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Vercel, GitHub, Notion, Stripe, and the rest. Trigger Vercel from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for manage Vercel projects, deployments, environment variables, domains, DNS, aliases, teams, webhooks and Edge Config. Common builds include sync jobs, admin tooling, and agents that call Vercel APIs from your backend. Webhook handlers react to Vercel events and fan out to Slack, email, or other plugins in the same tenant. Local DB entities let you query synced Vercel records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Vercel API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/vercel in the open repo. When Vercel ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Vercel data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Vercel data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Vercel on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 9 destructive Vercel operations. You can change a link's mode at hub.corsair.dev/me.