Skip to main content

node-wire-google-drive

Google Drive connector for Node Wire. Lets an agent or app list, read, create, upload, update and delete files in Google Drive (API v3) and share them with other users. It authenticates as a service account, or with each caller's own Google token.

Part of Node Wire. Every call runs through the Node Wire runtime, so it gets input validation, retries with a circuit breaker, scope policy, a shared error taxonomy, and OpenTelemetry tracing. A Node Wire host exposes each action over REST, gRPC and MCP.

Install

pip install node-wire-google-drive

This pulls in node-wire-runtime. Pre-releases are published as X.Y.ZbN; install one with pip install --pre node-wire-google-drive. To install every connector at once, use node-wire-connectors.

The wheel is pure Python (py3-none-any) and installs on CPython 3.11, 3.12 and 3.13 on any OS and CPU.

Actions

The connector registers as google_drive. MCP tool names are <connector_id>_<action>, with dots replaced by underscores.

Action MCP tool What it does
files.list google_drive_files_list Lists or searches files, with an optional Drive query and fields mask
files.get google_drive_files_get Fetches the metadata of one file
files.create google_drive_files_create Creates a file or folder entry (metadata only), optionally inside a folder
files.upload google_drive_files_upload Creates a new file with text content
files.update google_drive_files_update Updates a file's metadata or moves it between folders
files.delete google_drive_files_delete Deletes a file
permissions.create google_drive_permissions_create Shares a file with a user as reader, commenter, writer or owner

Configuration

Add the connector to config/connectors.yaml:

connectors:
  google_drive:
    enabled: true
    exposed_via: ["rest", "grpc", "mcp"]
    auth:
      provider: service_account
      sa_json_secret: GOOGLE_DRIVE_SA_JSON
      scopes:
      - https://www.googleapis.com/auth/drive

Secrets are read through the configured secret provider (environment variables by default):

Variable Purpose
GOOGLE_DRIVE_SA_JSON Service-account key: the JSON contents, or (locally) an absolute path to the key file

Per-user access (upstream_bearer)

Instead of a service account, the connector can forward each caller's own Google access token, so every call runs with that user's Drive permissions. This is a trust-boundary decision: Node Wire forwards the token as-is and does not check that it was issued for Drive. It is enabled only when both of these are set, and fails closed otherwise:

  1. auth: { provider: upstream_bearer } in config/connectors.yaml (or GOOGLE_DRIVE_AUTH_PROVIDER=upstream_bearer)
  2. NW_UPSTREAM_BEARER_CONNECTORS=google_drive

Usage

Set NW_ALLOWED_CONNECTORS=google_drive (comma-separate several). Node Wire loads only the connectors listed there, and discovers them through the node_wire.connectors entry point. A Node Wire host (the REST, gRPC or MCP server, or ConnectorFactory) then builds the connector from the configuration above. See Use a connector.

Documentation

License

Apache-2.0. See LICENSE.

Metadata

Release files for node-wire-google-drive 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for node-wire-google-drive 1.1.0
File Interpreter ABI Platform Actions
node_wire_google_drive-1.1.0-py3-none-any.whl Python 3 none any Details for node_wire_google_drive-1.1.0-py3-none-any.whl

Release files / node_wire_google_drive-1.1.0-py3-none-any.whl

Download URL node_wire_google_drive-1.1.0-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
228c17b733f5d1fe5d41bf025fd8aaace0cd739aa861a3f7dbbccd03cea309d4
BLAKE2b-256 checksum
How to use checksums
07ba3bbb169cbe3daa9a23febb2a7b274d15c0ad4dec57b18b080bb27b5a6b56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for node-wire-google-drive 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for node_wire_google_drive-1.1.0-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page