gdrive

gdrive is a skill for Claude Code, Codex from Stillfrozen/gdrive-mcp. It costs 62 tokens per session (812 once invoked), scanned A, original, MIT.

A tool for finding, reading, creating, and editing files in Google Drive, including Google Docs and Sheets. Google Drive is Google's online file storage service.

In plain words
What is it for?
It helps search Drive, read documents or spreadsheets, and make changes to them.
Why use it?
It lets the agent work with shared documents and spreadsheets when a user names a file or provides a Google link.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps search Drive, read documents or spreadsheets, and make changes to them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stillfrozen/gdrive-mcp/gdrive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Stillfrozen/gdrive-mcp --skill gdrive
Clone the repo
git clone --depth 1 https://github.com/Stillfrozen/gdrive-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gdrive

README.md
[![agentmods](https://agentmods.dev/badge/skills/stillfrozen/gdrive-mcp/gdrive/github.svg)](https://agentmods.dev/skills/stillfrozen/gdrive-mcp/gdrive)
Your own site
<a href="https://agentmods.dev/skills/stillfrozen/gdrive-mcp/gdrive"><img src="https://agentmods.dev/badge/skills/stillfrozen/gdrive-mcp/gdrive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gdrive

Your own site · 80×15
<a href="https://agentmods.dev/skills/stillfrozen/gdrive-mcp/gdrive"><img src="https://agentmods.dev/badge/skills/stillfrozen/gdrive-mcp/gdrive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 812 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00812
Opus 5 $0.00031 $0.00406
Sonnet 5 $0.00012 $0.00162
Haiku 4.5 $0.00006 $0.00081

Measured 9d ago against content hash 6bb832bb3e25, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

gdrive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/gdrive/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Drive / Docs / Sheets (Cursor MCP)

When to use

  • User asks to find, read, or edit a Google Doc, Sheet, or Drive file.
  • User pastes docs.google.com, sheets.google.com, or drive.google.com URL.

Prefer MCP tools when the gdrive server is connected.

This skill is generic. Do not hardcode a team's file ids here.


Auth

OAuth JSON and the refresh token live on disk, never in git.

Default layout after ./scripts/install.sh:

gdrive-mcp/credentials/gcp-oauth.keys.json
gdrive-mcp/credentials/.gdrive-server-credentials.json

~/.cursor/mcp.json:

{
  "mcpServers": {
    "gdrive": {
      "command": "node",
      "args": ["/absolute/path/to/gdrive-mcp/dist/index.js"],
      "env": {
        "GDRIVE_OAUTH_PATH": "/absolute/path/to/gdrive-mcp/credentials/gcp-oauth.keys.json",
        "GDRIVE_CREDENTIALS_PATH": "/absolute/path/to/gdrive-mcp/credentials/.gdrive-server-credentials.json"
      }
    }
  }
}

Setup: docs/INSTALL.ru.md. After git pull: ./scripts/upgrade.sh, then Reload MCP.

External OAuth client in Testing: refresh token dies after 7 daysinvalid_grantnpm run auth.


Tools (short)

Read: gdrive_search, gdrive_get_file, gdrive_read_file (Docs → Markdown, Sheets → CSV of first tab, Slides → text), gdrive_list_files, gdrive_get_spreadsheet_info, gdrive_get_document_info.

Sheets write: create / update / append / clear / format / tabs / insert or delete rows and columns.

Docs write: create / insert / replace / delete text / styles / headings / lists / rename / duplicate.

Full table: repo README.md.


Agent workflow

  1. Extract file id from the URL (/d/FILE_ID/ or /spreadsheets/d/FILE_ID/).
  2. Read before write. The server rejects writes if this session has not opened the file. Use gdrive_read_file or gdrive_get_document_info / gdrive_get_spreadsheet_info.
  3. Sheets: first tab only via gdrive_read_file. Other tabs → gdrive_get_spreadsheet_info then a range tool.
  4. Docs: Markdown from gdrive_read_file is enough to summarize. For anchors, headings, lists → gdrive_get_document_info with include_content=true.
  5. Destructive tools (replace, delete tab, delete rows): state file id and the diff in one line, then call.
  6. Never delete a Drive file through MCP — the server cannot. Ask the user to use the Drive UI.

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 93 lines · 62 tokens per session scan A 6bb832bb3e25

Subscribe to this mod's changes

gdrive is a skill published in the GitHub repository Stillfrozen/gdrive-mcp (0 stars, last pushed 19d ago), licensed MIT. It adds 62 tokens to every session and 812 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.