Borrowing it
Nothing to install: this file belongs to us-all/google-drive-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/us-all/google-drive-mcp-server/main/CLAUDE.mdgit clone --depth 1 https://github.com/us-all/google-drive-mcp-serverWrote 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.
[](https://agentmods.dev/instructions/us-all/google-drive-mcp-server/claude-md)<a href="https://agentmods.dev/instructions/us-all/google-drive-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/us-all/google-drive-mcp-server/claude-md/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.
<a href="https://agentmods.dev/instructions/us-all/google-drive-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/us-all/google-drive-mcp-server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03568 | $0.03568 |
| Opus 5.5 | $0.01427 | $0.01427 |
| Sonnet 5.5 | $0.00714 | $0.00714 |
| Haiku 4.5 | $0.00357 | $0.00357 |
Grade A, and why
google-drive-mcp-server CLAUDE.md 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Google Drive MCP Server
Tech Stack
- Node.js 18+, pnpm, TypeScript (strict, ESM)
@modelcontextprotocol/sdk— MCP protocolgoogleapis— Google Drive API v3, Drive Activity API v2, Drive Labels API v2, Sheets API v4, Slides API v1, Docs API v1zod— input validationdotenv— env loadingvitest— testing
Build & Run
pnpm install
pnpm run build
pnpm start # or: node dist/index.js
pnpm run dev # watch mode
pnpm run test # unit tests
pnpm run smoke # live API smoke test
Architecture
Claude → MCP (stdio) → index.ts → tools/* → googleapis → Google Drive API
↑
capabilities.ts (personal vs GWS detection)
Tool Pattern
Each tool file exports: schema (Zod) + handler (async function).
Registration in index.ts: server.tool(name, description, schema.shape, wrapToolHandler(handler)).
Every schema field must have .describe(). Use z.coerce.number() for numbers.
Always pass supportsAllDrives: true to Drive API calls.
GWS Awareness
capabilities.tsdetects account type on startup viaabout.get()+ domain check- GWS-only tools call
requireGWS(caps, "Feature Name")which throwsGWSFeatureErrorfor personal accounts - Write tools call
assertWriteAllowed()which checksGOOGLE_DRIVE_ALLOW_WRITE=true
Auth Methods
- OAuth2:
GOOGLE_CLIENT_ID+GOOGLE_CLIENT_SECRET+GOOGLE_REFRESH_TOKEN - Service Account:
GOOGLE_SERVICE_ACCOUNT_KEY_PATH+ optionalGOOGLE_IMPERSONATE_USER - ADC:
gcloud auth application-default login --client-id-file=client_secret.json --scopes=...(auto-detected)
Tool Categories (95 tools)
| File | Tools |
|---|---|
files.ts |
list-files, get-file, read-file, create-file, update-file, copy-file, delete-file |
search.ts |
search-files |
folders.ts |
create-folder, move-file, get-folder-tree |
permissions.ts |
list-permissions, share-file, remove-permission |
export.ts |
export-file, get-download-link |
comments.ts |
list-comments, get-comment, create-comment, resolve-comment |
revisions.ts |
list-revisions, get-revision |
about.ts |
get-about |
activity.ts |
get-activity |
sheets.ts |
Data: sheets-get-spreadsheet, sheets-get-values, sheets-batch-get-values, sheets-update-values, sheets-batch-update-values, sheets-append-values, sheets-clear-values, sheets-batch-clear-values, sheets-create-spreadsheet, sheets-manage-sheets |
Structure: sheets-insert-dimension, sheets-delete-dimension, sheets-duplicate-sheet, sheets-copy-sheet-to, sheets-copy-paste, sheets-sort-range, sheets-find-replace |
|
Formatting: sheets-format-cells, sheets-update-borders, sheets-merge-cells, sheets-unmerge-cells, sheets-auto-resize, sheets-resize-dimensions |
|
Advanced: sheets-set-data-validation, sheets-add-conditional-format, sheets-add-chart, sheets-delete-chart, sheets-add-protected-range, sheets-delete-protected-range, sheets-manage-named-range |
|
docs.ts |
Document: docs-get-document, docs-create-document, docs-get-content, docs-list-tabs |
Editing: docs-insert-text, docs-delete-range, docs-replace-text, docs-batch-update |
|
Formatting: docs-format-text, docs-format-paragraph |
|
Elements: docs-insert-table, docs-insert-image, docs-insert-page-break |
|
shared-drives.ts |
list-shared-drives, get-shared-drive, create-shared-drive (GWS) |
labels.ts |
list-file-labels, apply-label, remove-label (GWS) |
approvals.ts |
list-approvals, get-approval (GWS) |
slides.ts |
Presentation: slides-get-presentation, slides-create-presentation, slides-duplicate-presentation |
Slide Management: slides-get-slide, slides-add-slide, slides-delete-slide, slides-move-slide, slides-duplicate-slide |
|
Content: slides-insert-text, slides-replace-text, slides-insert-text-box, slides-insert-image, slides-insert-table, slides-update-table-cell, slides-insert-shape |
|
Formatting: slides-format-text, slides-format-shape, slides-resize-element, slides-set-slide-background, slides-batch-update |
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.
- 2mo ago First seen · 118 lines · 3,568 tokens per session scan A 6b99b325e5b4
google-drive-mcp-server CLAUDE.md is an instructions file published in the GitHub repository us-all/google-drive-mcp-server (1 stars, last pushed 4mo ago), licensed MIT. It adds 3,568 tokens to every session, about $0.0143 per session on Opus 5.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.
google-drive-mcp-server CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| google-drive-mcp-server CLAUDE.mdus-all/google-drive-mcp-server | Instructions file | 1 | 4mo ago | MIT | A | 3,568 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 3d ago | MIT | A | 4,313 | Codex, OpenCode |