google workspace.com
google workspace.com logo

Google Workspace

Integrates with Gmail and Google Calendar APIs to enable email and calendar management tasks like listing, searching, an...

Created byApr 22, 2025

Google Workspace MCP Server

A Model Context Protocol (MCP) server that provides tools for interacting with Gmail and Calendar APIs. This server enables you to manage your emails and calendar events programmatically through the MCP interface.

Features

Gmail Tools

  • list_emails: List recent emails from your inbox with optional filtering
  • search_emails: Advanced email search with Gmail query syntax
  • send_email: Send new emails with support for CC and BCC
  • modify_email: Modify email labels (archive, trash, mark read/unread)

Calendar Tools

  • list_events: List upcoming calendar events with date range filtering
  • create_event: Create new calendar events with attendees
  • update_event: Update existing calendar events
  • delete_event: Delete calendar events

Prerequisites

  1. Node.js: Install Node.js version 14 or higher
  1. Google Cloud Console Setup:

Setup Instructions

  1. Clone and Install:
  1. Create OAuth Credentials: Create a credentials.json file in the root directory:
  1. Get Refresh Token:This will:
  1. Configure MCP Settings: Add the server configuration to your MCP settings file:Add this to the mcpServers object:
  1. Build and Run:

Usage Examples

Gmail Operations

  1. List Recent Emails:
  1. Search Emails:
  1. Send Email:
  1. Modify Email:

Calendar Operations

  1. List Events:
  1. Create Event:
  1. Update Event:
  1. Delete Event:

Troubleshooting

  1. Authentication Issues:
  1. API Errors:

License

This project is licensed under the MIT License.

Google Workspace MCP Server

A Model Context Protocol (MCP) server that provides tools for interacting with Gmail and Calendar APIs. This server enables you to manage your emails and calendar events programmatically through the MCP interface.

Features

Gmail Tools

  • list_emails: List recent emails from your inbox with optional filtering
  • search_emails: Advanced email search with Gmail query syntax
  • send_email: Send new emails with support for CC and BCC
  • modify_email: Modify email labels (archive, trash, mark read/unread)

Calendar Tools

  • list_events: List upcoming calendar events with date range filtering
  • create_event: Create new calendar events with attendees
  • update_event: Update existing calendar events
  • delete_event: Delete calendar events

Prerequisites

  1. Node.js: Install Node.js version 14 or higher
  1. Google Cloud Console Setup:

Setup Instructions

  1. Clone and Install:
  1. Create OAuth Credentials: Create a credentials.json file in the root directory:
  1. Get Refresh Token:This will:
  1. Configure MCP Settings: Add the server configuration to your MCP settings file:Add this to the mcpServers object:
  1. Build and Run:

Usage Examples

Gmail Operations

  1. List Recent Emails:
  1. Search Emails:
  1. Send Email:
  1. Modify Email:

Calendar Operations

  1. List Events:
  1. Create Event:
  1. Update Event:
  1. Delete Event:

Troubleshooting

  1. Authentication Issues:
  1. API Errors:

License

This project is licensed under the MIT License.