Provides comprehensive access to Google Drive documents with features including file search, content extraction, document conversion to markdown, selective content retrieval, metadata access, folder listing, and comment retrieval while respecting permissions and sharing settings.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Drive MCP Serversearch for the Q4 budget report and extract the executive summary"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Drive MCP Server
A Model Context Protocol (MCP) server that provides AI agents with efficient access to Google Drive documents. The server downloads files locally, converts them to markdown, and offers selective content extraction to optimize context window usage.
Features
Document Processing: Convert Google Docs, PDFs, and Word documents to markdown
Selective Content Extraction: Extract specific sections, page ranges, or keyword-based content
Intelligent Caching: Local caching with LRU eviction and TTL-based expiration
Advanced Search: Search files by name, type, content, and metadata
Permission Management: Respect Google Drive permissions and sharing settings
MCP Protocol Compliance: Full integration with MCP-compatible AI agents
Project Structure
Installation
Configuration
The server requires Google Drive API credentials. Create a config.json file or set environment variables:
Environment Variables
Development
MCP Tools
The server exposes the following MCP tools:
drive_search_files: Search files on Google Drivedrive_get_file: Get file information and contentdrive_get_content_chunk: Extract specific content portionsdrive_get_file_metadata: Retrieve file metadata and permissionsdrive_list_folder: List folder contentsdrive_get_comments: Get file comments (if available)
Requirements
Node.js >= 18.0.0
Google Drive API credentials
TypeScript 5.5+
License
MIT