What Google APIs are required?
You must enable the Google Drive API and Google Sheets API; for document reading, also enable the Google Docs API.
@isaacphi
Basic information
Model Context Protocol (MCP) Server for reading from Google Drive and editing Google Sheets
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"gdrive": {
"command": "npx",
"args": [
"-y",
"@isaacphi/mcp-gdrive"
],
"env": {
"CLIENT_ID": "850257612904-fng2g08pda1bfidtlmit4ufb972i0lvu.apps.googleusercontent.com",
"CLIENT_SECRET": "YOUR_CLIENT_SECRET",
"GDRIVE_CREDS_DIR": "/"
}
}
}
}Search for files in Google Drive
Read contents of a file from Google Drive
Update a cell value in a Google Spreadsheet
Read data from a Google Spreadsheet with flexible options for ranges and formatting
This MCP server integrates with Google Drive to allow listing, reading, and searching files, as well as the ability to read and write to Google Sheets. It is built for developers using the Model Context Protocol to enable AI agents to interact with Google Drive content.
Set up a Google Cloud project, enable the Drive and Sheets APIs, create OAuth credentials, and configure environment variables (GDRIVE_CREDS_DIR, CLIENT_ID, CLIENT_SECRET). Run node ./dist/index.js to authenticate via browser, then configure the server in your MCP client’s configuration file. The server exposes tools and resources for file operations.
gdrive:///<file_id> resource URIs.You must enable the Google Drive API and Google Sheets API; for document reading, also enable the Google Docs API.
Download the OAuth client JSON (type “Desktop App”) from Google Cloud Console, rename it to `gcp-oauth.keys.json`, and place it in the directory set by `GDRIVE_CREDS_DIR`.
The token is saved in the directory specified by the `GDRIVE_CREDS_DIR` environment variable.
The server uses the standard MCP transport over stdio, invoked via `npx -y @isaacphi/mcp-gdrive`. Authentication is OAuth 2.0.
Yes, but Google Workspace files (Docs, Sheets, Presentations, Drawings) are automatically exported to Markdown, CSV, plain text, or PNG. Other files are provided in their native format via `gdrive:///<file_id>`.
A lightweight MCP server for processing, editing, and interacting with PDF, Word, Excel, and CSV documents.
The SSE version of the MCP service is modified from the Filesystem MCP server
Self-hosted file manager & sharing with a web UI, in one Go binary - open-source alternative to Nextcloud, Dropbox and Google Drive. Web-based file browser for local, S3, SFTP, WebDAV, FTP and SMB storage: private cloud served as S3, SFTP, NFS, WebDAV. SSO/LDAP, multi-tenant, enc
A Model Context Protocol (MCP) server for platform-agnostic file capabilities, including advanced search/replace and directory tree traversal
Comments