Compatible MCP server for Google Workspace Gmail and Calendar integration
The MCP Google Workspace Server is an essential component of the Model Context Protocol (MCP) ecosystem, designed to bridge AI applications with real-world data sources such as Gmail and Google Calendar. By leveraging the MCP protocol, this server allows developers to integrate Google Workspace services into their applications in a standardized and efficient manner. This integration supports multiple Google accounts, offering advanced features for email management and calendar operations.
The core capabilities of the MCP Google Workspace Server are built around providing extensive tools to interact with Gmail and Google Calendar through the MCP protocol. It supports multiple Google accounts with customizable metadata and descriptions, enabling a more personalized experience. Key features include:
The MCP Google Workspace Server follows a modular architecture built around TypeScript, ensuring easy maintenance and scalability. The server uses ES modules for better modularity and adheres to best practices in API design with the Google APIs as its foundation. Key components include:
gmail_list_accounts
and calendar_list_accounts
facilitate account discovery and metadata management.Imagine a scenario where an AI assistant needs to schedule meetings with team members. Using the MCP Google Workspace Server, it can list relevant calendars (both primary and secondary), create new events, set time zones, and notify participants—all through a standardized MCP protocol.
graph TD
A[AI Assistant] -->|MCP Request| B[MCP Google Workspace]
B --> C[Calendar List]
C --> D[Create Event]
D --> E[Scheduled Meeting with Notifications]
Consider an AI application tasked with managing emails for a team lead. The server can handle complex email queries, create and manage drafts, archive, and reply to emails—all while maintaining a seamless user experience.
graph TD
A[AI Assistant] -->|MCP Request| B[MCP Google Workspace]
B --> C[Gmail Query Emails]
C --> D[Email Retrieval & Management]
Installing the MCP Google Workspace Server involves several steps, ensuring that it is set up correctly and secured with necessary credentials. Follow these instructions:
Clone the Repository:
git clone https://github.com/j3k0/mcp-google-workspace.git
cd mcp-google-workspace
Install Dependencies:
npm install
Build the TypeScript Code:
npm run build
Configure OAuth 2.0 Setup:
Google Cloud Console: Go to https://console.cloud.google.com/ and enable Gmail API and Calendar API.
OAuth Credentials File (./.gauth.json
):
{
"installed": {
"client_id": "your_client_id",
"project_id": "your_project_id",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "your_client_secret",
"redirect_uris": ["http://localhost:4100/code"]
}
}
Account Configuration File (./.accounts.json
):
{
"accounts": [
{
"email": "[email protected]",
"account_type": "personal",
"extra_info": "Primary account with Family Calendar"
}
]
}
Start the Server:
npm start
Run Example Prompts:
Gmail:
Retrieve my latest unread messages.
Search my emails from the Scrum Master.
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.
Calendar:
What do I have scheduled today?
Create an event for 3 PM with John Doe.
The MCP Google Workspace Server serves as a robust tool for integrating real-world data into various AI workflows. Some of the key use cases include:
The MCP Google Workspace Server is compatible with several MCP clients, offering a wide range of integrations:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
This compatibility ensures that users can seamlessly integrate Google Workspace services into their AI applications, enhancing functionality and user experience.
The performance of the MCP Google Workspace Server is optimized for efficient data handling and seamless integration. The following matrix provides an overview:
Feature | Gmail | Calendar |
---|---|---|
Email Operations | Fast retrieval, high-volume support | Secure email archiving, multiple account support |
Calendar Operations | Swift event creation, comprehensive time zone management | Effective calendar management, integration across different calendars |
To ensure the MCP Google Workspace Server functions securely and effectively, consider these advanced configurations:
.env
files to store API keys and other sensitive data.A1: Integrate by following the detailed installation guide provided in the README, ensuring proper setup of OAuth 2.0 credentials and server configuration.
A2: Yes, it is compatible with several AI clients including Claude Desktop, Continue, and Cursor, enhancing their functionality with Google Workspace integration.
A3: The server uses complex query terms to fetch emails efficiently, supporting advanced operations like searching, creating, managing, replying, archiving, and handling attachments.
A4: Ensure secure API endpoint configurations, implement RBAC for role-based access controls, and store credentials securely in environment variables to maintain data integrity.
A5: Yes, detailed time zone settings are supported, ensuring accurate event scheduling across different regions.
Contributing to the MCP Google Workspace Server is straightforward. Follow these steps:
Explore more resources and documentation related to MCP servers, clients, and integrations:
By leveraging the MCP Google Workspace Server, developers can build powerful AI applications with seamless integration into real-world data sources. Whether for email management or meeting scheduling, this server provides a robust and efficient solution.
graph TB
subgraph Model Context Protocol Flow
A[AI Application] --> B[MCP Client]
B --> C[MCP Protocol]
C --> D[MCP Server]
D --> E[Google Data Source/Tool]
end
subgraph Data Architecture
F[MCP Client] -->|Requests| G[MCP Server]
G --> H[Data Models]
I[Data Repositories] --> H
J[API Endpoints] --> H
end
This comprehensive documentation ensures that developers can effectively use the MCP Google Workspace Server to enhance their AI applications with robust integration capabilities.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration