
Vercel Integration
STDIOMCP server for Vercel API integration enabling deployment and project management
MCP server for Vercel API integration enabling deployment and project management
A Model Context Protocol (MCP) integration for Vercel's REST API, providing programmatic access to Vercel deployment management through AI Assistants like Claude and Cursor.
This MCP server implements Vercel's core API endpoints as tools, enabling:
vercel-list-all-deployments
- List deployments with filteringvercel-get-deployment
- Retrieve specific deployment detailsvercel-list-deployment-files
- List files in a deploymentvercel-create-deployment
- Create new deploymentsvercel-create-project
- Create new Vercel projectsvercel-list-projects
- List all projects with paginationvercel-find-project
- Find a specific project by ID or namevercel-create-environment-variables
- Create multiple environment variablesvercel-get-project-domain
- Get information about a specific domain within a projectvercel-get-environments
- Access project environment variablesvercel-create-custom-environment
- Create custom environments for projectsvercel-list-all-teams
- List all accessible teamsvercel-create-team
- Create a new team with custom slug and nameFor detailed information about each tool, please refer to the following documentation:
git clone [your-repo-url] cd vercel-mcp npm install
.env
file:VERCEL_API_TOKEN=your_api_token_here
npm start
Claude supports MCP tools via its Anthropic Console or Claude Code interface.
npm start
/connect
command:
/connect mcp --path [path-to-server]
For CLI-based servers using stdio, specify the path to the server executablePlease list my recent Vercel deployments using the vercel-list-all-deployments tool
mcp-proxy
Then connect in Claude:npm install -g @modelcontextprotocol/proxy mcp-proxy --stdio --cmd "npm start" --port 3399
/connect mcp --url http://localhost:3399
Cursor has built-in support for MCP tools through its extension system.
npm start
You can also use the Model Context Protocol SDK to integrate with the server programmatically 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); // You can also use this in an Express server: app.post("/api/deployments", async (req, res) => { try { const result = await client.callTool({ name: "vercel-list-all-deployments", args: req.body, }); res.json(result); } catch (error) { res.status(500).json({ error: error.message }); } });
Here are some quick examples to get you started. For comprehensive documentation and more examples, please refer to the tool documentation.
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", }, }, });
For more detailed examples including file deployments, environment management, and team operations, see the documentation:
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
docker build --target builder -t vercel-mcp-dev . docker run -it --rm \ -e VERCEL_API_TOKEN=your_token_here \ -p 3399:3399 \ -v $(pwd)/src:/app/src \ vercel-mcp-dev
src/
├── constants/ # Tool definitions
├── tools/
│ ├── deployments/ # Deployment handlers
│ │ ├── handlers.ts
│ │ ├── schema.ts
│ │ └── types.ts
│ └── environments/# Environment management
├── utils/ # API helpers
└── index.ts # Server entrypoint
Variable | Description | Required |
---|---|---|
VERCEL_API_TOKEN | Vercel access token | Yes |
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)MIT License - see LICENSE for details