This MCP server enables integration with Google products like Gmail and Calendar, allowing you to manage emails and calendar events through Claude. It supports multiple Google accounts and provides a comprehensive set of features for email management and calendar scheduling.
The easiest way to install mcp-gsuite for Claude Desktop is through Smithery:
npx -y @smithery/cli install mcp-gsuite --client claude
Google Workspace APIs require OAuth2 authorization:
Create OAuth2 credentials:
http://localhost:4100/code
as an authorized redirect URIRequired OAuth2 scopes:
[
"openid",
"https://mail.google.com/",
"https://www.googleapis.com/auth/calendar",
"https://www.googleapis.com/auth/userinfo.email"
]
.gauth.json
file in your working directory:{
"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
file with account information:{
"accounts": [
{
"email": "[email protected]",
"account_type": "personal",
"extra_info": "Additional info that you want to tell Claude: E.g. 'Contains Family Calendar'"
}
]
}
You can specify multiple accounts. The extra_info
field allows you to include specific details about the account that you want Claude to know.
Note: When you first execute a tool for a specific account, a browser will open asking for Google authentication. After successful login, credentials are stored in a local file named .oauth.{email}.json
. For subsequent uses, the refresh token will be used automatically.
Modify your Claude Desktop configuration file:
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
For published servers:
{
"mcpServers": {
"mcp-gsuite": {
"command": "uvx",
"args": [
"mcp-gsuite",
"--accounts-file",
"/path/to/custom/.accounts.json",
"--credentials-dir",
"/path/to/custom/credentials"
]
}
}
}
The server supports several command-line options:
--gauth-file
: Specifies the path to the .gauth.json
file (default: ./.gauth.json
)--accounts-file
: Specifies the path to the .accounts.json
file (default: ./.accounts.json
)--credentials-dir
: Specifies where OAuth credentials are stored (default: current directory)Example custom configuration:
uv run mcp-gsuite --gauth-file /path/to/custom/.gauth.json --accounts-file /path/to/custom/.accounts.json --credentials-dir /path/to/custom/credentials
Try these examples with Claude:
Try these examples with Claude:
The MCP server supports creating calendar events with customizable options including title, time range, location, description, attendees, timezone, and notification preferences.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.