MCPSERV.CLUB
hxie-pallas

Google Drive MCP Server

MCP Server

MCP interface for Google Drive files and folders

Stale(50)
5stars
0views
Updated Jun 9, 2025

About

Provides an MCP (Machine Control Protocol) server that enables searching, retrieving content and metadata of Google Drive files. Supports OAuth authentication with token persistence and offers HTTP or stdio transport modes.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Google Drive MCP Server Overview

The Google Drive MCP Server bridges the gap between AI assistants and cloud storage by exposing a lightweight, protocol‑agnostic interface for interacting with Google Drive. It solves the common problem of giving AI agents programmatic access to files and folders stored in a user’s Drive without exposing raw API credentials or building custom connectors for each assistant. By wrapping the Google Drive REST API in a standard Machine Control Protocol (MCP) surface, developers can integrate file search, retrieval, and metadata extraction into conversational or workflow‑driven AI applications with minimal friction.

At its core, the server offers three primary capabilities: searching for files by name or query, fetching file contents and metadata, and managing OAuth authentication with token persistence. These functions are available over both HTTP and stdio transport modes, enabling deployment in cloud services or local tooling. The OAuth flow is streamlined through a dedicated setup command that stores refresh tokens, allowing the server to maintain long‑term access without repeated user interaction. This design makes it trivial for an AI assistant like Claude to request a document, read its contents, or list the files in a shared folder as part of an automated workflow.

Key features include:

  • Unified search interface: Query Drive with simple keywords or advanced filters and receive structured results that can be parsed by the assistant.
  • Content retrieval: Download file data in raw bytes or text, depending on the MIME type, and expose metadata such as size, modification time, and ownership.
  • Persistent authentication: Tokens are stored securely and refreshed automatically, ensuring uninterrupted service during long‑running sessions.
  • Dual transport support: Run the server as a local process communicating via stdin/stdout or expose it over HTTP for remote clients, giving developers flexibility in how they host the service.
  • Rich terminal integration: When run locally, the server uses Rich to format logs and progress indicators, improving developer ergonomics.

Real‑world scenarios where this MCP server shines include:

  • Document‑centric AI assistants: An assistant can fetch a policy document from Drive, summarize it, and update the user in real time.
  • Automated data pipelines: A workflow that pulls CSV files from a shared Drive folder, processes them with an AI model, and writes results back to Drive.
  • Collaborative editing bots: Bots that monitor a Drive folder for new drafts, analyze content quality, and leave inline feedback.

Integrating the server into an AI workflow is straightforward. Once configured in the (or any MCP‑compatible client), an assistant can issue commands like or . The MCP framework handles serialization, transport, and error handling, allowing developers to focus on higher‑level logic rather than low‑level API plumbing. This abstraction not only accelerates development but also enhances security by centralizing credential management.

In summary, the Google Drive MCP Server provides a robust, extensible bridge between AI assistants and cloud storage. Its emphasis on OAuth persistence, dual transport modes, and a clean MCP surface makes it an attractive choice for developers looking to enrich AI experiences with seamless file access and manipulation.