go-google-mcp
Model Context Protocol (MCP) server for Google Workspace. Secure CRUD for Drive, Gmail, Calendar, Sheets, Docs, Tasks and People via AI agents.
Documentation
go-google-mcp
Unified Model Context Protocol (MCP) server for Google Workspace.
`go-google-mcp` is a powerful, secure, and extensible Go-based tool that allows AI agents (like Claude Desktop, Cursor, or Gemini CLI) to interact directly with your Google services through a standardized interface.
๐ Features
Interact with Google Workspace using natural language through these integrated services:
- ๐ Google Drive: Powerful search, read text content, create files/folders, update content, move, share, and trash.
- ๐ง Gmail: Search/list threads, read full conversations, create drafts, move to trash, and send emails.
- ๐ Google Calendar: List upcoming events, create new meetings (with attendees), and delete events.
- ๐ Google Sheets: Create spreadsheets, read ranges, append rows, and update specific cells.
- ๐ Google Docs: Create new documents and read full document text.
- ๐ฅ Google People: List contacts and create new connections.
- โ Google Tasks: List task lists and tasks, create, update, and delete tasks (with optional status/due filtering).
๐ Installation
Ensure you have Go installed (version 1.24 or later recommended).
go install github.com/matheusbuniotto/go-google-mcp/cmd/go-google-mcp@latest๐ Authentication
This tool supports both User OAuth 2.0 (best for personal/CLI use) and Service Accounts (best for server/automated use).
Option 1: User OAuth (Recommended)
1. Create Credentials: Go to the Google Cloud Console, enable the necessary APIs (Drive, Gmail, etc.), and create a Desktop App OAuth client.
2. Download JSON: Save the client secrets file as `client_secrets.json`.
3. One-time Login:
go-google-mcp auth login --secrets path/to/client_secrets.json*This securely saves your token to `~/.go-google-mcp/`.*
Option 2: Service Account
1. Download your Service Account JSON key.
2. Run with the `-creds` flag:
go-google-mcp -creds path/to/service-account.json๐ค Usage with AI Agents
Claude Desktop / Cursor
Add the following to your `claude_desktop_config.json` (or your IDE's MCP settings):
{
"mcpServers": {
"google-workspace": {
"command": "go-google-mcp",
"args": []
}
}
}Gemini CLI
gemini mcp add google-workspace $(which go-google-mcp)๐ Development
git clone https://github.com/matheusbuniotto/go-google-mcp.git
cd go-google-mcp
go build ./cmd/go-google-mcp๐ License
MIT License. See LICENSE for details.
Frequently asked questions
What is go-google-mcp?
go-google-mcp is Model Context Protocol (MCP) server for Google Workspace. Secure CRUD for Drive, Gmail, Calendar, Sheets, Docs, Tasks and People via AI agents.
How do I install go-google-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is go-google-mcp open source?
Yes โ it is hosted on GitHub at https://github.com/matheusbuniotto/go-google-mcp and has 5 stars.
Related MCP tools
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace MCP Server & CLI Tool
eBPF-powered network observability for Kubernetes. Indexes L4/L7 traffic with full K8s context, decrypts TLS without keys. Queryable by AI agents via MCP and humans via dashboard.
GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.
Query anything (GitHub, Notion, +40 more) with SQL and let LLMs (ChatGPT, Claude) connect to using MCP Go-based implementation. Trusted by 1300+ developers.
Open-source AI agent firewall for MCP security and agent egress. Scans mediated HTTP, MCP, A2A, and WebSocket traffic for exfiltration, SSRF, and prompt injection, and emits mediator-signed action receipts: verifiable audit evidence from outside the agent.
superglue (YC W25) builds integrations and tools from natural language. Get production-grade tools for long tail and enterprise systems.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP