Skip to main content

Barie Gmail MCP

A Model Context Protocol (MCP) server for interacting with Gmail accounts.

Installation

Install with uvx:

uvx --from . barie-gmail-mcp --help

Or install with pip:

pip install -e .

Usage

Run the MCP server:

barie-gmail-mcp \
  --access-token "<access_token>" \
  --refresh-token "<refresh_token>" \
  --client-id "<google_client_id>" \
  --client-secret "<google_client_secret>" \
  --expiry "<optional_iso_expiry>" \
  --attachments-dir "./attachments"

Required arguments

  • --access-token: OAuth2 access token
  • --refresh-token: OAuth2 refresh token
  • --client-id: Google OAuth client ID
  • --client-secret: Google OAuth client secret

Optional arguments

  • --expiry: Access token expiry in ISO format
  • --attachments-dir: Local path for saving attachments
  • --scopes: Optional custom scopes list

Features

  • Draft, read, and send emails
  • Read unread messages and search mail
  • Label and folder management
  • Email filter management
  • Archive/restore and trash operations

Development

From the barie_gmail_mcp directory:

python server.py --help

Metadata

Release files for barie-gmail-mcp 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for barie-gmail-mcp 0.1.4
File Size Uploaded Provenance
barie_gmail_mcp-0.1.4.tar.gz 19.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for barie-gmail-mcp 0.1.4
File Interpreter ABI Platform
barie_gmail_mcp-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 38.5 kB

Release files / barie_gmail_mcp-0.1.4.tar.gz

Download URL barie_gmail_mcp-0.1.4.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dc488f752c17258856af24d889a1c3d25b4455f7f4f620d7e79d8b2e574ed9f1
BLAKE2b-256 checksum
How to use checksums
707639d97b9dfa6b562a18a2ddf4ca6cc4774ff46231ccbbff23a434add5c87a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Release files / barie_gmail_mcp-0.1.4-py3-none-any.whl

Download URL barie_gmail_mcp-0.1.4-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30c8a8894642adadd4de86f78a87c47ebe487ca6d4670485d0cbe23f3e8242f4
BLAKE2b-256 checksum
How to use checksums
579cc371796123abb0fdb1040c16cd47825c7ac72b22bf9a251a4c6ff4011a59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.0

Security for barie-gmail-mcp 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page