🗂️ MCP server for Google Drive - list, read, upload, and organize files
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add google-drive --env GOOGLE_ACCESS_TOKEN='<GOOGLE_ACCESS_TOKEN>' -- npx -y google-drive-mcp~/.codex/config.toml
[mcp_servers.google-drive]
command = "npx"
args = ["-y", "google-drive-mcp"]
env = { GOOGLE_ACCESS_TOKEN = "<GOOGLE_ACCESS_TOKEN>" }
# codex mcp add google-drive --env GOOGLE_ACCESS_TOKEN='<GOOGLE_ACCESS_TOKEN>' -- npx -y google-drive-mcp~/.cursor/mcp.json
{
"mcpServers": {
"google-drive": {
"command": "npx",
"args": [
"-y",
"google-drive-mcp"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"google-drive": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"google-drive-mcp"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"google-drive": {
"command": "npx",
"args": [
"-y",
"google-drive-mcp"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"google-drive": {
"command": "npx",
"args": [
"-y",
"google-drive-mcp"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"google-drive": {
"command": "npx",
"args": [
"-y",
"google-drive-mcp"
],
"env": {
"GOOGLE_ACCESS_TOKEN": "<GOOGLE_ACCESS_TOKEN>"
}
}
}
}需要的环境变量
GOOGLE_ACCESS_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。