Gdrive

Productivity and workflow

Model Context Protocol (MCP) Server for reading from Google Drive and editing Google Sheets.

Your AI app calls the Gdrive MCP server, which does the work through tools like gdrive_search, gdrive_read_file, gsheets_read and gsheets_update_cell and sends the result back to the chat.

About Gdrive

Gdrive is a community MCP server from isaacphi, filed in our directory under productivity and workflow. Model Context Protocol (MCP) Server for reading from Google Drive and editing Google Sheets.

The README for Gdrive lists tools such as gdrive_search, gdrive_read_file, gsheets_read and gsheets_update_cell, which your AI app can call once the server is connected.

At a glance

Publisher
isaacphi (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
283

Tools Gdrive gives your AI app

  • gdrive_search
  • gdrive_read_file
  • gsheets_read
  • gsheets_update_cell

Tool names as the Gdrive README lists them. Your AI app shows the live list once Gdrive is connected.

How to set up Gdrive

  1. Follow the install steps in the Gdrive README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Gdrive README for keys or settings; the registry lists none that Gdrive requires.
  3. Add Gdrive to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Gdrive tools to confirm the connection.
  5. Run one read-only task with Gdrive first, such as a call to gdrive_search, before you allow anything that writes or sends.

Gdrive compared with similar servers

  • Onfido by codespar has fewer GitHub stars than Gdrive (278 against 283); both are community servers, and both run locally.
  • Claude Modular by oxygen-fragment has more GitHub stars than Gdrive (285 against 283); both are community servers, and both run locally.
  • Hitl by ZenlixAI has fewer GitHub stars than Gdrive (274 against 283); both are community servers, and both run locally. The Hitl README lists 12 tools to Gdrive's 4.

Before you connect Gdrive

  • Give Gdrive its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Gdrive tool call until you trust what it does with them.
  • Treat text that Gdrive fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Gdrive on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Gdrive

How marketing and sales teams put Gdrive to work, by company size. Pick the size closest to yours and start Gdrive on one use case.

Small business

  • A busy owner can use Gdrive to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Gdrive what slipped last week and which campaign tasks have no owner yet.
  • Gdrive runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Gdrive to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Gdrive to see where work piles up across projects and move it before deadlines slip.
  • Start with gdrive_search and gdrive_read_file, the tools Gdrive lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise PMOs can use Gdrive to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Gdrive scoped access per workspace, so an agent helps one department without reading another's plans.
  • Gdrive is a community server, so have security review the code and pin a version before Gdrive touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Gdrive README

From isaacphi/mcp-gdrive on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Google Drive server

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.

This project includes code originally developed by Anthropic, PBC, licensed under the MIT License from this repo.

Components

Tools
  • gdrive_search

    • Description: Search for files in Google Drive.
    • Input:
      • query (string): Search query.
      • pageToken (string, optional): Token for the next page of results.
      • pageSize (number, optional): Number of results per page (max 100).
    • Output: Returns file names and MIME types of matching files.
  • gdrive_read_file

    • Description: Read contents of a file from Google Drive.
    • Input:
      • fileId (string): ID of the file to read.
    • Output: Returns the contents of the specified file.
  • gsheets_read

    • Description: Read data from a Google Spreadsheet with flexible options for ranges and formatting.
    • Input:
      • spreadsheetId (string): The ID of the spreadsheet to read.
      • ranges (array of strings, optional): Optional array of A1 notation ranges (e.g., ['Sheet1!A1:B10']). If not provided, reads the entire sheet.
      • sheetId (number, optional): Specific sheet ID to read. If not provided with ranges, reads the first sheet.
    • Output: Returns the specified data from the spreadsheet.
  • gsheets_update_cell

    • Description: Update a cell value in a Google Spreadsheet.
    • Input:
      • fileId (string): ID of the spreadsheet.
      • range (string): Cell range in A1 notation (e.g., 'Sheet1!A1').
      • value (string): New cell value.
    • Output: Confirms the updated value in the specified cell.
Resources

The server provides access to Google Drive files:

  • Files (gdrive:///<file_id>)
    • Supports all file types
    • Google Workspace files are automatically exported:
      • Docs → Markdown
      • Sheets → CSV
      • Presentations → Plain text
      • Drawings → PNG
    • Other files are provided in their native format

Getting started

  1. Create a new Google Cloud project
  2. Enable the Google Drive API
  3. Configure an OAuth consent screen ("internal" is fine for testing)
  4. Add OAuth scopes https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/spreadsheets
  5. In order to allow interaction with sheets and docs you will also need to enable the Google Sheets API and Google Docs API in your workspaces Enabled API and Services section.
  6. Create an OAuth Client ID for application type "Desktop App"
  7. Download the JSON file of your client's OAuth keys
  8. Rename the key file to gcp-oauth.keys.json and place into the path you specify with GDRIVE_CREDS_DIR (i.e. /Users/username/.config/mcp-gdrive)
  9. Note your OAuth Client ID and Client Secret. They must be provided as environment variables along with your configuration directory.
  10. You will also need to setup a .env file within the project with the following fields. You can find the Client ID and Client Secret in the Credentials section of the Google Cloud Console.
GDRIVE_CREDS_DIR=/path/to/config/directory
CLIENT_ID=<CLIENT_ID>
CLIENT_SECRET=<CLIENT_SECRET>

Make sure to build the server with either npm run build or npm run watch.

Authentication

Next you will need to run node ./dist/index.js to trigger the authentication step

You will be prompted to authenticate with your browser. You must authenticate with an account in the same organization as your Google Cloud project.

Your OAuth token is saved in the directory specified by the GDRIVE_CREDS_DIR environment variable.

Usage with Desktop App

To integrate this server with the desktop app, add the following to your app's server configuration:

{
  "mcpServers": {
    "gdrive": {
      "command": "npx",
      "args": ["-y", "@isaacphi/mcp-gdrive"],
      "env": {
        "CLIENT_ID": "<CLIENT_ID>",
        "CLIENT_SECRET": "<CLIENT_SECRET>",
        "GDRIVE_CREDS_DIR": "/path/to/config/directory"
      }
    }
  }
}

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Questions about Gdrive

What is the Gdrive MCP server?

Model Context Protocol (MCP) Server for reading from Google Drive and editing Google Sheets. Gdrive is maintained by isaacphi on GitHub at isaacphi/mcp-gdrive, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Gdrive MCP server?

Gdrive doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (isaacphi/mcp-gdrive). Like most servers, Gdrive ends with a command or URL you paste into your AI app's MCP config.

Does Gdrive need an API key?

The registry lists no required keys for Gdrive. Check the Gdrive README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Gdrive an official MCP server?

No. Gdrive is a community server maintained by isaacphi. Community servers can be excellent; read the code and the open issues before you give Gdrive access to company data.

What license is Gdrive under?

Gdrive is released under the MIT license, according to its GitHub repository. The license covers the code of Gdrive; the service it connects to has its own terms.