Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Collect Gmail Invoices Into Structured Records

Overview

Connect an AI client to Gmail and Google Sheets through the open-source Workspace MCP server, have it find invoice emails, save their attachments and log each invoice as a row after you check the list.

Problem or Objective

More in Finance and Admin

AI Agents and Models

Tools and Integrations

Tools
Workspace MCP · Gmail · Google Sheets
Prerequisites
A Google Cloud project with an OAuth client and the Gmail and Sheets APIs enabled, plus an AI client that supports MCP servers.

How It Works

Set up the Workspace MCP server with your own Google Cloud OAuth client and connect it to an AI client that supports MCP. In a chat, ask the assistant to search Gmail for invoice emails in a date range or under one label, download the attachments to the server's attachment folder and read the supplier, invoice number, date, total and currency from each. Have it show you the list first, flagging duplicates and anything it could not read. After you approve, it appends one row per invoice to a Google Sheet with a link back to the email. Repeat each month with the next date range. Another Gmail connector with attachment access would also work.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up Google Workspace MCP.
  2. Connect the toolsConnect the tools this workflow relies on: Workspace MCP, Gmail, Google Sheets.
  3. Check the prerequisitesA Google Cloud project with an OAuth client and the Gmail and Sheets APIs enabled, plus an AI client that supports MCP servers.
  4. Gather your detailsCollect what the prompt asks for: First day to include, Last day to include, Gmail label to search, Google Sheet to append to.
  5. Run the starter promptPaste the starter prompt below into Google Workspace MCP and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at github.com before you rely on it.

Practical Starter Prompt: Log this month's invoices to a sheet

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
Search my Gmail for invoices received between [First day to include] and [Last day to include] under the label [Gmail label to search]. For each one, save the attachment and read the supplier, invoice number, invoice date, total and currency. Show me the list first, with anything unreadable or duplicated flagged. Only after I confirm, append one row per invoice to the sheet [Google Sheet to append to] with a link to the email. Do not delete, archive, reply to or forward any message.

Check each total against the invoice before you confirm the rows. The assistant only writes to the sheet after your approval.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. The Workspace MCP README describes one MCP server that gives AI assistants tools for Gmail, Sheets and other Google Workspace services, with a read-only mode and your own OAuth credentials, and its deployment docs mention downloading Gmail attachments to a local folder. Neither page covers reading invoice fields, so check the extracted totals yourself.

Limitations and Considerations

Invoices carry bank and tax details. By default the server sends data only to Google's APIs with OAuth credentials you control, but the AI client still sees what it reads, so limit the search to one label. Try a first run in read-only mode, then allow writes only to the one sheet. A deployment can cap download size, which may block large attachments. This is a community project, not a Google product. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Sources

  1. taylorwilsdon/google_workspace_mcp README (opens in a new tab)

    Project documentation · github.com · Undated · Source checked 25 Nov 2026, 12:00 UTC

    What this source supports
    • Workspace MCP connects AI assistants to Google Workspace services, including Gmail and Sheets, with 120+ tools behind one MCP server and a read-only mode.
    • By default the server sends no data anywhere except Google's APIs, on behalf of the authenticated user, using your own OAuth client credentials.
  2. Advanced Deployment: Reverse Proxy, Origin Validation, Credential Stores & Environment Variables (opens in a new tab)

    Project documentation · workspacemcp.com · Undated · Source checked 25 Nov 2026, 12:00 UTC

    What this source supports
    • Deployment settings cover downloads of Gmail and Chat attachments, an optional cap on download size and the directory for downloaded attachments.
Report a problem

More with Google Workspace MCP

Planned, not done

Convert Gmail Action Items Into a Prioritized Task List

Connect an MCP-capable AI assistant to Gmail, Google Calendar and Google Tasks through the open-source Workspace MCP server, pull to-dos and due dates out of recent mail and invitations, and add them to a task list after you approve.

github.com
Reported by source

Give Claude your Google Calendar and Gmail through a self-run MCP server

The open-source Google Workspace MCP server exposes Calendar, Gmail and other Workspace tools to Claude Desktop, Claude Code and other MCP clients, using your own OAuth client and optional read-only mode.

github.com

View all: Google Workspace MCP