# Google Drive (Natoma)

{% hint style="warning" %}
**Early Access** — This server is currently in early access. Features and configuration may change.
{% endhint %}

**Type:** Natoma Hosted

**Source Type:** Remote URL

**Description:** Google Drive MCP server provides AI assistants with access to Google Drive. This is a subset of the available tools in the Google Workspace MCP Server, created by Natoma.

***

## Setup

### Step 1: Enable the Google Drive API

1. Go to the [Google Cloud Console](https://console.cloud.google.com/).
2. Make sure your target project is selected in the top project dropdown.
3. In the left sidebar, navigate to **APIs & Services > Library**.
4. Search for **Google Drive API** and click on it.
5. Click **Enable**.

You can also enable it directly: [Google Drive API](https://console.cloud.google.com/flows/enableapi?apiid=drive.googleapis.com)

### Step 2: Configure the OAuth Consent Screen

1. In the Google Cloud Console, go to **Google Auth Platform > Branding** (or search "OAuth consent screen" in the top search bar).
2. If the Auth Platform isn't set up yet, click **Get Started** and fill in the following:
   * **App name:** Drive MCP Server
   * **User support email:** your email address — click **Next**
   * **Audience:** Select **Internal** — click **Next**
   * **Contact email:** your email address
3. Agree to the Google API Services User Data Policy, then click **Continue > Create**.
4. Click **Data Access** in the left menu, then click **Add or Remove Scopes**.
5. In the panel that appears, scroll down to **Manually add scopes** and paste in both scopes (one per line):

   ```
   https://www.googleapis.com/auth/drive.readonly
   https://www.googleapis.com/auth/drive.file
   ```
6. Click **Add to Table**, then **Update**, then **Save**.

### Step 3: Create an OAuth 2.0 Client ID

1. Go to **Google Auth Platform > Clients > Create Client**.
2. Select **Web application** as the application type.
3. Name the application.
4. In the **Authorized redirect URIs** section, click **+ Add URL** and enter:

{% hint style="warning" %}
Use exactly this redirect URI — Natoma will not complete the OAuth flow if it doesn't match.
{% endhint %}

```
https://api.natoma.app/mcp/server/callback
```

5. Click **Create** and copy the **Client ID** and **Client Secret**.

### Step 4: Configure the Connector in Natoma

1. Log in to your Natoma workspace as an Admin and navigate to **Apps**, then search for **Google Drive (Natoma)**.
2. Click **+** > **Allow Personal Connections**.
3. In the connector configuration dialog, enter the following:

| Field               | Value                                       |
| ------------------- | ------------------------------------------- |
| Server name         | Google Drive MCP (or any descriptive label) |
| OAuth Client ID     | The Client ID from Step 3                   |
| OAuth Client Secret | The Client Secret from Step 3               |

4. Save the connector. Natoma will initiate an OAuth consent flow to authorize access to your Google Drive.
5. Click **Test Connections** to see the available tools that are connected to Natoma.

{% hint style="info" %}
`drive.readonly` grants read access to all files the user can see. `drive.file` is more restrictive — it limits access to files created or explicitly opened by the app. For most Natoma workflows, both scopes are recommended: `drive.readonly` enables broad search and read operations, while `drive.file` enables file creation. The broader `drive` scope (full access) satisfies all requirements but is not recommended under least-privilege best practices.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.natoma.ai/apps/google-drive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
