MCP ServerSTDIOOfficialv1.0.8

Google Drive MCP Server

Access and manage Google Drive files, folders, and sharing directly from Claude. Search, navigate, upload, and organize your Drive with OAuth or service account authentication.

io.github.mcp-z/mcp-drive

Google Drive runs locally over stdio. Test it on your machine with MCP Playground Desktop:

Hosted URL

Local install

Transport

STDIO

Auth

2 required env vars

What the Google Drive MCP server does

How models use it and what it is built for.

Access and manage Google Drive files, folders, and sharing directly from Claude. Search, navigate, upload, and organize your Drive with OAuth or service account authentication.

Connect to Google Drive

Local install — runs as a subprocess.

npx @mcp-z/mcp-drive@1.0.8

Environment variables

Configuration this server reads at startup.

  • GOOGLE_CLIENT_IDRequired

    Google OAuth client ID (required for OAuth authentication modes)

  • GOOGLE_CLIENT_IDRequired

    Google OAuth client ID (required for OAuth authentication modes)

  • GOOGLE_CLIENT_SECRETSecret

    Google OAuth client secret (optional for public clients)

  • GOOGLE_SERVICE_ACCOUNT_KEY_FILE

    Path to service account JSON key file (required for service-account auth mode)

  • AUTH_MODE

    Authentication mode

  • HEADLESS

    Disable browser auto-open, return auth URL instead (true/false)

  • REDIRECT_URI

    OAuth redirect URI (optional, default: ephemeral loopback)

  • RESOURCE_STORE_URI

    Resource store URI for exported files (file://)

  • PORT

    HTTP server port (overrides --port)

  • BASE_URL

    Base URL for HTTP transport (used for OAuth/DCR endpoints and file links)

  • LOG_LEVEL

    Logging level

  • GOOGLE_CLIENT_SECRETSecret

    Google OAuth client secret (optional for public clients)

  • GOOGLE_SERVICE_ACCOUNT_KEY_FILE

    Path to service account JSON key file (required for service-account auth mode)

  • AUTH_MODE

    Authentication mode

  • HEADLESS

    Disable browser auto-open, return auth URL instead (true/false)

  • REDIRECT_URI

    OAuth redirect URI (optional, default: ephemeral loopback)

  • DCR_MODE

    Dynamic Client Registration mode

  • DCR_VERIFY_URL

    External verification endpoint URL (required for external DCR mode)

  • DCR_STORE_URI

    DCR client storage URI (for self-hosted DCR mode)

  • RESOURCE_STORE_URI

    Resource store URI for exported files (file://)

  • PORT

    HTTP server port (overrides --port)

  • BASE_URL

    Base URL for HTTP transport (used for OAuth/DCR endpoints and file links)

  • LOG_LEVEL

    Logging level

Resources

Where to find authoritative docs and source for Google Drive.

Example prompts for Google Drive

Paste any of these into Agent Studio after connecting Google Drive.

  • List all files in my Google Drive root folder
  • Search for PDFs modified in the last week
  • Create a new folder called 'Project Archive' and move files into it
  • Share this file with read-only access to user@example.com

Google Drive MCP server — FAQ

Common questions about connecting and running Google Drive.

  • How do I authenticate this MCP server with Google Drive?

    Set AUTH_MODE to either 'oauth' or 'service-account'. For OAuth, provide GOOGLE_CLIENT_ID and optionally GOOGLE_CLIENT_SECRET. For service account, point GOOGLE_SERVICE_ACCOUNT_KEY_FILE to your JSON key file. The server handles the authentication flow automatically.

  • Can I use this in a headless environment without a browser?

    Yes. Set HEADLESS=true and the server will return an authentication URL instead of auto-opening a browser. You can then manually visit the URL to complete OAuth flow.

  • What file operations does this MCP server support?

    The server supports file operations including navigation, search, folder creation, and sharing. Specific operations are exposed as MCP tools—check the server's tool definitions for the complete list of available actions.

  • Do I need both GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET?

    GOOGLE_CLIENT_ID is required for OAuth mode. GOOGLE_CLIENT_SECRET is optional and only needed for confidential clients; public clients can omit it.

  • How do I export or store files accessed through this server?

    Set RESOURCE_STORE_URI to a file:// path to configure where exported files are stored. This allows the server to persist files locally when needed.

Skip the local setup — run MCP in your browser

MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 60+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.

Open Agent Studio

In your browser

MCP Agent Studio

Server has a public URL? Chat with 90+ models on it, watch every tool call, and compare models side by side.

Open MCP Agent Studio →

On your computer

MCP Playground Desktop

Server runs on localhost or over stdio? The browser can’t reach it. The desktop app can, with 90+ models in Agent Studio. Download free

Related servers

More on MCP Playground