vault
g-command
用于 Obsidian 的 Google Drive 浏览器和同步工具,外加一个适用于 Claude Code 的 MCP 服务器。
一个包中包含两个组件:
Obsidian 插件 — 侧边栏 Drive 浏览器,可将文档(→ Markdown)、表格(→ CSV)及其他文件同步到你的知识库中
MCP 服务器 — 让 Claude Code 能够搜索 Drive、读取知识库笔记,并将 Drive 文件拉取到知识库中
本地挂载上的 Google Drive 文件(.gdoc、.gsheet)是 JSON 指针——实际内容位于 API 之后。两个组件都通过 rclone 来弥合这一差距。
功能
搜索 Drive(按文件名)、知识库(模糊搜索)或两者同时搜索
读取 任何 Drive 文件或知识库笔记,通过
gdrive://和vault://资源拉取 Drive 文件到知识库——下载、转换(文档 → markdown,表格 → CSV),并在一次调用中更新同步状态
章节筛选 — 按标题名称或索引提取特定文档章节
发现知识库 — 自动检测机器上注册的所有 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.confdrive.readonly范围限制了令牌泄露时的潜在影响范围服务器是一个单一的可审计 TypeScript 文件
配置
环境变量 | 默认值 | 用途 |
|
| 要使用的 rclone 远程名称 |
参考
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-qualityAmaintenanceThis MCP server integrates with Google Drive to allow listing, reading, and searching over files.4,90789,405MIT
- Flicense-qualityCmaintenanceAn 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.
- Alicense-qualityBmaintenanceMCP 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).521MIT
- Alicense-qualityFmaintenanceMCP server that allows you to connect to Google Docs through Claude, enabling listing, reading, creating, updating, searching, and deleting documents.1,39647MIT
Related MCP Connectors
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
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/robotpony/warped-gdrive'
If you have feedback or need assistance with the MCP directory API, please join our Discord server