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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

barie_gmail_mcp-0.1.2.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barie_gmail_mcp-0.1.2-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file barie_gmail_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: barie_gmail_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for barie_gmail_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 80b3dd4053326b694660bced97a3b9b2da63d21fa147cc6e8ae87cd2a1498c3f
MD5 ebbc706f37bd7f76a547797a5819cced
BLAKE2b-256 f6d26507c51977af3b8787677305dc9a0f0be98197cd212ec491b76c5a1d8571

See more details on using hashes here.

File details

Details for the file barie_gmail_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for barie_gmail_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0ea47fc2c63098fde98bdb8c400df90bb9cea0520dbff4968dfaace09e6cafd
MD5 ac9395832996c92181cc217b63d9fa66
BLAKE2b-256 b95c8b37238a8450c74daba05346590365250939a7066b1fcd630ed3dc608653

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

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