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 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-google-workers-ravizin

v1.0.1

Published

MCP server for Google Workspace integration (Gmail, Drive, Calendar)

Readme

MCP Google Workers

A custom Model Context Protocol (MCP) server that enables any MCP client to interact with Google Workspace (Gmail, Drive, Calendar).

🌟 What is this?

This is a standalone MCP server that provides tools for Google Workspace integration. It can be used with any MCP-compatible client including:

🚀 Features

  • 📧 Gmail Integration: List recent emails from your inbox
  • 📁 Google Drive Management: Create, read, move, copy, delete, and search files and folders
  • 📅 Google Calendar Access: View upcoming events
  • 🔄 File Conversion: Convert files between various formats
  • 🔐 Secure Authentication: OAuth 2.0 authentication with Google

🛠 Available Tools

Gmail

| Tool | Description | Parameters | |------|-------------|------------| | list_emails | List recent emails from inbox | limit (optional, default: 5) |

Google Drive

| Tool | Description | Parameters | |------|-------------|------------| | list_files | List files/folders with filters | limit, type, folderName | | list_folder | List contents of a specific folder | folderId, limit | | search_files | Search files by name | query, limit | | create_folder | Create a new folder | name | | create_file | Create text file with content | fileName, content, parentId | | upload_file | Upload local file to Drive | filePath, fileName, parentId | | download_file | Generate download link | fileName | | read_file | Read content of text files | fileName | | convert_file | Convert between formats | fileName, targetFormat, newFileName | | convert_and_save | Convert and save in Drive | fileName, targetFormat, saveFileName | | read_file_metadata | Read file metadata by ID | fileId | | rename_file | Rename file/folder | fileId, newName | | move_file | Move file between folders | fileId, newParentId | | copy_file | Duplicate a file | fileId, newFileName | | delete_file | Move file to trash | fileId | | delete_permanently | Permanently delete from trash | fileId | | restore_file | Restore file from trash | fileId | | list_trash | List files in trash | limit |

Google Calendar

| Tool | Description | Parameters | |------|-------------|------------| | list_events | List upcoming calendar events | limit, days |

📦 Installation

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • Google Cloud Platform account

Step 1: Set Up Google Cloud Project

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the following APIs:
    • Gmail API
    • Google Drive API
    • Google Calendar API
  4. Go to OAuth consent screen:
    • Select "External"
    • Fill in app name, user support email, and developer contact
    • Skip "Test users" (leave empty for public use)
    • Click "Save and Continue"
  5. Go to Credentials:
    • Click "+ CREATE CREDENTIALS"
    • Choose "OAuth client ID"
    • Select "Desktop app" as application type
    • Download the JSON file

Step 2: Install the Server

# Clone or download this repository
git clone https://github.com/Ravi4649/mcp-google-workers.git
cd mcp-google-workers

# Install dependencies
npm install

# Build the project
npm run build

Step 3: Configure Credentials

Copy your downloaded OAuth JSON file to the project directory:

cp ~/Downloads/client_secret_XXXXX.json credentials.json

Step 4: Connect to Your MCP Client

Configure your MCP client to use this server. Example configuration:

{
  "mcpServers": {
    "google-workers": {
      "command": "node",
      "args": ["/path/to/mcp-google-workers/dist/index.js"],
      "env": {}
    }
  }
}

🔐 First-Time Authentication

When you first use any Google-related tool:

  1. The server will display an authentication URL
  2. Open the URL in your browser
  3. Log in with your Google account
  4. You may see a "This app isn't verified" warning (normal for development apps)
    • Click "Advanced" → "Go to ... (unsafe)" to proceed
  5. Click "Allow"
  6. Copy the authorization code and paste it in the terminal
  7. The token will be saved in token.json for future use

💡 Note: Since this is a development app, you may need to re-authenticate every 7 days. To avoid this, you can publish the app to "Production" in Google Cloud Console (requires verification process).

🔐 Privacy & Security

  • 100% local: Runs on your machine via Stdio
  • Zero external data: Credentials and tokens stay on your machine
  • No backend: Direct communication with Google API
  • OAuth 2.0: Industry-standard authentication

🛠 Tech Stack

  • TypeScript + Node.js
  • Google APIs Client Library (googleapis)
  • MCP SDK (@modelcontextprotocol/sdk)
  • Zod for validation
  • OAuth 2.0 for authentication

🔄 Updating

To update to the latest version:

git pull origin main
npm install
npm run build

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments