Manage Google Drive files directly through your AI workflows. Search documents using advanced queries, browse folders, read file content, and upload, download, or delete files with ease.
ChatGPT is OpenAI's assistant. It can add custom MCP servers as plugins, which lets it call your tools from a conversation.
This guide connects Google Drive MCP to ChatGPT through MewCP, so ChatGPT can use Google Drive MCP's 9 tools, like copy_file, create_file and download_file_content, without your Google Drive MCP credentials ever reaching the app.
Google Drive MCP signs in through managed OAuth. MewCP stores the token encrypted, refreshes it before it expires and injects it only at call time. Your agent never holds it, so it can never leak it.
More apps
Search a connected Notion workspace and read any page, database or saved view. Create and update pages, create databases, and query data sources with SQL or structured filters. Also covers comments and discussions, moving and duplicating pages, file uploads, workspace users and teamspaces, and Notion Skills and Agents.
Create and manage Lucid diagrams with AI agents, including flowcharts, process maps, architecture diagrams, and visual documentation. Search existing Lucid content and update diagrams using natural language.
Connect AI agents to ClickUp to manage tasks, projects, documents, lists, comments, and workflows, while searching workspace data and automating project management activities.
LlamaParse MCP lets AI agents extract structured, machine-readable data from complex documents using LlamaParse, supporting document parsing, OCR, tables, images, and agentic document workflows.
Other clients
Google Drive MCP works the same way in every client below. Pick yours for its own guide.
Free to start.
Scope access to the exact Google Drive MCP tools and accounts you allow, work and personal side by side. Anything outside that scope is refused at call time, even when the model asks for it.
Each call is logged: what ran, on which account, and whether it worked. Failures come back structured, so the agent knows whether to retry instead of guessing.
Every app sits behind one secure MCP URL, and there is no server for you to deploy or keep running. Add an integration in the dashboard and it is live on the next call, with no config to change and no new credentials to wire up. Tools load only when a task needs them, so your agent stays fast and focused however many apps you connect.
In ChatGPT, open Plugins and choose Add custom MCP.
Name it "mewcp" and paste the server URL.
Click Connect. A sign-in window opens; sign in to MewCP and approve access. No API key needed.
Start a new chat and ask: "List the tools you can use from MewCP." You should see your connected apps.
Call this tool to copy an existing File in Google Drive. The tool allows specifying a new title and a parent folder for the copy. If the title is not specified, the copy title will be 'Copy of {original title}'. If the parent folder is not specified, the copy will be created in the same folder as the original file, unless the requesting user does not have write access to that folder, in which case the copy will be created in the user's root folder. Pregenerated file IDs (`pregeneratedId`, obtained from `generate_ids`) are supported when copying non-Google Workspace files. Returns the newly created File object upon successful copying.
Call this tool to create or upload a File to Google Drive. If uploading content, prefer `textContent` for text content. For non-UTF8 contents, use the `base64Content` field and base64 encode the data to set on that field. Returns a single File object upon successful creation. The following Google first-party mime types can be created without providing content: - `application/vnd.google-apps.document` - `application/vnd.google-apps.spreadsheet` - `application/vnd.google-apps.presentation` Folders can be created by setting the mime type to `application/vnd.google-apps.folder`. When uploading content, the `contentMimeType` field is required and should match the type of the content being uploaded. By default, supported content will be converted to Google first-party mime types. To disable conversions for first-party mime types, set `disableConversionToGoogleType` to true. Pregenerated file IDs (`pregeneratedId`, obtained from `generate_ids`) are supported for non-Google Workspace files and folders (`application/vnd.google-apps.folder`). When uploading content with `pregeneratedId`, `disableConversionToGoogleType` must be set to true.
Call this tool to download the content of a Drive file as a base64 encoded string. If the file is a Google Drive first-party mime type, the `exportMimeType` field specifies the desired export mime type. When the field is unset, defaults to plain text types (e.g. `text/plain`, `text/csv`). If the file is not found, try using other tools like `search_files` to find the file the user is requesting. If the user wants a natural language representation of their Drive content, use the `read_file_content` tool (`read_file_content` should be smaller and easier to parse).
Call this tool to find general metadata about a user's Drive file. Context window token management can be tuned via `snippetVerbosity` (default is `SnippetVerbosity.DETAILED`) or if only metadata is needed, use `excludeContentSnippets`. If the file is not found, try using other tools like `search_files` to find the file the user is requesting.
Call this tool to list the permissions of a Drive File.
Call this tool to find recent files for a user specified a sort order. Default sort order is `recency` if orderBy is not set or set to an unsupported value. Context window token management can be tuned via `snippetVerbosity` (default is `SnippetVerbosity.DETAILED`) or if only metadata is needed, use `excludeContentSnippets`. Supported sort orders are: - `recency`: The most recent timestamp from the file's date-time fields. - `lastModified`: The last time the file was modified by anyone. - `lastModifiedByMe`: The last time the file was modified by the user. The default page size is 10. Utilize `nextPageToken` to paginate through the results.
Call this tool to fetch a natural language representation of a known Drive file, and if specified, its comments. REQUIREMENTS & WORKFLOW: - `fileId` is required. You MUST pass an exact Drive file ID returned by a previous discovery tool (`search_files` or `list_recent_files`) or provided explicitly in the user prompt. - If given a file title, name, or topic without an explicit `fileId`, you MUST FIRST call `search_files` to find the file and retrieve its `fileId` before invoking this tool. - Set `includeComments` to `true` when the user asks about comments, feedback, action items, open questions, or discussion threads on the file, or before replying to or resolving a comment. The file content may be incomplete for very large files. The text representation will change over time, so don't make assumptions about the particular format of the text returned by this tool. If supported and specified, comment tags will be included in the content. Supported Mime Types: - `application/vnd.google-apps.document` (supports comments) - `application/vnd.google-apps.presentation` (supports comments) - `application/vnd.google-apps.spreadsheet` (supports comments) - `application/pdf` - `application/msword` - `application/vnd.openxmlformats-officedocument.wordprocessingml.document` - `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` - `application/vnd.openxmlformats-officedocument.presentationml.presentation` - `application/vnd.oasis.opendocument.spreadsheet` - `application/vnd.oasis.opendocument.presentation` - `application/x-vnd.oasis.opendocument.text` - `image/png` - `image/jpeg` - `image/jpg` - `text/*` - `video/*` (when a transcript is available) If the file is not found, try using other tools like `search_files` to find the file the user is requesting using keywords.
Search for Drive files using a structured query (syntax: `query_term operator values`). Only terms in this list are supported. Combine clauses with `and`, `or`, `not`, and parentheses. String values must be single-quoted; escape embedded quotes as `\'`. Context window token management can be tuned via `snippetVerbosity` (default is `SnippetVerbosity.DETAILED`) or if only metadata is needed, use `excludeContentSnippets`. To display a folder hierarchy, directory tree structure, or recursive directory and file counts, prefer `get_folder_tree` (when available) over emulating tree traversal with `search_files`; use `search_files` first only if you need to look up a named folder's ID. Use `title contains` instead of `title =` when searching by file or folder name, unless the user explicitly asks for an exact full-title match. Do NOT include document type terms (e.g., 'presentation', 'slides', 'deck', 'document', 'doc', 'spreadsheet', 'sheet', 'pdf', 'folder', 'project') inside `title` or `fullText` clauses. Separate title keywords from file type terms and map them to `mimeType` clauses in the query. Where a folder ID is expected (`parentId`, `ancestors`), `'root'` means the user's "My Drive". Query terms & operators: - `title` (ops: contains, =, !=) — file title - `fullText` (ops: contains) — title or body text - `mimeType` (ops: contains, =, !=) — MIME type - `modifiedTime`, `viewedByMeTime`, `createdTime` (ops: `<=`, `<`, `=`, `!=`, `>`, `>=`). Use RFC 3339 UTC, e.g., `2012-06-04T12:00:00-08:00`. Date types not comparable. - `parentId` (ops: `=`, `!=`). Direct children only. - `ancestors` (use `'<folderId>' in ancestors`). Files anywhere under the folder, including nested subfolders. Recently moved files may take a short time to appear. - `owner` (ops: `=`, `!=`). Use `'me'` for the requesting user. - `readers`, `writers` (use `'me' in readers` or `'user@example.com' in writers`). - `creator` (ops: `=`, `!=`). `'me'` or an email — who created the file. - `sharedFrom` (ops: `=`, `!=`). An email — who shared the file with the user. - `sharedTo` (ops: `=`, `!=`). An email — who the user shared the file with. - `visibility` (ops: `=`, `!=`): `'anyoneWithLink'`, `'anyoneCanFind'`, `'anyone'`, `'domainWithLink'`, `'domainCanFind'`, `'domain'`, `'limited'` (not shared via link, domain or publicly), `'external'` (shared with people outside the user's organization). - `sharedWithMe`, `starred` (ops: `=`, `!=`). `true` or `false`. - `folderProperties` (use `'value' in folderProperties`): `'syncedComputer'` (synced computer), `'syncFolder'` (synced folder). - `followUp` (ops: `=`, `!=`): `'assignedcomments'` (aliases `'todos'`, `'actionitems'`), `'suggestions'`, `'any'` — files with open follow-ups for the user. - `trashed` (ops: `=`, `!=`). `true` or `false` (default `false`). Other operators: `and`, `or`, `not`, `in`. Examples: - `title contains 'hello' and title contains 'goodbye'` - `modifiedTime > '2024-01-01T00:00:00Z' and (mimeType contains 'image/' or mimeType contains 'video/')` - `mimeType = 'application/vnd.google-apps.project'` (for Drive projects) - `parentId = '1234567'` (direct children of a folder) - `'1234567' in ancestors and mimeType = 'application/pdf'` (PDFs anywhere under a folder) - `fullText contains 'hello'` - `owner = 'test@example.org'` - `sharedWithMe = true` - `starred = true` - `owner = 'me'` (for files owned by the user) - `'colleague@example.org' in writers and sharedFrom = 'colleague@example.org'` - `owner = 'me' and visibility = 'anyone'` (user's files shared publicly or by link) - `'syncedComputer' in folderProperties` Use `nextPageToken` to paginate. Duplicate results can occur across page boundaries. An empty response means no more results.
Call this tool to upload a new content revision for an existing blob file in Google Drive. Prefer `textContent` for UTF-8 text content. For binary or non-UTF8 contents, use the `base64Content` field and base64 encode the data. The `contentMimeType` field is required and should match the type of the content being uploaded. If the file is not found, try using other tools like `search_files` to find the file the user is attempting to update.