Vercel Setup for AI Agents
Status: Configuration RequiredLast Updated: 2025-12-26
Purpose: Enable AI agents to manage Vercel deployments and environment variables
Current Status
✅ Vercel MCP Server: Configured in~/.cursor/mcp.json❌ Vercel Access Token: Not configured (required)
❌ Vercel CLI: Not installed (optional)
Required Setup
Step 1: Create Vercel Access Token
- Go to: https://vercel.com/account/tokens
- Click “Create Token”
- Configure:
- Name:
Sanctiv MCP - Full Access - Scope: Full Account (recommended) or specific team
- Expiration: No expiration (recommended for CI/CD)
- Name:
- Copy the token (alphanumeric string)
Step 2: Add Token to Cursor Cloud Agent Secrets
- Open Cursor Settings → Cloud Agent Secrets
- Add new secret:
- Key:
VERCEL_ACCESS_TOKEN✅ (Standard Vercel API token name) - Value: (paste token from Step 1)
- Key:
- Save
Step 3: Verify MCP Configuration
The official Vercel MCP is a hosted server. Configure it in~/.cursor/mcp.json or .cursor/mcp.json:
Optional: Install Vercel CLI
For local development and manual operations:Available Capabilities (Once Configured)
With Vercel MCP configured, agents can:-
✅ Manage Environment Variables
- List environment variables for projects
- Add/update/delete environment variables
- Set variables for specific environments (Production/Preview/Development)
-
✅ Deployment Management
- List deployments
- View build logs
- Check deployment status
- Rollback deployments
-
✅ Project Configuration
- View project settings
- Configure domains
- Access deployment URLs
Usage Examples (After Setup)
Troubleshooting
MCP Server Not Available
Symptom:list_mcp_resources returns no Vercel resources
Fix:
- Verify
VERCEL_ACCESS_TOKENis set in Cursor Cloud Agent Secrets - Restart Cursor to reload MCP servers
- Check
~/.cursor/mcp.jsonconfiguration
Token Invalid
Symptom: MCP calls fail with authentication errors Fix:- Regenerate token at https://vercel.com/account/tokens
- Update
VERCEL_ACCESS_TOKENin Cursor Cloud Agent Secrets - Restart Cursor
Related Documentation
- MCP Integrations - Complete MCP setup guide
- Dashboard Deployment - Vercel deployment instructions
- CI/CD Architecture - How Vercel fits in the pipeline
Next Steps
- ✅ Complete: Create Vercel access token
- ✅ Complete: Add
VERCEL_ACCESS_TOKENto Cursor Cloud Agent Secrets (if not already done) - ⏳ Pending: Verify MCP access with test command
- ⏳ Pending: Use MCP to configure environment variables
Token Variable Names
Standard:VERCEL_ACCESS_TOKEN ✅Alternative: Some tools may use
VERCEL_API_TOKEN, but VERCEL_ACCESS_TOKEN is the official standard used by:
- Vercel CLI
- Vercel MCP Server
- Vercel API documentation
VERCEL_ACCESS_TOKEN configured, you’re all set! No changes needed.