An unofficial, read-only Hacker News reader.

Google Will Make AI Agents Use Its MCP Servers. The Gmail One Can't Send Email (opens external site)

422 points by ritzaco 3 days ago | techstackups.com | 336 comments on HN

View full thread · View on Hacker News

Comment thread (96)

  1. The sad part is that this won’t even work. People will just have the agent operate a browser to send email and it’ll be unnecessarily messy and wasteful.
    Replies (7)
    1. Respectfully disagree, in part.

      Folks who care about security will push Gmail to have an MCP task to send email.

      People who don't care about security will either use the API or the browser, as you mention. But the first time an agent is prompt injected and substantially harms someone (esp someone famous or notable), it will be front page news.

      Replies (2)
      1. This is something I'm increasingly curious about - we're a fair way in to mass corporate adoption of agents and AI (at least in tech) and yet the number of serious real-world security incidents traced to traced to prompt injection and adjacent problems, poor MCP security etc seems to be effectively zero.

        The theoretical risk seems huge, and the 'payoff' the same impacts that drive aggressive and sophisticated ransomware etc campaigns so why is not clear. Maybe people are just keeping quiet but the tenor the security industry doesn't seem to be mapping to the real world in this case and why isn't clear.

        Replies (3)
        1. > the number of serious real-world security incidents traced to traced to prompt injection and adjacent problems, poor MCP security etc seems to be effectively zero.

          From what I gather through a dumb RTO implementation that has me sitting in an area surrounded by our orgs security people who seem to do all their work in loud phone calls and Teams meetings, there’s a lot attributed to unexpected actions by AI agents and poor forensics around attributing those reliably to a more specific root cause.

          Replies (1)
          1. AI agents are amazing: they're an accountability sink!

            Because they're nondeterministic and difficult to diagnose, and genuinely do cause enough of a problem rate for everyone to notice, everything can be blamed on them. But since they're not a human in the organization hierarchy, this doesn't threaten the organization. Additionally, AI has the backing of management, so the agent won't be removed no matter how many problems it causes. Everyone can happily keep going round in circles.

        2. > Maybe people are just keeping quiet but the tenor the security industry doesn't seem to be mapping to the real world in this case and why isn't clear.

          This is often the case for security-related things. People don't think about taking pictures of their keys or their boarding pass until there are news articles about it.

        3. This seems naive.

          There have been several companies who admitted that they stopped using website chatbots, for example, because users were extremely creative with using it to hallucinate discounts, to leak internal documents, and generally to use it for free LLM output unrelated to the website. All of these would be considered "prompt injection".

          You seem to care about some extremely high severity prompt injection. The Binance hackers used Binance's internal AI tool to describe the topology of the network and create a blueprint of sorts to identify how to extract the funds. It may not qualify as "prompt injection" in your mind, but a layer designed to resist malicious use (eg. Prompt injection) should probably have rejected those prompts.

      2. People who care about security won't connect an agent to their email in the first place
        Replies (1)
        1. Yes, but they may give their agent its own account. Now it still can’t send email.
    2. If you can do it with a browser then your agent can do it with curl. I am sure that there will quickly be community-provided alternatives.
      Replies (2)
      1. There isn't really any technical way to prevent it. It's just against the terms of service.
        Replies (2)
        1. Which means they can block your account and then good luck getting it back.
        2. Attestation (wei) which will get forced in sooner or later. Already there in new recaptcha actually.
          Replies (1)
          1. Attestation doesn't prevent these kinds of bots, the LLMs are pretty happy to click where you want on a genuine browser on a genuine OS.
            Replies (1)
            1. Good point. It will be interesting considering the extent to which Google controls the browser (and in many cases the OS).

              Continue this thread (1 replies) →

      2. How is that when javascript is required in some cases? I know deno is popular for this type of workaround, but that is for youtube.
        Replies (1)
        1. In the end your browser is just making a HTTP request. Figure out the shape of the HTTP requests the Gmail UI sends, then write a script to do it in a non-browser environment.
          Replies (1)
          1. yes as trivial as replicate arbitrary complexity obfuscated code in a script
            Replies (3)
            1. Or just look at the HTTP calls it makes?
            2. If your agent is using cdp it has full access to the calls in your session.
            3. There are much simpler ways -- look at the sibling comments.

              Putting those aside: I am sure you could save the Gmail HTML/JS locally, give it to an agent, and have a Gmail client in a day

              Even putting LLMs aside, people have been doing this kind of thing for a long time. Reverse engineering is not new.

              Continue this thread (1 replies) →

    3. Uh why would that be necessary? Can't you just use... SMTP?
      Replies (2)
      1. That's so 1981, we are in 2026 now when we use GPUs to generate code that will prompt a swarm of agents to ~~run Chrome and Pupeeter~~ actually write an entire new browser stack, and MCP for it somehow, then ask them to write specially customized spam and bypass Turing tests and... send emails. /s
      2. (Edit: SMTP or REST) for Gmail / Google Workspace. SMTP or boto3 for AWS SES. I believe Fastmail offers JMAP/IMAP/SMTP.

        So yes, your agent doesn’t need an MCP to send emails when it can just use an existing protocol.

        Replies (2)
        1. IMAP doesn’t send emails. SMTP does.
        2. Not all agents have shell/network access directly
          Replies (1)
          1. So give it a MCP that does SMTP?

            Why would a thing using standard protocols need a bespoke MCP? Either give it a MCP for the protocol or network access?

    4. Gmail has SMTP. You can send emails with a python script…
      Replies (6)
      1. They'll probably add rate control, though.
        Replies (1)
        1. Right, at which point this is normal anti-abuse not unlike the automation limits that already existed.
          Replies (1)
          1. I believe it'll be reputation and behavior based. Considering the size and expertise of GMail about this, no other option makes sense.
      2. Just in case: I once enabled SMTP access to my account because I had to contact a bunch of volunteers for an event and wanted to send personalized emails instead of "Dear volunteer". GMail flagged me as a spammer, banned my account, and it took four months and the GDPR to get it back.

        So if you want to use SMTP but haven't done so until now I suggest you start enabling it to "warm up" their spam detector.

        Replies (5)
        1. Suddenly enabling SMTP then sending a bunch of mail (that in all likelihood nobody wanted) on a consumer gmail account is a strong signal that your account was taken over by spammers. Google offers this feature to paid, non-gmail accounts, which have completely different abuse rules: https://support.google.com/mail/answer/12921167?hl=en

          Even with a consumer account, SMTP is not a good way to do this. Script a mail merge as described in: https://developers.google.com/apps-script/samples/automation...

          Replies (3)
          1. SMTp is a fine way to do this. Why force me to put all my data in their spreadsheet system and use their scripting instead of keeping my data where it is and use the tools I already have?
            Replies (2)
            1. You're fundamentally misunderstanding what the gmail product is.

              Continue this thread (2 replies) →

            2. If you’re in the Gmail ecosystem you’ve already forfeited your data. I could ask why you would bother writing code when the mail service provides a way to do what you want without firing up a python console.

              Continue this thread (1 replies) →

          2. If this feature results in an account ban, why is it there in UI? It makes no sense.
            Replies (2)
            1. It's there for sophisticated users who understand what they're doing. That's why companies impose these kind of restrictions on AI agents, which will often do sophisticated things they shouldn't in service of prompts from a user who doesn't understand what they're doing.
            2. Account ban for first time offence doesn't make sense. Suspension with a review ticket is the way, but unfortunately a single user is nothing for FAANG companies.

              Continue this thread (1 replies) →

          3. SMTP is the perfect standardised way to do this if you want to do it professionally.

            GMail might just not be a good mail provider. Europe is backwards on many things digital, but for mail the picked the correct way.

        2. > it took four months and the GDPR to get it back.

          How does that work? GDPR is a law about data privacy, not a legal right to be served by a private company. What part of GDPR allowed you to get it back?

          Replies (4)
          1. I filed a CCPA request with Uber to delete my data so I could sign up with a fresh rating. Maybe similar?
            Replies (1)
            1. No
          2. https://gdpr.eu/article-22-automated-individual-decision-mak...

            > The data subject shall have the right not to be subject to a decision based solely on automated processing, including profiling, which produces legal effects concerning him or her or similarly significantly affects him or her.

            If an automated system flags an account, EU residents have a right to have a human take a look.

            Replies (2)
            1. Wish the rest of us could have that too

              Continue this thread (1 replies) →

            2. > If an automated system flags an account, EU residents have a right to have a human take a look.

              Having an LLM suddenly send a high volume of emails through Gmail does fit the definition of spam. I don't think reviews will help much.

              Continue this thread (3 replies) →

          3. I also once used the GDPR to get an account (not Google) back after being enough of a pain in the ass: The provider refused to tell me the reason for the ban, and also admitted at some point that "some data" is retained to prevent me from signing up again. I really pushed for the GDPR here, citing that they have to tell me which data that is. They were basically claiming their abuse prevention logic is subject to trade secrets and needs to be kept a secret, and that data cannot be disclosed else I would use it to circumvent their protection and signup again. After threating to file a GDPR violation with their local officer, they caved and re-instated the account.
          4. I wrote a blog post of my experience. In short: I demanded a copy of all the personal data that they have on me (including emails) and they ended up restoring my access because (my guess) it was easier to do that than verifying my identity and sending me a personalized file.

            The blog post: https://7c0h.com/blog/new/lost_gmail_ii.html

            Replies (1)
            1. We don't thank EU commissioners and their wonderful red tape near enough.
        3. GMail workred fine with IMAP/SMTP when I tried it multiple times over the years.
          Replies (1)
          1. Hence the comment you replied to recommending a “warm up” period if this is new behaviour on your account. The implication being it works if you start slow, or if you were doing it at some point before the new checks were implemented so it is not unusual behaviour for your account.

            A lot of anti-spam heuristics at the sending end are based on changes in behaviour that may occur when an account is hacked or otherwise repurposed.

        4. The prospect of users trusting all their data to Google and risking to lose everything when Google unilaterally decide to close their account is chilling.

          I've switched to other providers for everything (I no longer have a Google or Apple or Meta accounts, and I back everything up locally) and I sleep much better that way.

          BTW, isn't that 4 months delay longer than the maximum allowed by GDPR? IIRC a recipient of a GDPR data access request has a maximum delay of 1 month to acknowledge it and request an extension, and has maximum 3 months to comply

          Replies (2)
          1. I'd love to hear more. You gave up both Apple and Google? How do you use a smartphone? How do you do banking? How do you find out whether the stores are open in a new city you visit?
          2. They didn't state when they pulled the GDPR argument. Arguably, they should have been compliant without being reminded but that's just not the way the world works, unfortunately.
        5. It’s wild to hear how different people use the same thing. Like I’ve basically only ever sent emails through SMTP from my Gmail.
          Replies (1)
          1. I guess the rate at which the emails were sent was the factor that marked them as a spammer. I wouldn't be surprised if sending automated emails through the web interface would trigger it too.
      3. Gmail's SMTP is bad. You need to create an app token that also allows IMAP access to your inbox. There's no way to create a "send only" account.

        I wanted to use SMTP for automated notifications from my home monitoring system, and it was _easier_ to build a freaking Telegram bot rather than just setting up SMTP.

        Replies (2)
        1. SMTP OAuth doesn't work for you? Yes it's more work than a sinple password but it would be similar to a Telegram bot.
          Replies (1)
          1. As far as I'm aware, it's impossible. I obviously can't use an interactive browser login for an automated system.

            I can create a custom OAuth application but then it needs to pass Google's review. I don't believe that I can add trust for a custom one-off app in a regular Google account.

        2. Telegram bots are specifically invented for this use case.
      4. Yea, and if you use python script too much they will simply ban you.
      5. You really can't.

        It requres some sophisticated OAuth these days.

        Replies (3)
        1. No it just requires an app password
          Replies (1)
          1. Good luck getting any company IT department to allow that
            Replies (2)
            1. That's Google's fault? The IT department is the customer.
            2. Maybe the company you work for has reasons. Talk to your IT manager?
        2. SMTP does support Oauth and token based authentication.
        3. I have been using mutt with my work gmail for years, smtp/imap still works fine, but true they made it harder over years, but you can find instructions easily if you google for it.
      6. You can also just get a sendgrid or similar account and send email from there. There are multiple ways. And if you are going to use SMTP, you might as well use IMAP and work with a local database with all your emails instead of making your AI bottleneck everything over API calls. Besides, gmail's search isn't exactly great (considering Google is providing that).

        Most inboxes are small enough that you can index them properly locally with some vector database and treat them as a little rag knowledge base. Downloading your email locally is of course nothing new, it's what email clients have been doing for decades.

    5. I made an agent with Gmail connectors (so your agent can draft emails for you not even send) and had to go through a lengthy API OAuth Dev Verification process with Google. Completed it, and now they want me to complete an ADA-CASA AL1 (formerly Tier 2) security assessment for my application. It's a paid service through one of their partner labs.

      Makes me wonder whether they don't want me doing this at all, which sucks because I built the app for Google Cloud and Gemini. Sigh.

      Replies (2)
      1. If you made it just for yourself there's no such verification right? It's because you intend to offer it to other people?
        Replies (1)
        1. First for my self then I made it for other people, hence the additional verification.
      2. > I built the app for Google Cloud and Gemini

        Ouch. You went wrong early. My experiences with Google Cloud have been so horrible I wouldn't use it even at a huge discount.

        Replies (1)
        1. My experience with the platform itself (provisioning, deploying, monitoring) was good, outside of some billing anomalies (their billing portal needs work).
    6. I don't understand how Gemini in Google Sheets can be so bad. I routinely fail trying to get it to generate charts or analyze the data in the cells immediately adjacent to it.

      I would work inside Sheets so much more if they fixed this. Instead I mostly use Sheets through Claude Code via the Sheets API.

      Replies (1)
      1. Gemini is just a very bad model, as far as I can tell. For the amount of talent at Google working on this, both the model and its agentic features do not match the resources allocated to it.

        It's not quite as bad a misallocation of capital as Zuckerberg doing VR, but it's pretty damn close.

        What a waste.

        Replies (2)
        1. Gemini isn't a model.
          Replies (1)
          1. >> Gemini is just a very bad model

            > Gemini isn't a model.

            Gemini is a model family and product brand, as far as I know.

            The latest is Gemini 4 Neon, released Nov 2026.

        2. It's not the model that's the problem it's perfectly capable of doing things well in sheets if you're using it through antigravity. The in-app ones for some reason just don't work as well as the general agents
          Replies (1)
          1. It seems likely that the particular model for Gemini used in Sheets, GMail, and even search, is something far worse than what's in antigravity.

            The hallucination i get from Search interactions reminds me of models more than a year old at this point.

    7. I use Himalaya for my agents to send mail