Google Drive MCP server for AI agents

Let Claude, ChatGPT or your own agent read and act on Google Drive: 17 typed functions through one MCP server. No Google Drive API key needed.

Functions
17
Sign-in
For account actions
Works with
MCP, HTTP, Node, Python

Connect

Just Google Drive

An MCP server for Google Drive alone, with one tool per function. Paste it into Claude, ChatGPT, Cursor or any MCP client as a remote server.

https://api.bowmark.ai/mcp/site/drive_google
Every site

One MCP server for Google Drive and every other site Bowmark covers. Your agent looks up what it needs and calls it.

https://api.bowmark.ai/mcp
Set it up in your client

Both need a Bowmark API key. The quickstart gets you one and a first result in a few minutes. Functions that need a login use the person's own account: how sign-in works.

Functions

Open a function to see its arguments, what it returns and how to call it.

Read 7
  • getAccountIdentifies the signed-in Google account and reads its Drive storage quota (limit and usage in bytes).

    Arguments

    None.

    Returns DriveAccount

    interface DriveAccount { displayName: string | null; emailAddress: string | null;
      storageLimit: number | null; storageUsage: number | null; // bytes; limit null = unlimited
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/getAccount

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.getAccount();
  • getDocumentTextExports a Google Doc as plain text (up to 2 MB).

    Arguments

    NameTypeRequired
    args{ fileId: string }Yes

    Returns DriveExport

    interface DriveExport { fileId: string; text: string; bytes: number }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/getDocumentText

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.getDocumentText({ fileId: "1AbCdEfGhIjKlMnOpQrStUv" });
  • getFileReads one Drive file's metadata: name, type, parent folder ids, starred/trashed flags, owners and what the caller may do to it.

    Arguments

    NameTypeRequired
    args{ fileId: string }Yes

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/getFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.getFile({ fileId: "1AbCdEfGhIjKlMnOpQrStUv" });
  • getPresentationTextExports a Google Slides presentation as plain text (up to 2 MB).

    Arguments

    NameTypeRequired
    args{ fileId: string }Yes

    Returns DriveExport

    interface DriveExport { fileId: string; text: string; bytes: number }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/getPresentationText

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.getPresentationText({ fileId: "1AbCdEfGhIjKlMnOpQrStUv" });
  • getSheetCsvExports a Google Sheet's first sheet as CSV (up to 2 MB).

    Arguments

    NameTypeRequired
    args{ fileId: string }Yes

    Returns DriveExport

    interface DriveExport { fileId: string; text: string; bytes: number }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/getSheetCsv

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.getSheetCsv({ fileId: "1AbCdEfGhIjKlMnOpQrStUv" });
  • listCommentsLists a Drive file's comments with pagination (replies not included).

    Arguments

    NameTypeRequired
    args{ fileId: string; pageToken?: string }Yes

    Returns DriveCommentPage

    interface DriveComment { id: string; content: string; author: string | null; createdTime: string | null; resolved: boolean }
    
    interface DriveCommentPage { comments: DriveComment[]; nextPageToken: string | null; hasMore: boolean }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/listComments

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.listComments({ fileId: "1AbCdEfGhIjKlMnOpQrStUv" });
  • listFilesSearches the caller's Drive with Drive query syntax, excluding trash unless the query mentions it; follow nextPageToken while hasMore.

    Arguments

    NameTypeRequired
    querystring
    Drive query syntax, e.g. "name contains 'budget'"; trashed = false is added unless you mention trashed.
    No
    pageSizenumberNo
    pageTokenstringNo

    Returns DriveFilePage

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }
    
    interface DriveFilePage { files: DriveFile[]; nextPageToken: string | null; hasMore: boolean }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/listFiles

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.listFiles({});
Act 10
  • addCommentAdds a plain-text, file-level comment to a Drive file (not anchored, notifies nobody by name).

    Arguments

    NameTypeRequired
    args{ fileId: string; content: string }Yes

    Returns DriveComment

    interface DriveComment { id: string; content: string; author: string | null; createdTime: string | null; resolved: boolean }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/addComment

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.addComment({});
  • createDocumentCreates an empty Google Doc in the caller's Drive.

    Arguments

    NameTypeRequired
    namestringYes
    parentIdstringNo

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/createDocument

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.createDocument({ name: "<name>" });
  • createFolderCreates a folder in the caller's Drive (My Drive root, or inside parentId).

    Arguments

    NameTypeRequired
    namestringYes
    parentIdstringNo

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/createFolder

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.createFolder({ name: "<name>" });
  • createPresentationCreates an empty Google Slides presentation in the caller's Drive.

    Arguments

    NameTypeRequired
    namestringYes
    parentIdstringNo

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/createPresentation

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.createPresentation({ name: "<name>" });
  • createSpreadsheetCreates an empty Google Sheet in the caller's Drive.

    Arguments

    NameTypeRequired
    namestringYes
    parentIdstringNo

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/createSpreadsheet

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.createSpreadsheet({ name: "<name>" });
  • moveFileMoves a Drive file from one explicit parent folder to another and returns its new parents.

    Arguments

    NameTypeRequired
    args{ fileId: string; fromParentId: string; toParentId: string }Yes

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/moveFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.moveFile({});
  • renameFileRenames a Drive file or folder and returns it as Drive now reports it.

    Arguments

    NameTypeRequired
    args{ fileId: string; name: string }Yes

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/renameFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.renameFile({});
  • restoreFileRestores a Drive file or folder from trash.

    Arguments

    NameTypeRequired
    args{ fileId: string }Yes

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/restoreFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.restoreFile({});
  • setStarredStars or unstars a Drive file.

    Arguments

    NameTypeRequired
    args{ fileId: string; starred: boolean }Yes

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/setStarred

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.setStarred({});
  • trashFileMoves a Drive file or folder to trash (recoverable with restoreFile).

    Arguments

    NameTypeRequired
    args{ fileId: string }Yes

    Returns DriveFile

    interface DriveFile {
      id: string; name: string; mimeType: string; parents: string[]; starred: boolean; trashed: boolean;
      createdTime: string | null; modifiedTime: string | null; size: number | null; webViewLink: string | null;
      owners: { displayName: string | null; emailAddress: string | null }[];
      capabilities: Record<string, boolean>; // canEdit, canRename, canTrash, canUntrash, canComment, ...
    }

    HTTP endpoint

    POST https://api.bowmark.ai/v1/sites/drive_google/trashFile

    Call it

    import { bowmark } from "@bowmark/web";
    
    const result = await bowmark.providers.drive_google.trashFile({});

Use it from code