Manage Gmail and Calendar programmatically with Google Workspace MCP Server tools
Google Workspace MCP Server is a specialized server that integrates with Gmail and Calendar APIs, providing tools for managing emails and calendar events through the Model Context Protocol (MCP). This allows AI applications to connect to these data sources in a standardized manner. By leveraging the capabilities of Google's APIs, this server enables developers to build more sophisticated and flexible AI workflows.
The Google Workspace MCP Server offers robust features for interacting with Gmail and Calendar through the Model Context Protocol (MCP). Some key features include:
Gmail Tools:
list_emails
: Lists recent emails from your inbox, optionally filtered by criteria.search_emails
: Performs advanced email searches using Gmail query syntax.send_email
: Sends new emails with support for CC and BCC recipients.modify_email
: Modifies email labels such as marking messages as read or archiving them.Calendar Tools:
list_events
: Lists upcoming calendar events within a specified date range.create_event
: Creates new calendar events, including attendees.update_event
: Updates existing calendar events with new details.delete_event
: Deletes calendar events.These features enable AI applications to automate and augment everyday tasks in email management and event scheduling. By standardizing these interactions through the Model Context Protocol (MCP), they can seamlessly integrate Google Workspace functionalities into a variety of application workflows.
The architecture of the Google Workspace MCP Server is designed to align with the Model Context Protocol (MCP). It includes components for OAuth 2.0 authentication and API interaction, ensuring secure access and efficient data exchange between AI applications and Google's email and calendar services. The server is built using Node.js, making it scalable and flexible.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph LR
A[External API] --> B[OAuth Authentication]
B --> C[MCP Server]
C --> D[Data Processing & Storage]
D --> E[API Responses]
style A fill:#fbc5e8
style C fill:#b2dfdb
style D fill:#d7ffdc
style E fill:#e1ffcc
To set up and use the Google Workspace MCP Server, follow these steps:
Ensure you have:
Clone and Install:
git clone https://github.com/epaproditus/google-workspace-mcp-server.git
cd google-workspace-mcp-server
npm install
Create OAuth Credentials: Create a credentials.json
file in the root directory with your client ID and client secret.
Get Refresh Token:
node get-refresh-token.js
Configure MCP Settings: Add the server configuration to your MCP settings files, such as CLAude-DSP configuration for development.
Build and Run:
npm run build
Imagine an AI application that processes emails for expense reports. By integrating with the Google Workspace MCP Server, it can automatically extract relevant information from incoming emails, schedule follow-up meetings, and send reminders.
{
"mcpServers": {
"google-workspace": {
"command": "node",
"args": ["/path/to/google-workspace-server/build/index.js"],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id",
"GOOGLE_CLIENT_SECRET": "your_client_secret",
"GOOGLE_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}
The Google Workspace MCP Server supports integration with the following MCP clients:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
The compatibility and performance of the Google Workspace MCP Server are crucial for seamless integration with AI applications. This matrix provides an overview:
Advanced configuration options allow for enhanced security measures. Key points include:
Secure Authentication:
API Quotas and Limits:
Error Handling:
How do I set up authentication for the MCP server?
get-refresh-token.js
script.What APIs does this server support?
Can I use multiple MCP clients simultaneously?
How do I verify the API status during setup?
What security measures are included with the MCP server?
Contributions to the Google Workspace MCP Server are encouraged. Developers can contribute by:
The Model Context Protocol (MCP) offers a rich ecosystem for integrating AI applications with various tools and data sources. Additional resources include:
By leveraging the Google Workspace MCP Server, developers can build powerful AI applications that seamlessly interact with email management and calendar scheduling tools. This server provides a robust foundation for integrating these functionalities into broader AI workflows, enhancing productivity and efficiency in both personal and professional contexts.
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
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods