Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mailwarden

MCP server by csitte Community

Gmail MCP server for AI assistants that triages a mailbox. It searches, labels, archives, trashes, unsubscribes and snoozes threads, for users who want an assistant to manage Gmail without a send path.

  • Score 79
  • 0 stars
  • 471 a week
  • MIT
  • Updated

Install mailwarden

Built from the published package, never by AI.

claude mcp add mailwarden -- npx -y mailwarden

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install mailwarden in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mailwarden block.

About

mailwarden is a Gmail MCP server for AI assistants that handles mailbox triage. It calls the live Gmail API directly and offers search, labels, archive, trash, unsubscribe and snooze. Its snooze archives a thread now and returns it to the inbox on a set date, using dated labels and a sweep, so the state is visible in Gmail itself. Search re-checks results against live labels, because Gmail's thread index can report stale read state.

The server has no send tools by default, and an egress checkpoint refuses sending and permanent deletion. An optional drafts tier saves drafts for the user to send. Unsubscribe is the one exception: it contacts the opt-out address named in a message header. It suits people who want an AI assistant to triage a Gmail inbox without a path to send mail.

Written from the project's README and checked against it.

Tools it gives your assistant

  • searchSearches Gmail threads and re-verifies each hit against its live labels, with pagination.
  • get_threadReturns a thread and reports the SPF, DKIM and DMARC results recorded by Gmail.
  • bulk_modifyArchives or labels all messages matching a query, 1000 per API request, with partial-success reporting.
  • unsubscribeSends an RFC 8058 one-click opt-out to the sender named in a message header.
  • bulk_unsubscribeRuns unsubscribe across several senders in one call.

What you need

  • A Gmail account
  • Google OAuth authorization for the Gmail API
SettingNeededWhat it is
MAILWARDEN_DIREnvironment variableOptionalConfig directory (default ~/.mailwarden), holds credentials.json and token.json
MAILWARDEN_CREDENTIALSEnvironment variableOptionalPath to the Google OAuth credentials.json (Desktop app client)
MAILWARDEN_AUTO_SWEEPEnvironment variableOptionalSet to 1 to sweep due snoozes at startup and hourly while running
MAILWARDEN_DOWNLOAD_DIREnvironment variableOptionalRestrict download_attachment and export_thread writes to this directory (recommended for HTTP hosting)

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Search my unread mail from the last week and show only real unread threads.
  • Check whether this email from my bank passed SPF, DKIM and DMARC.
  • Archive my newsletters from this month and apply a Newsletters label.

Good to know

  • No send tools by default. The drafts tier saves drafts only and does not send them.
  • Unsubscribe and bulk_unsubscribe are the only requests to a non-Google host.
  • A read-tier deployment makes no outbound requests at all.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to mailwarden

All alternatives →
LearnHouse learnhouse
95

LearnHouse is an open source learning platform for building courses, learning paths and communities in your own academy. Its MCP server lets AI assistants read and build courses in your organization.

ACA Remote 2.5k
Agent-Native CalendarBuilderIO
94

Agent-Native Calendar is the Calendar agent in Agent-Native, an open-source TypeScript framework for building agents with UIs. The README describes it as a way to find time, schedule events, and manage bookings. It is aimed at developers building agent apps.

AAA Remote 7.8k
Agent-Native ClipsBuilderIO
94

Agent-Native Clips is the Clips agent from the Agent-Native framework, an open-source TypeScript project. It records and helps people understand meetings, screens, and voice notes.

AAA Remote 7.8k
Agent-Native SlidesBuilderIO
94

Agent-Native Slides is the Slides agent in the Agent-Native open-source framework, described as a way to create and edit on-brand presentations. It is aimed at developers who build agents with a purpose-built UI.

AAA Remote 7.8k
AIHawkfeder-cr
94

AIHawk is an AI job application bot. It finds recent job postings that match your resume, then fills in and sends applications on the company's own forms after you pick the jobs.

AAA Local 33k
Microsoft 365 MCP ServerSofteria
94

Connects AI assistants to Microsoft 365 and Office services through the Microsoft Graph API. It suits users and administrators who want an assistant to work with Outlook, calendar, OneDrive, Teams and SharePoint data.

AAA Local 87k/wk

Compare with LearnHouse, Agent-Native Calendar or Agent-Native Clips

mailwarden: common questions

Can mailwarden send email?

No send tools are offered, and every Gmail request passes an egress checkpoint that refuses messages.send and drafts.send. An opt-in drafts tier saves drafts for you to send yourself.

What is mailbox-side snooze in mailwarden?

It archives a thread now and returns it to the inbox on a chosen date, using dated labels and a sweep. The snoozed state is visible in Gmail itself.

Does mailwarden contact servers other than Google?

Only unsubscribe and bulk_unsubscribe contact a non-Google host, the opt-out endpoint named in a message's own header. A read-tier deployment makes no outbound request.

How do I install mailwarden?

In Claude Code run claude mcp add mailwarden -- npx -y mailwarden. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is mailwarden the official server?

mailwarden is a community project by csitte, not verified by a company domain.

Is mailwarden free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mailwarden safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mailwarden?

Similar MCP servers: LearnHouse, Agent-Native Calendar, Agent-Native Clips, Agent-Native Slides.

Does mailwarden work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

mailwarden Install

Add to stack

Loading.