Model Context Protocol (MCP) server for Google Workspace - Calendar, Gmail, Drive, Docs, Sheets, Slides, Meet, Chat, Forms, YouTube, Tasks, and Contacts with OAuth 2.0 authentication
claude mcp add --transport stdio pegasusheavy-google-mcp node /path/to/google-mcp/dist/index.js \ --env GOOGLE_CREDENTIALS="Path to credentials.json (per platform, e.g. ~/.config/google-mcp/credentials.json on Linux)"
How to use
This MCP server exposes a comprehensive integration with Google services, including Calendar, Docs, Sheets, Slides, Drive, Gmail, Contacts (People API), YouTube, Tasks (as a Keep-like alternative), Forms, Chat, and Meet. After starting the server, you authenticate with Google via the google_auth tool to grant access to your Google account. Once authenticated, you can enumerate and invoke a wide set of tools to manage calendars, emails, documents, and more directly through the MCP interface. The tools are organized by service (Calendar, Gmail, Drive, Docs, Sheets, Slides, YouTube, Forms, Chat, Meet) and include both read-only operations (e.g., list, get) and write capabilities (e.g., create, update, delete). The Google Tasks integration acts as a Keep-like substitute, enabling note-like task lists with descriptions.
How to install
Prerequisites:
- Node.js (recommended LTS) installed on your system
- PNPM or npm for dependency installation
- Access to a Google Cloud project with OAuth credentials (credentials.json)
Install and build:
-
Clone the repository: git clone https://github.com/your-org/google-mcp.git cd google-mcp
-
Install dependencies: pnpm install
or: npm install
-
Build the project (if using TypeScript/tsx entry): pnpm build
or: npm run build
-
Prepare credentials:
- Go through Google Cloud setup to enable APIs and obtain credentials.json
- Place credentials.json at the location expected by your environment (e.g., ~/.config/google-mcp/credentials.json or as configured in the mcp_config env)
-
Run the server (example using the provided Node setup): node dist/index.js
or via your preferred runner configuration in the MCP settings
-
Alternatively, for development or testing, you can run directly with npx/tsx as shown in the README usage examples.
Additional notes
Tips and common considerations:
- Ensure all required Google APIs are enabled in your Cloud project before first use.
- Set the credentials.json path correctly and keep it secure; the server stores tokens locally per platform.
- Use the google_auth tool to initiate OAuth flow; tokens will be refreshed automatically when needed.
- If you modify the server code, re-run the build step to ensure dist/index.js is up to date.
- When configuring mcpServers in your MCP settings, choose a command runner that matches your deployment environment (node with built dist, or npx/tsx for on-the-fly TS execution).
- For production deployments, consider defining environment variables for credentials path and any API scopes you intend to restrict.
Related MCP Servers
ai-guide
程序员鱼皮的 AI 资源大全 + Vibe Coding 零基础教程,分享大模型选择指南(DeepSeek / GPT / Gemini / Claude)、最新 AI 资讯、Prompt 提示词大全、AI 知识百科(RAG / MCP / A2A)、AI 编程教程、AI 工具用法(Cursor / Claude Code / OpenClaw / TRAE / Lovable / Agent Skills)、AI 开发框架教程(Spring AI / LangChain)、AI 产品变现指南,帮你快速掌握 AI 技术,走在时代前沿。本项目为开源文档版本,已升级为鱼皮 AI 导航网站
google_workspace_mcp
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace / G Suite MCP Server & CLI Tool
vscode
MCP server for Claude Code/VSCode/Cursor/Windsurf to use editor self functionality. ⚡ Get real-time LSP diagnostics, type information, and code navigation for AI coding agents without waiting for slow tsc/eslint checks.
fastmcp-gsuite
MCP server for Gmail, Google Calendar, and Google Drive integration using fastmcp. Supports multiple accounts, email management, calendar events, and file operations.
lsbible
Bible SDK and MCP server – give Claude, Cursor, and AI apps ground-truth Scripture context
google-workspace -with-script
MCP server for Claude Code CLI with full Google Workspace integration - Docs, Sheets, Drive, Gmail, Calendar & Apps Script (72 tools)