Gsuite

Messaging and email

MCP Server to interact with Google Gsuite prodcuts.

Your AI app calls the Gsuite MCP server, which does the messaging and email work and sends the result back to the chat.

About Gsuite

Gsuite is a community MCP server from MarkusPfundstein, filed in our directory under messaging and email. MCP Server to interact with Google Gsuite prodcuts.

Gsuite runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

At a glance

Publisher
MarkusPfundstein (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
Python
License
MIT
GitHub stars
491

How to set up Gsuite

  1. Install Node.js on the machine that runs your AI app, because Gsuite starts with npx and downloads its package on first run.
  2. Check the Gsuite README for keys or settings; the registry lists none that Gsuite requires.
  3. Add Gsuite to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Gsuite tools to confirm the connection.
  5. Run one read-only task with Gsuite first, and keep your app asking before each tool call until the results look right.

Gsuite compared with similar servers

  • Thunderbird by TKasperczyk has fewer GitHub stars than Gsuite (485 against 491); both are community servers, and both run locally.
  • DB Lyon Ue by db-lyon has more GitHub stars than Gsuite (530 against 491); both are community servers, and both run locally.
  • Mcpmark by eval-sys has fewer GitHub stars than Gsuite (477 against 491); both are community servers, and both run locally.

Before you connect Gsuite

  • Give Gsuite its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Gsuite tool call until you trust what it does with them.
  • Treat text that Gsuite fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Gsuite on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Gsuite

How marketing and sales teams put Gsuite to work, by company size. Pick the size closest to yours and start Gsuite on one use case.

Small business

  • A small team can have Gsuite summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with Gsuite and send them only after a read, keeping the personal tone customers expect.
  • Gsuite runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Gsuite to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect Gsuite so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Start Gsuite on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can deploy Gsuite with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use Gsuite to find what employees ask most across channels and answer it once, in the right place.
  • Gsuite is a community server, so have security review the code and pin a version before Gsuite touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Gsuite README

From MarkusPfundstein/mcp-gsuite on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

mcp-gsuite MCP server

MCP server to interact with Google products.

Example prompts

Right now, this MCP server supports Gmail and Calendar integration with the following capabilities:

  1. General
  • Multiple google accounts
  1. Gmail
  • Get your Gmail user information
  • Query emails with flexible search (e.g., unread, from specific senders, date ranges, with attachments)
  • Retrieve complete email content by ID
  • Create new draft emails with recipients, subject, body and CC options
  • Delete draft emails
  • Reply to existing emails (can either send immediately or save as draft)
  • Retrieve multiple emails at once by their IDs.
  • Save multiple attachments from emails to your local system.
  1. Calendar
  • Manage multiple calendars
  • Get calendar events within specified time ranges
  • Create calendar events with:
    • Title, start/end times
    • Optional location and description
    • Optional attendees
    • Custom timezone support
    • Notification preferences
  • Delete calendar events

Example prompts you can try:

  • Retrieve my latest unread messages

  • Search my emails from the Scrum Master

  • Retrieve all emails from accounting

  • Take the email about ABC and summarize it

  • Write a nice response to Alice's last email and upload a draft.

  • Reply to Bob's email with a Thank you note. Store it as draft

  • What do I have on my agenda tomorrow?

  • Check my private account's Family agenda for next week

  • I need to plan an event with Tim for 2hrs next week. Suggest some time slots.

Quickstart

Install
Installing via Smithery

To install mcp-gsuite for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-gsuite --client claude
Oauth 2

Google Workspace (G Suite) APIs require OAuth2 authorization. Follow these steps to set up authentication:

  1. Create OAuth2 Credentials:

    • Go to the Google Cloud Console
    • Create a new project or select an existing one
    • Enable the Gmail API and Google Calendar API for your project
    • Go to "Credentials" → "Create Credentials" → "OAuth client ID"
    • Select "Desktop app" or "Web application" as the application type
    • Configure the OAuth consent screen with required information
    • Add authorized redirect URIs (include http://localhost:4100/code for local development)
  2. Required OAuth2 Scopes:

   [
     "openid",
     "https://mail.google.com/",
     "https://www.googleapis.com/auth/calendar",
     "https://www.googleapis.com/auth/userinfo.email"
   ]
  1. Then create a .gauth.json in your working directory with client
{
    "web": {
        "client_id": "$your_client_id",
        "client_secret": "$your_client_secret",
        "redirect_uris": ["http://localhost:4100/code"],
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://oauth2.googleapis.com/token"
    }
}
  1. Create a .accounts.json file with account information
{
    "accounts": [
        {
            "email": "alice@bob.com",
            "account_type": "personal",
            "extra_info": "Additional info that you want to tell Claude: E.g. 'Contains Family Calendar'"
        }
    ]
}

You can specifiy multiple accounts. Make sure they have access in your Google Auth app. The extra_info field is especially interesting as you can add info here that you want to tell the AI about the account (e.g. whether it has a specific agenda)

Note: When you first execute one of the tools for a specific account, a browser will open, redirect you to Google and ask for your credentials, scope, etc. After a successful login, it stores the credentials in a local file called .oauth.{email}.json . Once you are authorized, the refresh token will be used.

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration
{
  "mcpServers": {
    "mcp-gsuite": {
      "command": "uv",
      "args": [
        "--directory",
        "<dir_to>/mcp-gsuite",
        "run",
        "mcp-gsuite"
      ]
    }
  }
}

Note: You can also use the uv run mcp-gsuite --accounts-file /path/to/custom/.accounts.json to specify a different accounts file or --credentials-dir /path/to/custom/credentials to specify a different credentials directory.

{
  "mcpServers": {
    "mcp-gsuite": {
      "command": "uv",
      "args": [
        "--directory",
        "<dir_to>/mcp-gsuite",
        "run",
        "mcp-gsuite",
        "--accounts-file",
        "/path/to/custom/.accounts.json",
        "--credentials-dir",
        "/path/to/custom/credentials"
      ]
    }
  }
}
Published Servers Configuration
{
  "mcpServers": {
    "mcp-gsuite": {
      "command": "uvx",
      "args": [
        "mcp-gsuite",
        "--accounts-file",
        "/path/to/custom/.accounts.json",
        "--credentials-dir",
        "/path/to/custom/credentials"
      ]
    }
  }
}
Configuration Options

The MCP server can be configured with several command-line options to specify custom paths for authentication and account information:

  • --gauth-file: Specifies the path to the .gauth.json file containing OAuth2 client configuration. Default is ./.gauth.json.
  • --accounts-file: Specifies the path to the .accounts.json file containing information about the Google accounts. Default is ./.accounts.json.
  • --credentials-dir: Specifies the directory where OAuth credentials are stored after successful authentication. Default is the current working directory with a subdirectory for each account as .oauth.{email}.json.

These options allow for flexibility in managing different environments or multiple sets of credentials and accounts, especially useful in development and testing scenarios.

Example usage:

uv run mcp-gsuite --gauth-file /path/to/custom/.gauth.json --accounts-file /path/to/custom/.accounts.json --credentials-dir /path/to/custom/credentials

This configuration is particularly useful when you have multiple instances of the server running with different configurations or when deploying to environments where the default paths are not suitable.

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD
Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-gsuite run mcp-gsuite

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

You can also watch the server logs with this command:

tail -n 20 -f ~/Library/Logs/Claude/mcp-server-mcp-gsuite.log

Questions about Gsuite

What is the Gsuite MCP server?

MCP Server to interact with Google Gsuite prodcuts. Gsuite is maintained by MarkusPfundstein on GitHub at MarkusPfundstein/mcp-gsuite, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Gsuite MCP server?

Add Gsuite to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio gsuite -- npx -y @smithery/cli. To run Gsuite this way you need Node.js installed.

Does Gsuite need an API key?

The registry lists no required keys for Gsuite. Check the Gsuite README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Gsuite an official MCP server?

No. Gsuite is a community server maintained by MarkusPfundstein. Community servers can be excellent; read the code and the open issues before you give Gsuite access to company data.

What license is Gsuite under?

Gsuite is released under the MIT license, according to its GitHub repository. The license covers the code of Gsuite; the service it connects to has its own terms.