npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@node2flow/gmail-mcp

v1.0.5

Published

MCP server for Gmail — send, search, read, organize emails and manage labels through 28 tools

Readme

@node2flow/gmail-mcp

smithery badge npm version License: MIT

MCP server for Gmail — send, search, read, organize emails and manage labels through 28 tools via the Model Context Protocol.

Quick Start

Claude Desktop / Cursor

Add to your MCP config:

{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": ["-y", "@node2flow/gmail-mcp"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id",
        "GOOGLE_CLIENT_SECRET": "your-client-secret",
        "GOOGLE_REFRESH_TOKEN": "your-refresh-token"
      }
    }
  }
}

HTTP Mode

GOOGLE_CLIENT_ID=xxx GOOGLE_CLIENT_SECRET=xxx GOOGLE_REFRESH_TOKEN=xxx npx @node2flow/gmail-mcp --http

MCP endpoint: http://localhost:3000/mcp

Cloudflare Worker

Available at: https://gmail-mcp-community.node2flow.net/mcp

POST https://gmail-mcp-community.node2flow.net/mcp?GOOGLE_CLIENT_ID=xxx&GOOGLE_CLIENT_SECRET=xxx&GOOGLE_REFRESH_TOKEN=xxx

Tools (28)

Messages (10)

| Tool | Description | |------|-------------| | gmail_list_messages | List messages with Gmail search syntax | | gmail_get_message | Get message content (full/metadata/minimal/raw) | | gmail_send_message | Send email with to, cc, bcc, subject, body, HTML | | gmail_delete_message | Permanently delete a message | | gmail_trash_message | Move message to trash | | gmail_untrash_message | Remove message from trash | | gmail_modify_message | Add/remove labels on a message | | gmail_batch_delete | Delete multiple messages (up to 1000) | | gmail_batch_modify | Modify labels on multiple messages | | gmail_get_attachment | Get attachment data (base64) |

Drafts (6)

| Tool | Description | |------|-------------| | gmail_list_drafts | List all drafts | | gmail_get_draft | Get draft content | | gmail_create_draft | Create a new draft | | gmail_update_draft | Update an existing draft | | gmail_delete_draft | Delete a draft | | gmail_send_draft | Send an existing draft |

Labels (5)

| Tool | Description | |------|-------------| | gmail_list_labels | List all labels (system + user) | | gmail_get_label | Get label details with counts | | gmail_create_label | Create a new label with color | | gmail_update_label | Update label name/visibility/color | | gmail_delete_label | Delete a user-created label |

Threads (5)

| Tool | Description | |------|-------------| | gmail_list_threads | List threads with search query | | gmail_get_thread | Get all messages in a thread | | gmail_modify_thread | Add/remove labels on a thread | | gmail_trash_thread | Move thread to trash | | gmail_untrash_thread | Remove thread from trash |

Settings (2)

| Tool | Description | |------|-------------| | gmail_get_profile | Get email address, message/thread counts | | gmail_update_vacation | Enable/disable vacation auto-reply |


Search Query Syntax

The q parameter in gmail_list_messages and gmail_list_threads supports Gmail search operators:

from:[email protected]          — Messages from a sender
to:[email protected]            — Messages to a recipient
subject:"meeting notes"        — Subject contains text
has:attachment                  — Has attachments
filename:pdf                   — Attachment by type
is:unread / is:starred         — Message state
label:custom-label             — By label
after:2026/01/01               — After date
newer_than:2d / older_than:1y  — Relative date
in:inbox / in:sent / in:trash  — By location

Combine operators: from:[email protected] has:attachment is:unread after:2026/01/01


Configuration

| Parameter | Required | Description | |-----------|----------|-------------| | GOOGLE_CLIENT_ID | Yes | OAuth 2.0 Client ID from Google Cloud Console | | GOOGLE_CLIENT_SECRET | Yes | OAuth 2.0 Client Secret | | GOOGLE_REFRESH_TOKEN | Yes | Refresh token (obtained via OAuth consent flow) |

Getting Your Credentials

  1. Go to Google Cloud Console
  2. Create a project → Enable Gmail API
  3. Create OAuth 2.0 Client ID (Desktop app type)
  4. Use the OAuth Playground or your app to get a refresh token with the Gmail scope

OAuth Scopes

| Scope | Access | |-------|--------| | gmail.modify | Read, send, delete, and manage (recommended) | | gmail.readonly | Read-only access | | gmail.send | Send only | | gmail.compose | Create and send drafts | | gmail.labels | Manage labels only | | mail.google.com | Full access including permanent delete |


License

MIT License - see LICENSE

Copyright (c) 2026 Node2Flow

Links