google-mcp
A comprehensive Google MCP (Model Context Protocol) server written in Rust. Currently provides 41 tools, resource templates, and prompts for full Google Drive access, with Gmail and other Google services planned.
Potencialize seu agente
Instalação do publicador. Não é um endpoint do PlugMCP.
Host a copy with our keys and logs.
Ainda não há uma versão empacotada no registro. Siga o README do repositório.
URL remota ou um comando na sua máquina? Como as duas instalações diferem
Rodar no PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
AbrirDo publicador
A comprehensive Google MCP (Model Context Protocol) server written in Rust. Currently provides 41 tools, resource templates, and prompts for full Google Drive access, with Gmail and other Google services planned.
Comprehensive Google MCP server in Rust — 41 tools for Google Drive (Gmail & more planned). Stdio + Streamable HTTP with multi-user OAuth.
Supports both stdio and Streamable HTTP transports with multi-user OAuth.
cargo install gdrive-mcp-server
gdrive-mcp-server --credentials-file client_secret.json
gdrive:///{file_id} -- Read file content with auto-conversion (Docs → Markdown, Sheets → CSV, Slides → text, Drawings → PNG)gdrive:///folder/{folder_id} -- List folder contentsgdrive_search_help -- Help building Google Drive search queriesgdrive_organize_files -- File/folder organization guidancegdrive_sharing_guide -- Sharing and permissions guidanceclient_secret.json)client_secret.json in the project rootNote: For HTTP transport (multi-user), you may use Web application type instead, but Desktop app works for both modes.
git clone https://github.com/cafercangundogdu/google-mcp.git
cd google-mcp
cargo build --release
The binary will be at target/release/gdrive-mcp-server.
Single-user mode for Claude Desktop, MCP Inspector, or any stdio-based MCP client. On first run, a browser window opens for Google OAuth2 authorization. The token is cached for subsequent runs.
gdrive-mcp-server --credentials-file client_secret.json
Multi-user mode with full MCP OAuth 2.1 support. Each user authenticates with their own Google account via the MCP OAuth flow (RFC 9728). The server acts as an OAuth proxy to Google.
gdrive-mcp-server --transport http --http-addr 0.0.0.0:3000 --credentials-file client_secret.json
The MCP endpoint will be available at http://localhost:3000/mcp.
OAuth flow:
/.well-known/oauth-protected-resource/oauth/register (RFC 7591)All CLI options can be set via environment variables:
Add to your claude_desktop_config.json:
{
"mcpServers": {
"gdrive": {
"command": "/path/to/gdrive-mcp-server",
"args": ["--credentials-file", "/path/to/client_secret.json"]
}
}
}
# Stdio
npx @modelcontextprotocol/inspector ./target/release/gdrive-mcp-server -- --credentials-file client_secret.json
# HTTP
npx @modelcontextprotocol/inspector http://localhost:3000/mcp
For server-to-server usage without user interaction, use a service account key:
gdrive-mcp-server --credentials-file service-account-key.json
The server auto-detects the credential type from the JSON file.
crates/
gdrive-mcp-server/ # Binary crate (thin main.rs)
gdrive-mcp-core/ # Library crate (all logic)
src/
auth.rs # OAuth2 setup, token persistence, service account
client.rs # DriveClient wrapper
config.rs # CLI args + env vars (clap)
convert.rs # Google Doc format conversions
error.rs # Error types (thiserror)
oauth.rs # MCP OAuth 2.1 proxy to Google (HTTP mode)
server.rs # GDriveServer, ServerHandler impl
transport.rs # stdio / Streamable HTTP switching
tools/ # 41 MCP tools across 9 domain modules
resources/ # Resource templates (file, folder)
prompts/ # Prompts (search, organize, sharing)
Contributions are welcome! Please feel free to open issues or submit pull requests.
git checkout -b feature/my-feature)This project is licensed under the MIT License.
Roadmap: Gmail tools, Google Calendar, and more Google services are planned. Contributions welcome!
Comprehensive Google MCP server in Rust — 41 tools for Google Drive (Gmail & more planned). Stdio + Streamable HTTP with multi-user OAuth.
Ferramentas
Ainda não há lista de ferramentas. Servidores remotos recebem uma após a primeira verificação de saúde.
Perguntas frequentes
Copie nesta página a configuração stdio para Cursor, Claude Desktop, Claude Code ou VS Code. Ela usa a instalação do publicador, não um proxy do PlugMCP.
Este registro não lista nenhuma variável de ambiente obrigatória.
Google roda localmente via stdio.
Última verificação: 2026-10-28. Comprehensive Google MCP server in Rust — 41 tools for Google Drive (Gmail & more planned). Stdio + Streamable HTTP with multi-user OAuth.