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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@supercorp/gmail-mcp

v1.7.0

Published

`@supercorp/gmail-mcp` is a Gmail MCP server.

Readme

@supercorp/gmail-mcp is a Gmail MCP server.

Installation & Usage

Run via npx using only the required flags:

npx @supercorp/gmail-mcp \
  --googleClientId <string> \
  --googleClientSecret <string> \
  --googleRedirectUri <string>

All other options can be adjusted in the table below.

CLI Arguments

| Flag | Type | Default | Description | |---------------------------|--------------------------|--------------------|-----------------------------------------------------------------------------------------------------------------------| | --googleClientId | string (required) | N/A | Your Google OAuth client ID. | | --googleClientSecret | string (required) | N/A | Your Google OAuth client secret. | | --googleRedirectUri | string (required) | N/A | OAuth 2.0 redirect URI registered in Google Cloud Console. | | --port | number | 8000 | TCP port for HTTP/SSE mode. | | --transport | sse or stdio | sse | MCP transport:sse: HTTP server + Server-Sent Eventsstdio: JSON-RPC over stdin/stdout | | --storage | see below | memory-single | Persistence backend for OAuth tokens:memory-single: in-memory single-user (no header key)memory: multi-user in-memoryupstash-redis-rest: durable via Upstash Redis REST API | | --storageHeaderKey | string (conditional) | none | HTTP header name (or Redis key prefix) to identify users when using memory or upstash-redis-rest. | | --upstashRedisRestUrl | string (conditional) | none | Upstash Redis REST URL (required if --storage=upstash-redis-rest). | | --upstashRedisRestToken | string (conditional) | none | Upstash Redis REST token (required if --storage=upstash-redis-rest). | | --sendOnly | boolean | false | If set, only the gmail.send tool is exposed (no read/draft capabilities). | | --googleState | string (optional) | none | Optional OAuth state parameter forwarded to Google. |

Storage Backends

  • memory-single: in-memory single-user (quick demos; data lost on restart)
  • memory: in-memory multi-user (requires --storageHeaderKey)
  • upstash-redis-rest: persistent via Upstash Redis REST (requires --storageHeaderKey, --upstashRedisRestUrl, --upstashRedisRestToken)

Transports

  • stdio JSON-RPC over stdin/stdout.
  • sse HTTP server + Server-Sent Events:
    • Subscribe: GET http://localhost:<port>/
    • Send: POST http://localhost:<port>/message?sessionId=<session-id>

Exposed MCP Methods

| Tool | Description | |----------------------|---------------------------------------------------------------------------------------------------------------------| | auth_url | Returns a Gmail OAuth consent URL. | | exchange_auth_code | Exchanges the OAuth code for a refresh token and stores it. | | list_emails | Lists Gmail messages (maxResults, labelIds, query, pageToken, unreadOnly). | | read_email | Retrieves a full message by ID, converts HTML bodies into Markdown. | | list_drafts | Lists Gmail drafts (maxResults, query). | | read_draft | Reads a single draft by ID (in full). | | draft_email | Creates a new draft (sender, to, cc?, bcc?, subject, body, isHtml?). | | update_draft | Updates an existing draft by ID. | | delete_draft | Deletes a draft by ID. | | send_email | Sends an email (new or via an existing draft if draftId is provided). In send-only mode, this is the only tool. |