Skip to main content
Glama

Google Drive MCP Server

by w-jeon

Googleドライブサーバー

この MCP サーバーは Google ドライブと統合されており、ファイルの一覧表示、読み取り、検索が可能になります。

コンポーネント

ツール

  • 検索
    • Googleドライブ内のファイルを検索する
    • 入力: query (文字列): 検索クエリ
    • 一致するファイルのファイル名とMIMEタイプを返します

リソース

サーバーは Google ドライブ ファイルへのアクセスを提供します。

  • ファイル( gdrive:///<file_id> )
    • すべてのファイルタイプをサポート
    • Google Workspace ファイルは自動的にエクスポートされます。
      • ドキュメント → Markdown
      • スプレッドシート → CSV
      • プレゼンテーション → プレーンテキスト
      • 図面 → PNG
    • その他のファイルはネイティブ形式で提供されます

はじめる

  1. 新しい Google Cloud プロジェクトを作成する
  2. GoogleドライブAPIを有効にする
  3. OAuth 同意画面を構成する(テストの場合は「内部」で問題ありません)
  4. OAuth スコープを追加しますhttps://www.googleapis.com/auth/drive.readonly
  5. アプリケーションタイプ「デスクトップアプリ」のOAuth クライアント ID を作成します
  6. クライアントのOAuthキーのJSONファイルをダウンロードします
  7. キーファイルの名前をgcp-oauth.keys.jsonに変更し、このリポジトリのルート(例: servers/gcp-oauth.keys.json )に配置します。

必ずnpm run buildまたはnpm run watchのいずれかを使用してサーバーをビルドしてください。

認証

認証して資格情報を保存するには:

  1. auth引数を付けてサーバーを実行します: node ./dist auth
  2. これにより、システムブラウザで認証フローが開きます。
  3. 認証プロセスを完了する
  4. 資格情報は、このリポジトリのルートに保存されます (つまり、 servers/.gdrive-server-credentials.json )

デスクトップアプリでの使用

このサーバーをデスクトップ アプリと統合するには、アプリのサーバー構成に以下を追加します。

ドッカー

認証:

Google Cloud で OAuth アプリケーションの設定が完了している場合は、次のコマンドでサーバーを認証できます/path/to/gcp-oauth.keys.json OAuth キー ファイルへのパスに置き換えます。

docker run -i --rm --mount type=bind,source=/path/to/gcp-oauth.keys.json,target=/gcp-oauth.keys.json -v mcp-gdrive:/gdrive-server -e GDRIVE_OAUTH_PATH=/gcp-oauth.keys.json -e "GDRIVE_CREDENTIALS_PATH=/gdrive-server/credentials.json" -p 3000:3000 mcp/gdrive auth

このコマンドはブラウザで開くURLを出力します。ブラウザでこのURLを開き、認証プロセスを完了してください。認証情報はmcp-gdriveボリュームに保存されます。

認証されると、アプリのサーバー構成でサーバーを使用できるようになります。

{ "mcpServers": { "gdrive": { "command": "docker", "args": ["run", "-i", "--rm", "-v", "mcp-gdrive:/gdrive-server", "-e", "GDRIVE_CREDENTIALS_PATH=/gdrive-server/credentials.json", "mcp/gdrive"] } } }
NPX
{ "mcpServers": { "gdrive": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-gdrive" ] } } }

ライセンス

このMCPサーバーはMITライセンスに基づいてライセンスされています。つまり、MITライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。

-
security - not tested
-
license - not tested
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Google ドライブと統合して、ファイルの一覧表示、読み取り、検索を可能にし、Google Workspace ドキュメントを適切な形式に自動的にエクスポートします。

  1. コンポーネント
    1. ツール
    2. リソース
  2. はじめる
    1. 認証
    2. デスクトップアプリでの使用
  3. ライセンス

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      This MCP server integrates with Google Drive to allow listing, reading, and searching over files.
      Last updated -
      1,971
      54,038
      JavaScript
      MIT License
    • -
      security
      A
      license
      -
      quality
      Enables integration with Google Drive for listing, reading, and searching over files, supporting various file types with automatic export for Google Workspace files.
      Last updated -
      1,971
      9
      JavaScript
      MIT License
    • -
      security
      A
      license
      -
      quality
      Integrates with Google Tasks to allow listing, reading, searching, creating, updating, and deleting tasks.
      Last updated -
      15
      TypeScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      Enables search capabilities using a Google Custom Search Engine, allowing users to input a search term and retrieve search result titles, links, and snippets, while facilitating integration with other tools for content extraction and advanced search strategies.
      Last updated -
      1
      13
      Python
      The Unlicense

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/w-jeon/mcp-gdrive'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server