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.
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
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables AI agents to efficiently access and process Google Drive documents by converting them to markdown and offering selective content extraction. Features intelligent caching, advanced search capabilities, and respect for Drive permissions to optimize context window usage.