Google Drive MCP Server
Googleドライブサーバー
この MCP サーバーは Google ドライブと統合されており、ファイルの一覧表示、読み取り、検索が可能になります。
コンポーネント
ツール
検索
Googleドライブ内のファイルを検索する
入力:
query(文字列): 検索クエリ一致するファイルのファイル名とMIMEタイプを返します
リソース
サーバーは Google ドライブ ファイルへのアクセスを提供します。
ファイル(
gdrive:///<file_id>)すべてのファイルタイプをサポート
Google Workspace ファイルは自動的にエクスポートされます。
ドキュメント → Markdown
スプレッドシート → CSV
プレゼンテーション → プレーンテキスト
図面 → PNG
その他のファイルはネイティブ形式で提供されます
Related MCP server: Google Drive MCP Server
はじめる
OAuth 同意画面を構成する(テストの場合は「内部」で問題ありません)
OAuth スコープを追加します
https://www.googleapis.com/auth/drive.readonlyアプリケーションタイプ「デスクトップアプリ」のOAuth クライアント ID を作成します
クライアントのOAuthキーのJSONファイルをダウンロードします
キーファイルの名前を
gcp-oauth.keys.jsonに変更し、このリポジトリのルート(例:servers/gcp-oauth.keys.json)に配置します。
必ずnpm run buildまたはnpm run watchのいずれかを使用してサーバーをビルドしてください。
認証
認証して資格情報を保存するには:
auth引数を付けてサーバーを実行します:node ./dist authこれにより、システムブラウザで認証フローが開きます。
認証プロセスを完了する
資格情報は、このリポジトリのルートに保存されます (つまり、
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ファイルをご覧ください。
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Give Claude only the Google Drive files you choose. Every action logged.
Provides tools for searching Google Workspace documentation and much more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables integration with Google Drive for listing, reading, and searching over files, supporting various file types with automatic export for Google Workspace files.3,926 npm72MIT
- AlicenseNot gradedqualityFmaintenanceIntegrates with Google Drive to enable listing, searching, and reading files, plus reading and writing to Google Sheets.564 npm282MIT
- FlicenseBqualityDmaintenanceEnables read-only access to multiple Google Drive accounts simultaneously through secure service account authentication. Supports listing, searching, and extracting content from Google Workspace documents, spreadsheets, and text files.6-
- AlicenseNot gradedqualityDmaintenanceEnables AI models to search, list, and read files from Google Drive with automatic format conversion for Google Workspace documents.3,926 npmMIT