Get information about the Gmail user
Search for emails in Gmail using query parameters
Get a specific email by its ID
Create a draft email in Gmail
Delete a draft email in Gmail
Reply to an existing email in Gmail
Get multiple emails by their IDs
Save attachments from an email to the local system
List available Google Calendars
Get calendar events within a specified time range
Create a new calendar event
Delete a calendar event
Google Workspace Integration provides a seamless connection between Claude and your Google services. This MCP enables you to manage emails in Gmail and events in Google Calendar directly through Claude, supporting multiple Google accounts and offering comprehensive functionality for both services. With this integration, you can search and retrieve emails, create drafts, reply to messages, download attachments, and more. For Calendar, you can view upcoming events, create new appointments, and manage your schedule across multiple calendars. All of this is done securely through OAuth2 authentication with Google's APIs.
The Google Workspace Integration MCP allows Claude to interact with your Gmail and Google Calendar accounts. This integration enables you to manage emails, search for specific messages, handle calendar events, and more through natural language conversations with Claude.
Before using this MCP, you need to:
http://localhost:4100/code
to the authorized redirect URIsYou need to create two configuration files in your working directory:
.gauth.json
- Contains your OAuth2 client configuration:{
"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"
}
}
.accounts.json
- Contains information about your Google accounts:{
"accounts": [
{
"email": "your.email@gmail.com",
"account_type": "personal",
"extra_info": "Contains Family Calendar"
}
]
}
You can specify multiple accounts in this file. The extra_info
field allows you to add context about each account that Claude can reference.
The easiest way to install is via Smithery:
npx -y @smithery/cli install mcp-gsuite --client claude
uv pip install -e /path/to/mcp-gsuite
Add the following to your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-gsuite": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-gsuite",
"run",
"mcp-gsuite"
]
}
}
}
When you first use a tool with a specific account, a browser window will open asking you to log in to your Google account and grant the necessary permissions. After successful authentication, your credentials will be stored locally in a file named .oauth.{email}.json
for future use.
You can customize the MCP server with these command-line options:
--gauth-file
: Path to your OAuth2 client configuration (default: ./.gauth.json
)--accounts-file
: Path to your accounts configuration (default: ./.accounts.json
)--credentials-dir
: Directory to store OAuth credentials (default: current working directory)Example with custom paths:
{
"mcpServers": {
"mcp-gsuite": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-gsuite",
"run",
"mcp-gsuite",
"--accounts-file",
"/path/to/custom/.accounts.json",
"--credentials-dir",
"/path/to/custom/credentials"
]
}
}
}
Once configured, you can ask Claude to perform various tasks with your Google Workspace accounts:
The MCP handles the authentication and API interactions, allowing Claude to present the information in a conversational manner.