Skip to main content
Glama

g-command

用于 Obsidian 的 Google Drive 浏览器和同步工具,外加一个适用于 Claude Code 的 MCP 服务器。

一个包中包含两个组件:

  1. Obsidian 插件 — 侧边栏 Drive 浏览器,可将文档(→ Markdown)、表格(→ CSV)及其他文件同步到你的知识库中

  2. 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 插件

  1. 安装 rclone(macOS 上使用 brew install rclone

  2. 在 Obsidian 中安装插件

  3. 打开 g-command 设置选项卡,点击 连接

  4. 在打开的浏览器窗口中用 Google 登录

完成。插件会创建一个只读的 rclone 远程并验证连接。

MCP 服务器(适用于 Claude Code)

./setup.sh

该脚本会构建 MCP 服务器并将其注册到 Claude Code。如果 rclone 尚未配置,它会引导你完成身份验证。

如果你的 rclone 远程名称不是 gdrive

GDRIVE_RCLONE_REMOTE=my-remote ./setup.sh

手动 MCP 设置

  1. brew install rclone(如果未安装)

  2. cd src/gdrive && npm install && npm run build

  3. claude 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 文件

配置

环境变量

默认值

用途

GDRIVE_RCLONE_REMOTE

gdrive

要使用的 rclone 远程名称

参考

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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