The Google Workspace MCP Server provides a powerful interface to control your Google Workspace services including Gmail, Calendar, and Drive. This server connects securely to your Google account and maintains that connection so you can interact with your Google services through AI assistants.
Before using this MCP server, you need to set up your own Google Cloud Project:
Create a configuration directory:
mkdir -p ~/.mcp/google-workspace-mcp
Add the following configuration to your Cline MCP settings (e.g., ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
):
{
"mcpServers": {
"google-workspace-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-v", "/home/youruser/.mcp/google-workspace-mcp:/app/config",
"-v", "/home/youruser/Documents/workspace-mcp-files:/app/workspace",
"-e", "GOOGLE_CLIENT_ID",
"-e", "GOOGLE_CLIENT_SECRET",
"-e", "LOG_MODE=strict",
"ghcr.io/aaronsb/google-workspace-mcp:latest"
],
"env": {
"GOOGLE_CLIENT_ID": "YOUR_GOOGLE_CLIENT_ID",
"GOOGLE_CLIENT_SECRET": "YOUR_GOOGLE_CLIENT_SECRET"
},
"autoApprove": [],
"disabled": false
}
}
}
Replace YOUR_GOOGLE_CLIENT_ID
and YOUR_GOOGLE_CLIENT_SECRET
with your actual credentials
Update the file paths to match your username and preferred locations
Restart Cline/Claude
Ask the AI to "add my Google account" to start the authentication process
normal
(default): Uses appropriate console methods for each log levelstrict
: Routes all non-JSON-RPC messages to stderr (recommended for Claude desktop)You can run the container directly using Docker:
docker run -i --rm \
-v ~/.mcp/google-workspace-mcp:/app/config \
-v ~/Documents/workspace-mcp-files:/app/workspace \
-e GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID \
-e GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET \
-e LOG_MODE=strict \
ghcr.io/aaronsb/google-workspace-mcp:latest
The server organizes files in a structured way:
~/Documents/workspace-mcp-files/
├── [[email protected]]/
│ ├── downloads/ # Files downloaded from Drive
│ └── uploads/ # Files staged for upload
├── [[email protected]]/
│ ├── downloads/
│ └── uploads/
└── shared/
└── temp/ # Temporary files (cleaned up automatically)
You can customize the workspace location by setting the WORKSPACE_BASE_PATH
environment variable.
Missing Configuration
Authentication Errors
Token Issues
remove_workspace_account
and re-authenticateDirectory Structure
mkdir -p ~/.mcp/google-workspace-mcp && chown $USER ~/.mcp/google-workspace-mcp
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.