vault
An MCP server that lets Claude Code search Google Drive, read vault notes, and pull Drive files into the vault using rclone authentication. It operates with read-only scope and supports document section filtering.
README
g-command
Google Drive browser and sync for Obsidian, plus an MCP server for Claude Code.
Two components in one package:
- Obsidian plugin — sidebar Drive browser that syncs Docs (→ markdown), Sheets (→ CSV), and other files into your vault
- MCP server — lets Claude Code search Drive, read vault notes, and pull Drive files into the vault
Google Drive files on a local mount (.gdoc, .gsheet) are JSON pointers — the actual content lives behind the API. Both components bridge that gap using rclone.
What it does
- Search Drive by filename, vault by content (fuzzy), or both
- Read any Drive file or vault note via
gdrive://andvault://resources - Pull Drive files into the vault — download, convert (Docs → markdown, Sheets → CSV), and update sync state in one call
- Section filter — extract specific document sections by heading name or index
- Discover vaults — auto-detects all Obsidian vaults registered on the machine
- Scope:
drive.readonly— no write access to Google Drive
Prerequisites
- Node.js 18+
- rclone (replaces GCP OAuth setup)
- Claude Code
Setup
Obsidian plugin
- Install rclone (
brew install rcloneon macOS) - Install the plugin in Obsidian
- Open the g-command settings tab and click Connect
- Sign in with Google in the browser window that opens
That's it. The plugin creates a read-only rclone remote and verifies the connection.
MCP server (for Claude Code)
./setup.sh
The script builds the MCP server and registers it with Claude Code. If rclone isn't configured yet, it walks you through authentication.
If your rclone remote is already named something other than gdrive:
GDRIVE_RCLONE_REMOTE=my-remote ./setup.sh
Manual MCP setup
brew install rclone(if not installed)cd src/gdrive && npm install && npm run buildclaude mcp add vault node /absolute/path/to/src/gdrive/dist/index.js
Verify
Run /mcp in Claude Code — vault should appear as connected. Then try searching for a document by filename.
Security notes
- No credentials are stored by this server — auth is managed entirely by rclone
- rclone token is stored at
~/.config/rclone/rclone.conf drive.readonlyscope limits blast radius if the token is compromised- Server is a single auditable TypeScript file
Configuration
| Env var | Default | Purpose |
|---|---|---|
GDRIVE_RCLONE_REMOTE |
gdrive |
rclone remote name to use |
References
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.