home / mcp / google drive mcp server

Google Drive MCP Server

Provides multi-account Google Drive read-only access with file listing, search, and content retrieval via MCP.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "andresfrei-mcp-google-drive-server": {
      "url": "http://localhost:3001/mcp",
      "headers": {
        "LOG_LEVEL": "info",
        "MCP_API_KEY": "tu_api_key_seguro_aqui",
        "MCP_DRIVE_HOST": "0.0.0.0",
        "MCP_DRIVE_PORT": "3001",
        "DRIVES_CONFIG_PATH": "./drives-config.json"
      }
    }
  }
}

Available tools

list_drives

List all Google Drive accounts configured in the server.

add_drive

Add a new Google Drive account to the configuration by providing a driveId, name, description, and path to the service account JSON.

remove_drive

Remove a configured Google Drive account by driveId.

list_files

List files in a specified drive, with optional filters like folderId, modifiedAfter, mimeType, and pageSize.

get_file_content

Get the content of a file from Drive, supporting export for Docs/Sheets and text files.

search_files

Search for files by name within a specific drive.

list_files_recursive

Recursively list files and folders from a root folder with optional filters and depth control.