Google Drive

Connects MCP clients to Google Drive to list files and fetch file metadata.
  • javascript

0

GitHub Stars

javascript

Language

4 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "pedrohzwang-drive-mcp-connect": {
      "command": "node",
      "args": [
        "c:/git/projects/drive-mcp-connect/build/index.js"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "C:/path/to/your/service-account-key.json"
      }
    }
  }
}

This MCP server lets you connect Google Drive to an MCP client, enabling you to list files and fetch file metadata directly from Drive. It streamlines access to your Drive data for automation, tooling, or integrations that run through your MCP workflow.

How to use

You run the Google Drive MCP server locally and connect to it from your MCP client. The server exposes endpoints to list files in your Drive and to retrieve file metadata by ID. Start the server with Node.js, then configure your MCP client to communicate with it as a standard MCP server. You can supply a Google Cloud service account to handle authentication, or share specific Drive folders/files with the service account email to grant access.

How to install

Prerequisites you need before starting:

  • Install Node.js version 18 or higher for best compatibility.
  • Create a Google Cloud project, enable the Google Drive API, and create a Service Account. Download the service account JSON key file.
  • Set up authentication by either (a) setting the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path of your JSON key, or (b) sharing the folder/files you want to access with the service account email.

Configuration example and startup

{
  "mcpServers": {
    "google_drive": {
      "command": "node",
      "args": [
        "c:/git/projects/drive-mcp-connect/build/index.js"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "C:/path/to/your/service-account-key.json"
      }
    }
  }
}

Run steps (Windows example)

  1. Install Node.js if you have not already: download and install Node.js 18+ from the official site.

  2. Ensure the service account key is accessible at the path you will reference. For example, place the file at C:/path/to/your/service-account-key.json.

  3. Set the environment variable for the service account key (Windows PowerShell):

$env:GOOGLE_APPLICATION_CREDENTIALS = "C:\path\to\your\service-account-key.json"
  1. Start the MCP server using Node.js and the provided index file:
node c:/git/projects/drive-mcp-connect/build/index.js

Access control and permissions

Use a Google Cloud service account with Drive API access, or share the Drive resources you want to access with the service account email. This permits the MCP server to read file listings and fetch file metadata as requested by your MCP clients.

Tools Provided

  • list_files: List files in your Google Drive. - get_file_info: Get metadata for a specific file by its ID.

Available tools

list_files

List files in Google Drive.

get_file_info

Get metadata for a specific file by its ID.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational