MCP server connecting Claude to Vercel
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add vercel-integration --env VERCEL_API_TOKEN='<VERCEL_API_TOKEN>' -- node path_to_the_build_indexjs~/.codex/config.toml
[mcp_servers.vercel-integration]
command = "node"
args = ["path_to_the_build_indexjs"]
env = { VERCEL_API_TOKEN = "<VERCEL_API_TOKEN>" }
# codex mcp add vercel-integration --env VERCEL_API_TOKEN='<VERCEL_API_TOKEN>' -- node path_to_the_build_indexjs~/.cursor/mcp.json
{
"mcpServers": {
"vercel-integration": {
"command": "node",
"args": [
"path_to_the_build_indexjs"
],
"env": {
"VERCEL_API_TOKEN": "<VERCEL_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"vercel-integration": {
"type": "stdio",
"command": "node",
"args": [
"path_to_the_build_indexjs"
],
"env": {
"VERCEL_API_TOKEN": "<VERCEL_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"vercel-integration": {
"command": "node",
"args": [
"path_to_the_build_indexjs"
],
"env": {
"VERCEL_API_TOKEN": "<VERCEL_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"vercel-integration": {
"command": "node",
"args": [
"path_to_the_build_indexjs"
],
"env": {
"VERCEL_API_TOKEN": "<VERCEL_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"vercel-integration": {
"command": "node",
"args": [
"path_to_the_build_indexjs"
],
"env": {
"VERCEL_API_TOKEN": "<VERCEL_API_TOKEN>"
}
}
}
}需要的环境变量
VERCEL_API_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。