vault
g-command
Obsidian用のGoogle Driveブラウザ兼同期ツール、およびClaude Code用のMCPサーバー。
1つのパッケージに2つのコンポーネント:
Obsidianプラグイン — サイドバーのDriveブラウザで、ドキュメント(→Markdown)やスプレッドシート(→CSV)などのファイルをボールトに同期します。
MCPサーバー — Claude CodeがDriveの検索、ボールトの読み取り、Driveファイルのボールトへの取り込みを可能にします。
ローカルマウント上のGoogle Driveファイル(.gdoc、.gsheet)はJSONポインタです。実際のコンテンツはAPIの背後にあります。両コンポーネントはrcloneを使用してこのギャップを埋めます。
機能
検索 Drive(ファイル名)、ボールト(あいまい検索)、またはその両方
読み取り Driveファイルまたはボールトのメモを
gdrive://およびvault://リソースで読み取ります。取り込み Driveファイルをボールトに取り込みます — ダウンロード、変換(ドキュメント→Markdown、スプレッドシート→CSV)、同期状態の更新を1回の呼び出しで行います。
セクションフィルター — 見出し名またはインデックスで特定のドキュメントセクションを抽出します。
ボールトの検出 — マシンに登録されているすべてのObsidianボールトを自動検出します。
スコープ:
drive.readonly— Google Driveへの書き込みアクセスはありません。
Related MCP server: manus-mcp
前提条件
Node.js 18+
rclone(GCP OAuth設定の代わり)
Claude Code
セットアップ
Obsidianプラグイン
rcloneをインストールします(macOSの場合は
brew install rclone)。Obsidianにプラグインをインストールします。
g-commandの設定タブを開き、接続をクリックします。
開いたブラウザウィンドウでGoogleにサインインします。
以上です。プラグインは読み取り専用のrcloneリモートを作成し、接続を確認します。
MCPサーバー(Claude Code用)
./setup.shこのスクリプトはMCPサーバーをビルドし、Claude Codeに登録します。rcloneがまだ設定されていない場合は、認証手順を案内します。
rcloneリモートの名前がすでにgdrive以外になっている場合:
GDRIVE_RCLONE_REMOTE=my-remote ./setup.sh手動MCPセットアップ
brew install rclone(インストールされていない場合)cd src/gdrive && npm install && npm run buildclaude mcp add vault node /absolute/path/to/src/gdrive/dist/index.js
確認
Claude Codeで/mcpを実行します — vaultが接続済みとして表示されます。その後、ファイル名でドキュメントを検索してみてください。
セキュリティメモ
このサーバーは認証情報を保存しません — 認証はすべてrcloneによって管理されます。
rcloneトークンは
~/.config/rclone/rclone.confに保存されます。drive.readonlyスコープにより、トークンが漏洩した場合の影響範囲を制限します。サーバーは監査可能な単一のTypeScriptファイルです。
設定
環境変数 | デフォルト | 目的 |
|
| 使用するrcloneリモート名 |
参考
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- -licenseNot gradedqualityAmaintenanceThis MCP server integrates with Google Drive to allow listing, reading, and searching over files.5,024 npm91,671MIT
- FlicenseNot gradedqualityCmaintenanceAn 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.-
- AlicenseNot gradedqualityDmaintenanceMCP server for Google Drive, Docs, and Sheets — built for Claude Code. Gives Claude Code direct read/write access to Google Sheets (cell-level edits, formatting, structure), Google Docs (insert, replace, append), and Drive (search).36 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that allows you to connect to Google Docs through Claude, enabling listing, reading, creating, updating, searching, and deleting documents.834 npm48MIT