{
    "schemaVersion": 1,
    "slug": "google-drive",
    "name": "Google Drive",
    "description": "Search, read, create, and copy files in Google Drive.",
    "categories": [
        "content",
        "productivity"
    ],
    "featured": true,
    "branding": {
        "logoUrl": "/brands/apps/google-drive.svg"
    },
    "urlPatterns": [
        "https://drivemcp.googleapis.com/*",
        "https://drive.google.com/*"
    ],
    "docsUrl": "https://developers.google.com/workspace/drive/api/reference/mcp",
    "setupPrerequisite": {
        "title": "Google Developer Preview access required",
        "description": "Google must register both the Workspace email used to authorize Paperclip and the Google Cloud project that owns the OAuth client. Registration is limited to those emails and projects; it does not enable unrelated Paperclip customers.",
        "steps": [
            "Apply with the Workspace email that will sign in and the Google Cloud project that owns the OAuth client.",
            "Wait for the Google Group notification and then Google's final project-registration email, usually within a couple of days.",
            "Add every additional tester email or Cloud project through Google's member request forms before connecting."
        ],
        "actionLabel": "Apply or verify Developer Preview enrollment",
        "actionUrl": "https://developers.google.com/workspace/preview"
    },
    "redirectConstraints": "https-or-loopback-http",
    "methods": [
        {
            "key": "paperclip-read",
            "label": "Connect with Paperclip",
            "transport": "mcp_remote",
            "auth": "oauth",
            "oauthStrategy": "paperclip_cloud_connector",
            "connectorProfile": "drive.read",
            "capabilityProfile": {
                "key": "read",
                "label": "Read only",
                "description": "Search and read files and metadata."
            },
            "grantKinds": [
                "user",
                "organization"
            ],
            "ownershipModes": [
                "platform_shared"
            ],
            "whenToUse": "Use Paperclip-managed OAuth for read-only Drive access.",
            "defaults": {
                "serverUrl": "https://drivemcp.googleapis.com/mcp/v1",
                "scopesHint": [
                    "https://www.googleapis.com/auth/drive.readonly"
                ]
            },
            "guidanceMd": "Connect Google Drive to search and read files. Google's Developer Preview Program must register the signed-in Workspace account and Google Cloud project before tools can run.",
            "warnings": [
                "Before connecting, enroll the signed-in Workspace account and Google Cloud project in Google's Developer Preview Program and wait for the registration confirmation."
            ],
            "riskTier": "S3"
        },
        {
            "key": "customer-read-oauth",
            "label": "Use your own Google OAuth app",
            "transport": "mcp_remote",
            "auth": "oauth",
            "capabilityProfile": {
                "key": "read",
                "label": "Read only",
                "description": "Search and read files and metadata."
            },
            "grantKinds": [
                "user",
                "organization"
            ],
            "ownershipModes": [
                "customer"
            ],
            "whenToUse": "Use a customer-owned OAuth client for read-only Drive access.",
            "defaults": {
                "serverUrl": "https://drivemcp.googleapis.com/mcp/v1",
                "authorizationEndpoint": "https://accounts.google.com/o/oauth2/v2/auth",
                "tokenEndpoint": "https://oauth2.googleapis.com/token",
                "metadataUrl": "https://accounts.google.com/.well-known/openid-configuration",
                "scopesHint": [
                    "https://www.googleapis.com/auth/drive.readonly"
                ],
                "oauthAuthorizationParams": {
                    "access_type": "offline",
                    "prompt": "consent"
                }
            },
            "guidanceMd": "Enroll the Workspace account and Google Cloud project in Google's Developer Preview Program, enable the Drive and Drive MCP APIs, then register Paperclip's callback URI.",
            "consoleLinks": {
                "register": "https://console.cloud.google.com/auth/clients",
                "docs": "https://developers.google.com/workspace/guides/configure-mcp-servers"
            },
            "warnings": [
                "Before connecting, enroll the signed-in Workspace account and Google Cloud project in Google's Developer Preview Program and wait for the registration confirmation."
            ],
            "riskTier": "S3"
        },
        {
            "key": "paperclip-write",
            "label": "Connect with Paperclip",
            "transport": "mcp_remote",
            "auth": "oauth",
            "oauthStrategy": "paperclip_cloud_connector",
            "connectorProfile": "drive.write",
            "capabilityProfile": {
                "key": "write",
                "label": "Read & create",
                "description": "Read files and create or copy files."
            },
            "grantKinds": [
                "user",
                "organization"
            ],
            "ownershipModes": [
                "platform_shared"
            ],
            "whenToUse": "Use Paperclip-managed OAuth for Drive read and create access.",
            "defaults": {
                "serverUrl": "https://drivemcp.googleapis.com/mcp/v1",
                "scopesHint": [
                    "https://www.googleapis.com/auth/drive.readonly",
                    "https://www.googleapis.com/auth/drive.file"
                ]
            },
            "guidanceMd": "Connect Google Drive to read files and create or copy app-accessible files. Google's Developer Preview Program must register the signed-in Workspace account and Google Cloud project before tools can run.",
            "warnings": [
                "File creation and copying require approval.",
                "Before connecting, enroll the signed-in Workspace account and Google Cloud project in Google's Developer Preview Program and wait for the registration confirmation."
            ],
            "riskTier": "S4"
        },
        {
            "key": "customer-write-oauth",
            "label": "Use your own Google OAuth app",
            "transport": "mcp_remote",
            "auth": "oauth",
            "capabilityProfile": {
                "key": "write",
                "label": "Read & create",
                "description": "Read files and create or copy files."
            },
            "grantKinds": [
                "user",
                "organization"
            ],
            "ownershipModes": [
                "customer"
            ],
            "whenToUse": "Use a customer-owned OAuth client for Drive read and create access.",
            "defaults": {
                "serverUrl": "https://drivemcp.googleapis.com/mcp/v1",
                "authorizationEndpoint": "https://accounts.google.com/o/oauth2/v2/auth",
                "tokenEndpoint": "https://oauth2.googleapis.com/token",
                "metadataUrl": "https://accounts.google.com/.well-known/openid-configuration",
                "scopesHint": [
                    "https://www.googleapis.com/auth/drive.readonly",
                    "https://www.googleapis.com/auth/drive.file"
                ],
                "oauthAuthorizationParams": {
                    "access_type": "offline",
                    "prompt": "consent"
                }
            },
            "guidanceMd": "Enroll the Workspace account and Google Cloud project in Google's Developer Preview Program, enable the Drive and Drive MCP APIs, then register Paperclip's callback URI.",
            "consoleLinks": {
                "register": "https://console.cloud.google.com/auth/clients",
                "docs": "https://developers.google.com/workspace/guides/configure-mcp-servers"
            },
            "warnings": [
                "File creation and copying require approval.",
                "Before connecting, enroll the signed-in Workspace account and Google Cloud project in Google's Developer Preview Program and wait for the registration confirmation."
            ],
            "riskTier": "S4"
        }
    ]
}
