This is a collection of Google-native tools (e.g., Gmail, Calendar) for the MCP protocol, designed to integrate seamlessly with AI clients like Claude or Cursor. Click below for one-click install with .mcpb: JSON configs - Complete Email Attachment Support: - ✉️ Send emails with attachments from local files or Google Drive - 📥 Download all email attachments to local storage - 🔄 Dual attachment s
Add this skill
npx mdskills install vakharwalad23/google-mcpComprehensive Google services integration with excellent OAuth management and extensive tool coverage
This is a collection of Google-native tools (e.g., Gmail, Calendar) for the MCP protocol, designed to integrate seamlessly with AI clients like Claude or Cursor.
Click below for one-click install with .mcpb:
JSON configs
{
"mcpServers": {
"google-mcp": {
"command": "bunx",
"args": ["--no-cache", "google-mcp@latest"],
"env": {
// Either can be used, but not both
// Use OAuth
"GOOGLE_OAUTH_CLIENT_ID": "",
"GOOGLE_OAUTH_CLIENT_SECRET": "",
"GOOGLE_OAUTH_TOKEN_PATH": " CAN_BE_ANYWHERE_ON_YOUR_SYSTEM",
// Use Service Account
"GOOGLE_CLIENT_EMAIL": "",
"GOOGLE_PRIVATE_KEY": "",
"GMAIL_USER_TO_IMPERSONATE": ""
}
}
}
}
google_gmail_send_email: Now supports attachments from local files and Google Drivegoogle_gmail_draft_email: Create drafts with attachmentsgoogle_gmail_download_attachments: Download all email attachments with customizable pathOAuth Management:
Gmail:
Calendar:
Drive:
Tasks:
TODO Plans:
You can chain commands for workflows, e.g.:
"List my unread emails, draft a reply to the latest one, and schedule a follow-up meeting tomorrow at 2 PM."
The server includes built-in OAuth token management to handle expired access tokens gracefully:
If you encounter authentication errors or want to proactively refresh your tokens, simply ask:
Refresh my Google OAuth tokens
This will:
If you get invalid_grant errors or your refresh token has expired, you can start fresh:
Re-authenticate my Google account
This automated process will:
You'll only need to click "Allow" in the browser - everything else is automated!
Note: If you don't have a valid refresh token, you'll need to go through the initial OAuth authentication flow again.
Prerequisites:
brew install oven-sh/bun/bun # macOS/Linux with Homebrew
Set Up OAuth:
Configure Your Client: Edit your claude_desktop_config.json (or equivalent config file for your client):
{
"mcpServers": {
"google-mcp": {
"command": "bunx",
"args": ["--no-cache", "google-mcp@latest"],
"env": {
// Either can be used, but not both
// Use OAuth
"GOOGLE_OAUTH_CLIENT_ID": "",
"GOOGLE_OAUTH_CLIENT_SECRET": "",
"GOOGLE_OAUTH_TOKEN_PATH": "",
// Use Service Account
"GOOGLE_CLIENT_EMAIL": "",
"GOOGLE_PRIVATE_KEY": "",
"GMAIL_USER_TO_IMPERSONATE": ""
}
}
}
}
Now, ask Claude to use the google-mcp tool.
Send an email to jane.doe@example.com with the subject "Meeting Notes" and body "Here are the notes from today."
List my upcoming calendar events for the next 3 days.
Create a calendar event titled "Team Sync" tomorrow at 10 AM for 1 hour.
Refresh my Google OAuth tokens
Re-authenticate my Google account
This MCP server supports both stdio and HTTP transports via environment variables:
# Default mode - uses stdio transport
bun run dev
# Or explicitly
MCP_TRANSPORT=stdio bun run index.ts
# HTTP mode with Streamable HTTP support
MCP_TRANSPORT=http bun run index.ts
# Or with custom port
MCP_TRANSPORT=http PORT=3000 bun run index.ts
When running in HTTP mode, the server provides these endpoints:
GET /health - Health check endpoint with session countGET /mcp - Session info and server statusPOST /mcp - Main MCP JSON-RPC endpoint for sending requestsDELETE /mcp - End session endpointThe Streamable HTTP transport uses the official MCP SDK with automatic session management:
For HTTP transport, configure your client with the server URL:
{
"mcpServers": {
"google-mcp-http": {
"url": "http://localhost:3000/mcp"
}
}
}
git clone https://github.com/vakharwalad23/google-mcp.git
cd google-mcp
bun install
# Run in stdio mode (default)
bun run dev:stdio
# Run in HTTP mode
bun run dev:http
Thank you for using Google MCP Tools! If you have any questions or suggestions, feel free to open an issue or contribute to the project.
Play around with the tools and enjoy!!
Install via CLI
npx mdskills install vakharwalad23/google-mcpGoogle MCP Tools is a free, open-source AI agent skill. This is a collection of Google-native tools (e.g., Gmail, Calendar) for the MCP protocol, designed to integrate seamlessly with AI clients like Claude or Cursor. Click below for one-click install with .mcpb: JSON configs - Complete Email Attachment Support: - ✉️ Send emails with attachments from local files or Google Drive - 📥 Download all email attachments to local storage - 🔄 Dual attachment s
Install Google MCP Tools with a single command:
npx mdskills install vakharwalad23/google-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
Google MCP Tools works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.