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.
接入你的智能体
從發布者安裝。不是 PlugMCP 端點。
遠端 URL 還是本機指令? 兩種安裝方式的差異
來自發布者
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.
工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
這筆記錄未列出必要的環境變數。
Google 透過 stdio 在本機執行。
上次檢查時間:2026-10-28。 Comprehensive Google MCP server in Rust — 41 tools for Google Drive (Gmail & more planned). Stdio + Streamable HTTP with multi-user OAuth.