Gmail Postmaster Tools logo

Gmail Postmaster Tools

Query Gmail domains, compliance status, and traffic metrics through a local OAuth-based MCP server.

Install Gmail Postmaster Tools

Run the project’s own setup commands, in order.

Setup steps from the project

Gmail Postmaster Tools installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install
    

Overview

The Gmail Postmaster Tools MCP server connects MCP clients to the Gmail Postmaster Tools API v2 using your Google OAuth client. It supports domain listing, sender compliance checks, traffic metric queries, and local sign-in through a browser. Use it when you need to inspect Gmail sending performance from a local client without hosting a remote service. The server uses standard stdio, so it can run in clients that support local MCP processes.

Use cases

  • List registered Gmail Postmaster domains
  • Check a domain's sender compliance status
  • Measure spam rate over a date range
  • Inspect SPF, DKIM, or DMARC authentication success
  • Review TLS encryption and delivery error metrics

Key features

  • Google OAuth 2.0 with PKCE
  • Domain listing and verification lookup
  • Sender compliance checks
  • Date-range traffic metric queries
  • Local token storage
  • Standard stdio MCP transport

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9/14/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars7Stargazers on the source repository.
Last commit4mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Gmail Postmaster Tools works

What Gmail Postmaster Tools MCP server does

The Gmail Postmaster Tools MCP server exposes selected Gmail Postmaster Tools API v2 operations through MCP. It is intended for senders who want to inspect domains, compliance signals, and Gmail traffic data from an AI client.

Available operations include listing registered domains and retrieving an individual domain's verification state. Compliance checks cover SPF, DKIM, DMARC, authentication alignment, message formatting, DNS records, TLS encryption, user-reported spam rate, and unsubscribe-related verdicts.

Traffic queries can return spam rate, SPF/DKIM/DMARC authentication success, TLS encryption rate, delivery errors, and feedback-loop metrics for a chosen date range. Domain and IP reputation are not included in the API v2 coverage described here.

How it works

The Gmail Postmaster Tools MCP server runs as a local Node.js process and communicates with an MCP client over stdio. The client starts server/index.js and supplies Google OAuth settings through environment variables. It does not provide a hosted endpoint; clients that require a remote HTTPS MCP URL cannot connect to this build directly.

Authentication uses Google's OAuth 2.0 authorization-code flow with PKCE. When authentication starts, the process opens a browser and listens temporarily on a dynamically assigned 127.0.0.1 port for the redirect. Access and refresh tokens are stored locally in ~/.gmail-postmaster-mcp/tokens.json with restrictive file permissions.

The default scopes allow traffic and compliance reads plus domain listing and retrieval. GPT_SCOPE can narrow those permissions. Accounts using an OAuth app left in Google's Testing state may need to authenticate again about every seven days because Google can revoke their refresh tokens.

Setup and configuration

Before running the Gmail Postmaster Tools MCP server, create or select a Google Cloud project, enable the Gmail Postmaster Tools API, configure the OAuth consent screen, and create a Desktop app OAuth client. External projects require the signing-in account to be added as a test user while the app remains in Testing. The Google account must also have access in Gmail Postmaster Tools.

Set GPT_CLIENT_ID and GPT_CLIENT_SECRET in the MCP client's environment. Then configure the client to run Node.js with the absolute path to server/index.js. Claude Desktop users can instead install the released .mcpb package and enter the credentials during installation. Run gpt_authenticate once to complete browser sign-in.

Optional settings include GPT_API_BASE for the API base URL, GPT_TOKEN_DIR for the token cache location, GPT_LOGIN_TIMEOUT_MS for the sign-in wait period, and GPT_REQUEST_TIMEOUT_MS for individual requests. Node.js 18 or newer is required.

Tools and capabilities

  • gpt_authenticate starts Google sign-in.
  • gpt_auth_status reports authentication state.
  • gpt_sign_out removes the local sign-in state.
  • list_domains returns available Postmaster domains.
  • get_domain retrieves a domain and its verification state.
  • get_compliance_status checks sender compliance signals.
  • query_domain_stats queries selected metrics over a date range.

Some metric requests require filters. Authentication success accepts an SPF, DKIM, or DMARC filter; TLS encryption accepts inbound or outbound traffic direction; delivery errors can accept an error-type filter. Spam rate does not require a filter.

The project is licensed under MIT and uses Node.js built-in modules at runtime, so the documented setup does not require installing runtime dependencies.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gmail Postmaster Tools

Gmail Postmaster Tools is an MCP server that connects Claude, Cursor, or another MCP client to Google's Gmail Postmaster Tools API v2 using your own OAuth credentials. Its main tools authenticate accounts, list and inspect domains, check compliance, and query traffic metrics.

Install it by configuring a local MCP client to run Node.js with the repository's `server/index.js`, then provide `GPT_CLIENT_ID` and `GPT_CLIENT_SECRET`. Claude Desktop users can install the released `.mcpb` package and enter those credentials during setup.

Run `gpt_authenticate` after configuring the Google OAuth credentials. The server opens a browser, completes the OAuth flow through a local loopback redirect, and stores tokens on the machine. The Google account must have access to Gmail Postmaster Tools.

Yes, Gmail Postmaster Tools works with Cursor through its standard stdio MCP configuration. Add the server command and `server/index.js` path to `~/.cursor/mcp.json` or a project-level `.cursor/mcp.json`, then provide the two OAuth environment variables.

Re-authentication may be required because Google revokes refresh tokens after about seven days for OAuth apps in Testing status. Run `gpt_authenticate` again when tool calls request it. Publishing the OAuth app to Production prevents that seven-day expiration, although other Google consent requirements may remain.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGmail Postmaster Tools AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gmail-postmaster-tools?style=directory)](https://allmcps.com/mcp/gmail-postmaster-tools)
HTML Embed
<a href="https://allmcps.com/mcp/gmail-postmaster-tools"><img src="https://allmcps.com/api/badge/gmail-postmaster-tools?style=directory" alt="Gmail Postmaster Tools on AllMCPs" /></a>