Vercel MCP Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides integration with Codeium's Cascade for managing Vercel projects.

  • Supports creating and managing Next.js projects through Vercel deployments.

  • Provides full administrative control over Vercel deployments, including project management, deployments, domains, environment variables, and more.

Vercel MCP サーバー 🚀

🔥 CursorのComposerとCodeiumのCascadeの両方を通じて、Vercelのデプロイメントを完全に管理できる強力なModel Context Protocol(MCP)サーバーです。このツールは、デプロイメント、ドメイン、環境変数など、包括的な機能を備え、シームレスなプロジェクト管理を実現します。

📚 目次

🔧 前提条件

  • Node.js >= 16.x
  • npm >= 8.x
  • 以下の機能を備えた Vercel アカウント:
    • アクセストークン
    • チームID(オプション)
    • プロジェクトID(オプション)
  • Cursor IDE または Codeium の Cascade (有料ユーザー向け)

🚀 クイックスタート

📥 インストール

# Clone the repository git clone https://github.com/Quegenx/vercel-mcp-server.git cd vercel-mcp-server # Install dependencies npm install # Build the project npm run build

⚙️ 構成

  1. 依存関係をインストールしてプロジェクトをビルドします。
    npm install npm run build
  2. Vercel アクセス トークンを設定します。
    • アクセストークンを生成するには、 https://vercel.com/account/tokensにアクセスしてください。
    • 次の両方のファイルでトークンを更新します。src/config/constants.ts内:
      export const DEFAULT_ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"; // Replace with your actual token
      src/index.ts内:
      export const DEFAULT_ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"; // Replace with your actual token
  3. カーソルの MCP 設定で、次のコマンドを使用してサーバーを追加します。macOSの場合:
    # Default installation /usr/local/bin/node /path/to/vercel-mcp/dist/index.js # Homebrew installation /opt/homebrew/bin/node /path/to/vercel-mcp/dist/index.js # NVM installation ~/.nvm/versions/node/v18.x.x/bin/node /path/to/vercel-mcp/dist/index.js
    Windowsの場合:
    # Default installation C:\Program Files\nodejs\node.exe C:\path\to\vercel-mcp\dist\index.js # NVM for Windows C:\nvm4w\nodejs\node.exe C:\path\to\vercel-mcp\dist\index.js # Scoop installation C:\Users\username\scoop\apps\nodejs\current\node.exe C:\path\to\vercel-mcp\dist\index.js
    Linuxの場合:
    # Default installation /usr/bin/node /path/to/vercel-mcp/dist/index.js # NVM installation ~/.nvm/versions/node/v18.x.x/bin/node /path/to/vercel-mcp/dist/index.js
    /path/to/vercel-mcpまたはC:\path\to\vercel-mcp実際のインストール パスに置き換えます。Node.js パスを見つけるには:
    # macOS/Linux which node # Windows where node

注意: Vercel アクセス トークンを安全に保管し、バージョン管理にコミットしないでください。

🎯 機能

🎯 利用可能なツール

チームマネジメント

  • チーム: create_teamdelete_teamget_teamlist_teamsupdate_team
  • チームメンバー: list_team_membersinvite_team_memberremove_team_memberupdate_team_member

プロジェクト管理

  • プロジェクト: list_projectscreate_projectdelete_projectupdate_projectpause_project
  • プロジェクトメンバー: add_project_memberlist_project_membersremove_project_member
  • プロジェクト移管: request_project_transferaccept_project_transfer

展開管理

  • デプロイメント: create_deploymentcancel_deploymentget_deploymentdelete_deploymentlist_deployment
  • デプロイメントイベント: get_deployment_eventsupdate_deployment_integration
  • デプロイメント ファイル: list_deployment_filesupload_deployment_filesget_deployment_file
  • プロモーション: promote_deploymentget_promotion_aliases

ドメインとDNS管理

  • ドメイン: add_domainremove_domainget_domainlist_domainsget_project_domain
  • ドメイン操作: domain_checkdomain_pricedomain_configdomain_registrydomain_getdomain_listdomain_buydomain_registerdomain_removedomain_update
  • DNS: create_dns_recorddelete_dns_recordlist_dns_recordsupdate_dns_record
  • 証明書: get_certissue_certremove_certupload_cert

環境と構成

  • 環境変数: add_envupdate_envdelete_envget_envlist_env
  • エッジ構成: create_edge_configupdate_edge_configdelete_edge_configget_edge_configlist_edge_configs
  • エッジ構成項目: list_edge_config_itemsget_edge_config_itemupdate_edge_config_items
  • エッジ構成スキーマ: get_edge_config_schemaupdate_edge_config_schemadelete_edge_config_schema
  • エッジ構成トークン: create_edge_config_tokenget_edge_config_tokenlist_edge_config_tokensdelete_edge_config_tokens
  • エッジ構成のバックアップ: list_edge_config_backupsget_edge_config_backup

アクセス制御とセキュリティ

  • アクセス グループ: create_access_groupdelete_access_groupupdate_access_groupget_access_grouplist_access_groups
  • アクセス グループ プロジェクト: create_access_group_projectdelete_access_group_projectget_access_group_projectlist_access_group_projects
  • アクセスグループのメンバー: list_access_group_members
  • 認証: create_auth_tokendelete_auth_tokenget_auth_tokenlist_auth_tokenssso_token_exchange
  • ファイアウォール: create_firewall_bypassdelete_firewall_bypassget_firewall_bypassget_attack_statusupdate_attack_modeget_firewall_configupdate_firewall_configput_firewall_config

監視とログ記録

  • ログ ドレイン: logdrain_createlogdrain_createIntegrationlogdrain_deletelogdrain_deleteIntegrationlogdrain_getlogdrain_listlogdrain_listIntegration
  • Webhook: create_webhookdelete_webhooklist_webhooksget_webhook
  • アナリティクス: send_web_vitals

ユーザー管理

  • ユーザー: delete_userget_userlist_user_events

マーケットプレイスと統合

  • マーケットプレイス: create_marketplace_eventget_marketplace_accountget_marketplace_invoiceget_marketplace_memberimport_marketplace_resourcesubmit_marketplace_billingsubmit_marketplace_invoiceupdate_marketplace_secretsmarketplace_sso_token_exchangesubmit_marketplace_balancemarketplace_invoice_action
  • 統合: int_deleteint_listint_gitnsint_searchRepoint_getint_updateAction

環境と秘密

  • 環境: create_environmentdelete_environmentget_environmentlist_environmentsupdate_environment
  • シークレット: create_secretupdate_secret_namedelete_secretget_secretlist_secrets

アーティファクトとエイリアス

  • アーティファクト: check_artifactdownload_artifactget_artifact_statusquery_artifactsrecord_artifact_eventsupload_artifact
  • エイリアス: assign_aliasdelete_aliasget_aliaslist_aliaseslist_deployment_aliases

💡 使用方法

MCPサーバーの設定が完了すると、CursorのComposerを通じてVercelのすべての管理ツールが利用可能になります。Vercelプロジェクトで何をしたいかを記述するだけで、AIが適切なコマンドを使用します。

例:

  • 📋「すべてのプロジェクトを一覧表示する」
  • 🚀「新しい Next.js プロジェクトを作成する」
  • 🌐 「プロジェクトにカスタムドメインを追加する」
  • 🔑「環境変数を設定する」

🔒 セキュリティに関する注意事項

  • 🔐 Vercelアクセストークンを安全に保管しましょう
  • ⚠️ 機密性の高い資格情報をバージョン管理にコミットしないでください
  • 👮 適切なアクセス制御と権限を使用する
  • 🛡️ Vercel のセキュリティのベストプラクティスに従ってください

🛠️ トラブルシューティング

よくある問題

  1. Node.js パスの問題
    • 正しいNode.jsパスを使用していることを確認してください
    • Mac/Linuxの場合: which nodeを使用して正しいパスを見つけます
    • Windowsの場合: where nodeを使用して正しいパスを見つけます
  2. アクセストークンの問題
    • Vercelアクセストークンが有効であることを確認してください
    • トークンに必要な権限があるかどうかを確認する
    • トークンの有効期限が切れていないことを確認する
  3. MCPがツールを検出しない
    • カーソルのMCP設定の更新ボタンをクリックします
    • サーバーが実行中であることを確認します(エラーメッセージはありません)
    • Vercelの認証情報が有効であることを確認してください

デバッグモード

詳細なログを表示するには、コマンドの前にDEBUG=trueを追加します。

# macOS/Linux DEBUG=true /usr/local/bin/node /path/to/vercel-mcp/dist/index.js # Windows set DEBUG=true && "C:\Program Files\nodejs\node.exe" "C:\path\to\vercel-mcp\dist\index.js"

引き続き問題が発生する場合は、次の方法で問題を報告してください:

  • オペレーティングシステム
  • Node.js バージョン ( node --version )
  • 完全なエラーメッセージ
  • 再現手順

🤝 貢献する

貢献を歓迎します!お気軽にプルリクエストを送信してください。

📄 ライセンス


You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

強力な Model Context Protocol (MCP) サーバーにより、Cursor の Composer または Codeium の Cascade を介したデプロイメント、ドメイン、環境変数、チーム構成などのシームレスな Vercel プロジェクト管理が可能になります。

  1. 📚 Table of Contents
    1. 🔧 Prerequisites
      1. 🚀 Quick Start
        1. 📥 Installation
        2. ⚙️ Configuration
      2. 🎯 Features
        1. 🎯 Available Tools
      3. 💡 Usage
        1. 🔒 Security Notes
          1. 🛠️ Troubleshooting
            1. Common Issues
            2. Debug Mode
          2. 🤝 Contributing
            1. 📄 License
              ID: a2zu61kut4