Skip to main content
Glama
saydurrahman-ORCA

orca-drive-sa-mcp

ORCA Drive SA MCP

Google Drive フォルダを Streamable HTTP 経由で公開する Model Context Protocol (MCP) サーバーで、Vercel のサーバーレス関数としてデプロイされます。

Google サービスアカウント(Drive API v3、読み取り専用スコープ)を通じて Google Drive を読み取るため、Apps Script の Web アプリは不要です。

ツール

ツール

説明

list_files

フォルダ内のファイルを一覧表示します(デフォルトは DRIVE_FOLDER_ID)

search_files

ファイル名の部分一致で検索します

get_file

ID で単一ファイルのメタデータを取得します

read_file

ファイルのテキスト内容を読み取ります(JSON、CSV、TXT など)

Related MCP server: Google Drive MCP Server

1. Google サービスアカウントを作成する

  1. https://console.cloud.google.com にアクセスし、プロジェクトを作成(または選択)します。

  2. Google Drive API を有効にします(API とサービス → ライブラリ →「Google Drive API」)。

  3. サービスアカウントを作成します:

    • API とサービス → 認証情報 → 認証情報を作成 → サービスアカウント。

    • 名前を付けて作成して続行をクリックし、完了をクリックします。

  4. キーを生成します:

    • サービスアカウントを開き、キー → キーを追加 → 新しいキーを作成 → JSON。

    • JSON キーファイルをダウンロードします。

  5. サービスアカウントのメールアドレスをコピーします(例:orca-drive@my-project.iam.gserviceaccount.com)。

  6. 対象の Drive フォルダをそのメールアドレスと共有します(Drive でフォルダを右クリック → 共有 → メールアドレスを貼り付け → 閲覧者)。

サービスアカウントと共有されたファイル/フォルダのみアクセス可能です。

2. 環境変数を設定する

.env.example を .env にコピーし(ローカル開発)、Vercel でも同じ値を設定します(プロジェクト > 設定 > 環境変数):

変数

説明

GOOGLE_SERVICE_ACCOUNT_JSON

JSON キーの完全な内容(1行)

GOOGLE_SERVICE_ACCOUNT_JSON_ENCODED

JSON 値が base64 エンコードされている場合は base64 に設定

DRIVE_FOLDER_ID

一覧表示するデフォルトのフォルダ ID

3. ローカルで実行する

npm install
vercel dev

トランスポート Streamable HTTP、URL http://localhost:3000/ を使用して MCP Inspector(npx @modelcontextprotocol/inspector)でテストします。

4. Vercel にデプロイする

vercel --prod

エンドポイントは https://<project>.vercel.app/ になります。

5. クライアントを接続する

Claude Desktop(claude_desktop_config.json):

{
  "mcpServers": {
    "orca-drive-sa": {
      "type": "http",
      "url": "https://<project>.vercel.app/"
    }
  }
}

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that enables interaction with Google Drive through the Google Cloud API. It allows users to list, read, and upload files directly from MCP-compatible clients like manus.im or Cursor.
    -
  • A
    license
    A
    quality
    D
    maintenance
    A local MCP server that enables LLMs to securely search and read files within designated Google Drive folders. Supports Google Docs, Google Sheets, PDFs, and plain text with strict folder-scoping via service account authentication.
    4
    MIT