MCP server · Audited from source
Google Drive MCP Server
by piotr-agier/google-drive-mcpMIT licenceAudited 12 Oct 2026 · source 54b5a3c575b1
Is it safe? With care — CAUTION, grade B (80/100). It exposes 118 tools: 54 read, 55 write and 9 destructive. The audit recorded 22 findings (0 critical, 0 high, 4 medium, 16 low). Maintainer's description: A Model Context Protocol (MCP) server that provides secure integration with Google Drive, Docs, Sheets, Slides and Calendar. It allows Claude Desktop and other MCP clients to manage files in Google Drive through a standardized interface.
Cite
Cite this page
ModelsAtlas. “Google Drive MCP Server (piotr-agier/google-drive-mcp)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/piotr-agier/google-drive-mcp
Trust audit
Audit 0.4.1 · full source read 12 Oct 2026
22 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared2 observations
- NetworkDeclared3 observations
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsFoundSee the findings
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | WARN 13 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 7 findings |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
piotr-agierUser accountAccount type recorded when we read the repository. - PackagePublished on npm
@piotr-agier/google-drive-mcpat version 2.12.0 - LicenceMITFrom the repository, as read at the audited commit.
- Last push2 days agoActivity of the repository when we read it.
- Source commit read54b5a3c575b1The audit covers exactly this commit, read on 12 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory118 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (22)
Sorted by severity
MEDIUMNetwork egressnet.raw_ip · src/auth/client.ts:16
redirect_uris: (keys.redirect_uris as string[] | undefined) || ['http://127.0.0.1:3000/oauth2callback']
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.generic · test/integration/cli-args.test.ts:151
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMHard-coded secretssecret.private_key · test/external-auth.test.ts:386
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
createParagraphBullets, deleteCalendarEvent, deleteComment, deleteGoogleSlide, deleteRange, deleteSheet, deleteSlideElement, removePermission, setElementText
- Why
- 9 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / pathfs.traversal · src/auth/team/clientFactory.ts:15
import { TimeoutError } from '../../utils/retry.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/auth/accountResolver.test.ts:6
import { AccountResolver, coversScopes } from '../../src/auth/accountResolver.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/auth/accountResolver.test.ts:7
import { AccountStore } from '../../src/auth/accountStore.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/auth/accountResolver.test.ts:8
import { SessionStore, STDIO_SESSION_ID } from '../../src/auth/sessionStore.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/auth/accountResolver.test.ts:9
import { AccountRecord } from '../../src/auth/types.js';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · CHANGELOG.md:184
- **auth:** use loopback IP `127.0.0.1` instead of `localhost` for the OAuth callback redirect URI, matching the IPv4-only callback-server bind so the redirect resolves to the bound address on dual-st
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/authentication.md:51
The callback server binds to the loopback interface and the OAuth redirect URI uses the loopback IP — `http://127.0.0.1:<port>/oauth2callback` (default range `127.0.0.1:3000`–`127.0.0.1:3004`). **Desk
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/clients.md:85
"url": "http://127.0.0.1:3100/mcp"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/troubleshooting.md:24
4. **`redirect_uri_mismatch` (Web application clients only)**: The callback redirect URI uses the loopback IP `http://127.0.0.1:<port>/oauth2callback`. Switch to a "Desktop app" client (recommended),
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, @types/express, express, google-auth-library, googleapis, jszip, open, pdf-lib
- Why
- 19 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:85
- **transport:** an HTTP client whose session has expired can now recover on its own instead of failing every call until the user reconnects by hand. The Streamable HTTP transport evicts a session aft
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:89
Stops a stalled OAuth token refresh from **hanging every call on the server**. The proactive refresh that runs five minutes before an access token expires awaited Google's token endpoint with no timeo
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:93
- **auth:** an OAuth token refresh that stalls no longer hangs every call on the server. The proactive refresh that runs five minutes before an access token expires awaited Google's token endpoint wit
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · CHANGELOG.md:112
- **team:** log lines now name the acting user. Team-mode dispatch, session lifecycle (created / idle timeout / closed), sign-in callback, and per-user tool logs carry the member's Google `sub` and em
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
LOWPrompt injectionprompt.transfer_instruction · docs/authentication.md:243
With the Streamable HTTP transport in its default (single-user) mode, multiple MCP sessions sharing the same server process also share the same active default account. A `set_default` in one session i
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
INFOPrompt injectionprompt.authority_framing · docs/deployment.md:131
When binding to `127.0.0.1` (default), DNS rebinding protection is automatically enabled. For remote deployments (`0.0.0.0`), prefer [Team Mode](#team-mode-multi-user-http-deployments), which authenti
- Why
- No further detail recorded for this rule.
- Fix
- —
INFOPrompt injectionprompt.credential_read · README.md:13
- **Open and self-hosted:** credentials and tokens stay in the environment you operate.
- Why
- asks the agent to read credentials
- Fix
- —
Tools it exposes
118 declared in source · 9 destructive
9 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
createParagraphBullets | destructive | Add or remove bullet points / numbered lists on paragraphs in a Google Doc. Target paragraphs by startIndex+endIndex or textToFind. Use bulletPreset= |
deleteCalendarEvent | destructive | Delete a calendar event |
deleteComment | destructive | Delete a comment from the document |
deleteGoogleSlide | destructive | Delete a slide from a presentation |
deleteRange | destructive | Delete content between start and end indices. Works on Google Docs and text/* files (e.g. text/plain, text/markdown). Index semantics differ by file type: Google Docs use the Docs API |
deleteSheet | destructive | Delete a sheet/tab by sheetId |
deleteSlideElement | destructive | Delete an element (image, text box, shape) from a Google Slides slide |
removePermission | destructive | Remove a permission from a file (by permissionId or emailAddress) |
setElementText | destructive | Replace the entire text of one shape/text box by objectId (element-scoped delete+insert in one atomic call). Unlike replaceAllTextInSlides, this cannot hit other slides, masters, or layouts, and does not depend on matching existing text. Pass empty text to clear the element. |
addComment | write | Add a comment quoting a text range, targeted by startIndex+endIndex or by textToFind. The comment appears in the document |
addDataValidation | write | Add data validation rules to a sheet range |
addDocumentTab | write | Add a new tab in a Google Doc |
addGoogleSheetConditionalFormat | write | Add conditional formatting to a Google Sheet |
addNamedRange | write | Create a named range |
addPermission | write | Add a sharing permission to a file. If the principal already holds a permission on the file, Drive updates that permission instead of creating a second one, and the requested role is applied even when it is a downgrade (asking for |
applyTextStyle | write | Apply text formatting (bold, italic, color, etc.) to a range or found text. Use EITHER startIndex+endIndex OR textToFind for targeting. |
authTestFileAccess | write | Run auth diagnostics against Drive API/file access |
createCalendarEvent | write | Create a new calendar event. Supports timed events, all-day events, and Google Meet integration. |
createFolder | write | Create a new folder in Google Drive |
createFootnote | write | Create a footnote in a Google Doc. Footnotes cannot be inserted inside equations, headers, footers, or other footnotes. For multi-tab docs, specify tabId to target a specific tab. |
createGoogleDoc | write | Create a new Google Doc |
createGoogleSheet | write | Create a new Google Sheet. By default uses RAW mode which stores values as-is. Set valueInputOption to |
createGoogleSlides | write | Create a new Google Slides presentation |
createGoogleSlidesShape | write | Create a shape in Google Slides |
createGoogleSlidesTextBox | write | Create a text box in Google Slides |
createShortcut | write | Create a shortcut (link) to a file or folder in Google Drive. Useful for referencing the same document from multiple locations without duplicating it. |
createTextFile | write | Create a new text or markdown file |
deleteItem | write | Move a file or folder to trash (can be restored from Google Drive trash) |
editTableCell | write | Edit the content and/or style of a specific table cell. Requires knowing the table start index. For multi-tab docs, specify tabId to target a table in a specific tab. |
formatGoogleDocParagraph | write | Apply paragraph formatting (alignment, indentation, spacing, heading style, borders, shading) in a Google Doc. Alias for applyParagraphStyle. |
formatGoogleDocText | write | Apply text formatting (bold, italic, font, color, links, superscript/subscript) to a range or found text in a Google Doc. Alias for applyTextStyle. |
formatGoogleSheetNumbers | write | Apply number formatting to cells in a Google Sheet |
formatGoogleSheetText | write | Apply text formatting to cells in a Google Sheet |
formatGoogleSlidesParagraph | write | Apply paragraph formatting to text in Google Slides |
formatGoogleSlidesText | write | Apply text formatting to elements in Google Slides |
insertImageFromUrl | write | Insert an inline image into a Google Document from a publicly accessible URL |
insertLocalImage | write | Upload a local image file to Google Drive and insert it into a Google Document |
insertSlidesImageFromUrl | write | Insert an image into a Google Slides slide from a publicly accessible URL |
insertSlidesLocalImage | write | Upload a local image file to Google Drive and insert it into a Google Slides slide |
insertSmartChip | write | Insert a person smart chip (mention) at a document index. Only person chips are supported by the Docs API; date and file chips are read-only. |
insertTable | write | Insert a new table with the specified dimensions at a given index. For multi-tab docs, specify tabId to target a specific tab. |
insertText | write | Insert text at a specific index (surgical edit, doesn |
mergeGoogleSheetCells | write | Merge cells in a Google Sheet |
moveItem | write | Move a file or folder |
moveSlideElement | write | Move and/or resize an element (image, text box, shape) on a Google Slides slide |
renameDocumentTab | write | Rename an existing Google Doc tab |
renameItem | write | Rename a file or folder |
renameSheet | write | Rename a sheet/tab by sheetId |
replaceSlideImage | write | Replace an existing image in place, preserving its layering (z-order), position, size, and crop. Unlike delete+insert, which lands the new image on top of the stack, this keeps the image under any overlaid text. |
replyToComment | write | Add a reply to an existing comment |
setColumnWidth | write | Set the width (in pixels) of one or more columns in a sheet. Indices are 0-based and the interval is half-open [startColumn, endColumn) — to resize a single column at position 5, pass startColumn: 5, endColumn: 6. |
setElementZOrder | write | Change the stacking order of page elements (updatePageElementsZOrder). Inserted images land on top of the stack and can cover overlay text — send them backward or to the back. All elements must be on the same page. |
setGoogleSheetBorders | write | Set borders for cells in a Google Sheet |
setGoogleSlidesBackground | write | Set background color for slides |
setRowHeight | write | Set the height (in pixels) of one or more rows in a sheet. Indices are 0-based and the interval is half-open [startRow, endRow) — to resize a single row at position 5, pass startRow: 5, endRow: 6. |
updateCalendarEvent | write | Update an existing calendar event |
updateGoogleDoc | write | Update an existing Google Doc (replaces all content). The replacement is one atomic batchUpdate, so a failure leaves the document unchanged rather than wiped. For multi-tab docs, specify tabId to replace a single tab |
updateGoogleSheet | write | Update an existing Google Sheet. By default uses RAW mode which stores values as-is. Set valueInputOption to |
updateGoogleSlides | write | Update an existing Google Slides presentation |
updateGoogleSlidesSpeakerNotes | write | Update speaker notes for a specific slide in Google Slides |
updatePermission | write | Update an existing permission role |
updateTextFile | write | Update an existing text or markdown file |
uploadFile | write | Upload a file (any type: image, audio, video, PDF, etc.) to Google Drive, either from a local path on the server or from base64-encoded content. When fileId is provided, uploads the content as a new version of that existing file (in-place update) instead of creating a new file. |
uploadPdfWithSplit | write | Upload PDF and optionally split into chunked parts (metadata split plan for now) |
GOOGLE_DRIVE_OAUTH_CREDENTIALS | read | Path to a Google OAuth 2.0 Desktop app credentials JSON file. |
addSheet | read | Alias for addSpreadsheetSheet (adds a new sheet/tab) |
addSpreadsheetSheet | read | Adds a new sheet/tab to an existing Google Spreadsheet |
appendSpreadsheetRows | read | Appends rows of data to the end of a sheet in a Google Spreadsheet |
authGetStatus | read | Show authentication/token status and scope diagnostics |
authListScopes | read | List configured/requested scopes and currently granted scopes |
autoResizeColumns | read | Auto-size one or more columns to fit their content. Indices are 0-based and the interval is half-open [startColumn, endColumn) — to auto-fit a single column at position 5, pass startColumn: 5, endColumn: 6. |
autoResizeRows | read | Auto-size one or more rows to fit their content. Indices are 0-based and the interval is half-open [startRow, endRow) — to auto-fit a single row at position 5, pass startRow: 5, endRow: 6. |
bulkConvertFolderPdfs | read | Convert all PDFs in a folder into Google Docs and return per-file results |
convertPdfToGoogleDoc | read | Convert an existing PDF in Drive into an editable Google Doc |
copyFile | read | Creates a copy of a Google Drive file or document |
downloadFile | read | Download a Google Drive file to a local path. For Google Workspace files (Docs, Sheets, Slides, Drawings), exports to the specified format. For regular files, downloads as-is. Streams directly to disk. |
duplicateSlide | read | Duplicate a slide in a presentation |
exportSlideThumbnail | read | Export a slide thumbnail URL |
formatGoogleSheetCells | read | Format cells in a Google Sheet (background, borders, alignment) |
getCalendarEvent | read | Get a single calendar event by ID |
getCalendarEvents | read | Get events from a Google Calendar with optional filtering |
getComment | read | Get a specific comment with its full thread of replies |
getDocumentInfo | read | Gets detailed information about a specific Google Document. |
getGoogleDocContent | read | Get content of a Google Doc with text indices for formatting |
getGoogleDocContentPaginated | read | Get a portion of a Google Doc with text indices for formatting, with pagination support. Use offset and limit to read large documents in chunks. |
getGoogleSheetContent | read | Get content of a Google Sheet with cell information. Each row is returned as |
getGoogleSlidesContent | read | Get content of Google Slides with element IDs for formatting |
getGoogleSlidesSpeakerNotes | read | Get speaker notes from a specific slide in Google Slides |
getRevisions | read | List revisions for a file |
getSlideElementInfo | read | Get position, size, and transform of all elements on a slide. Returns actual rendered bounds. |
getSpreadsheetInfo | read | Gets detailed information about a Google Spreadsheet including all sheets/tabs |
hideSheetDimension | read | Hide a range of columns or rows in a sheet (sets hiddenByUser=true). Indices are 0-based and the interval is half-open [startIndex, endIndex) — to hide a single column/row at position 5, pass startIndex: 5, endIndex: 6. |
listCalendars | read | List all accessible Google Calendars for the authenticated user |
listComments | read | List all comments in a Google Document |
listDimensionGroups | read | List the row and column groups of a spreadsheet, with each group |
listDocumentTabs | read | List all tabs in a Google Doc with their IDs and hierarchy |
listFolder | read | List contents of a folder (defaults to root) |
listGoogleDocs | read | Lists Google Documents from your Google Drive with optional filtering. |
listGoogleSheets | read | Lists Google Spreadsheets from your Google Drive with optional filtering |
listPermissions | read | List sharing permissions for a file |
listSharedDrives | read | List available Google Shared Drives |
listSheets | read | List tabs/sheets in a Google Spreadsheet |
lockFile | read | Lock a file to prevent editing by setting content restrictions. The file remains readable but cannot be modified until unlocked. |
manage_accounts | read | Manage connected Google accounts. action= |
protectRange | read | Protect a range in a spreadsheet |
readGoogleDoc | read | Read content of a Google Doc with format options. Supports multi-tab documents. Text/markdown output leads with the document |
readGoogleDocPaginated | read | Read a portion of a Google Doc with pagination support. Use offset and limit to read large documents in chunks, avoiding output size limits. |
readSmartChips | read | Read smart chip-like elements (person mentions, rich links, date chips) from the default tab of a document |
readTextFile | read | Read content of a text file (any text/* MIME type, e.g. text/plain, text/markdown, text/csv). For Google Docs, use readGoogleDoc. |
reorderSlides | read | Reorder one or more slides in a presentation |
restoreRevision | read | Restore a file to a selected revision (creates a new head revision). Note: workspace files (Docs, Sheets, Slides) are restored via export/import and may lose some formatting. |
search | read | Search for files in Google Drive. Results are sorted most-recently-modified first by default; use orderBy for a different order. Set rawQuery=true to pass a raw Google Drive API query supporting operators like modifiedTime, createdTime, mimeType, name contains, etc. |
setSlideVisibility | read | Show or hide (skip) slides in one atomic call. Hidden slides are skipped in present mode and PDF export. |
shareFile | read | Convenience wrapper to share a file with a user email. If the user already holds a permission on the file, that permission |
showSheetDimension | read | Show (unhide) a range of columns or rows in a sheet (sets hiddenByUser=false). Indices are 0-based and the interval is half-open [startIndex, endIndex) — to unhide a single column/row at position 5, pass startIndex: 5, endIndex: 6. |
styleGoogleSlidesShape | read | Style shapes in Google Slides |
unlockFile | read | Unlock a previously locked file by removing content restrictions, restoring full edit access. |
updateDimensionGroup | read | Collapse or expand an existing row or column group. Indices are 0-based and the interval is half-open [startIndex, endIndex). Use listDimensionGroups first to find the group |
Install
Package version 2.12.0 · audited commit 54b5a3c
Read the findings first. The most severe is Network egress (medium) at src/auth/client.ts.
claude mcp add google-drive-mcp --env GOOGLE_DRIVE_OAUTH_CREDENTIALS=${GOOGLE_DRIVE_OAUTH_CREDENTIALS} -- npx -y @piotr-agier/[email protected]The command pins the package version recorded in the source (2.12.0); the audit covers commit 54b5a3c575b1. Transport: stdio · streamable-http. Reads these environment variables: GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_CLIENT_SECRET_PATH, GOOGLE_DRIVE_MCP_ACCESS_TOKEN, GOOGLE_DRIVE_MCP_AUTH_PORT, GOOGLE_DRIVE_MCP_CLIENT_SECRET, GOOGLE_DRIVE_MCP_REFRESH_TOKEN, GOOGLE_DRIVE_MCP_TOKEN_PATH, GOOGLE_DRIVE_MCP_TOKEN_REFRESH_TIMEOUT and 2 more. Give it the narrowest token it needs.
Audit history
- !CAUTION B 80 / 100
First audit ·
54b5a3c575b1
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/piotr-agier/google-drive-mcp/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Google Drive MCP Server
What is the Google Drive MCP Server MCP server?
What tools does Google Drive MCP Server expose?
Is Google Drive MCP Server safe to connect to an agent?
What credentials does Google Drive MCP Server need?
How does Google Drive MCP Server run?
How current is this page?
Sources
- piotr-agier/google-drive-mcp on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 54b5a3c575b1Observed · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Google Drive MCP Server MCP server?
- What tools does Google Drive MCP Server expose?
- Is Google Drive MCP Server safe to connect to an agent?