- Home
- MCP servers
- Google Drive
Google Drive
- typescript
2
GitHub Stars
typescript
Language
6 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": {
"mcp-mirror-felores_gdrive-mcp-server": {
"command": "node",
"args": [
"path/to/gdrive-mcp-server/dist/index.js"
],
"env": {
"MCP_GDRIVE_CREDENTIALS": "path/to/gdrive-mcp-server/credentials/.gdrive-server-credentials.json",
"GOOGLE_APPLICATION_CREDENTIALS": "path/to/gdrive-mcp-server/credentials/gcp-oauth.keys.json"
}
}
}
}You can run a Google Drive MCP Server that lets AI models search, list, and read files directly from Google Drive. It handles different Google Workspace file formats automatically and exposes simple actions you can call from your MCP client to integrate Drive content into your AI workflows.
How to use
You will interact with two core actions provided by the server. Use gdrive_search to find files in Google Drive by a text query, getting back file names, types, IDs, last modified times, and sizes. Use gdrive_read_file to fetch the contents of a file by its Google Drive file ID, with automatic format conversion for supported types. The server converts Google Docs to Markdown, Sheets to CSV, Presentations to plain text, Drawings to PNG, and plain Text/JSON files to UTF-8 text. Other file types are returned as Base64 when needed.
How to install
# Prerequisites
node --version
npm --version
# Ensure Node.js v16+ is installed
# Install dependencies and build
git clone https://github.com/felores/gdrive-mcp-server.git
cd gdrive-mcp-server
npm install
npm run build
# Prepare credentials (see below for OAuth steps)
Additional sections
Configuration and startup are designed to be straightforward if you follow the steps for OAuth credentials and local runtime. The server runs as a local process and is started with Node, then wired into your MCP client via a standard stdio configuration.
Available tools
gdrive_search
Search Google Drive files with full-text queries and return metadata such as file name, MIME type, ID, last modified time, and size.
gdrive_read_file
Read a Google Drive file by its file ID and obtain the file contents with appropriate format conversion.