MCP server for Google APIs — Gmail and Calendar tools for LLM agents.
About
MCP server for Google APIs — Gmail and Calendar tools for LLM agents.
README
MCP server for Google APIs — Gmail and Calendar tools for LLM agents.
Install
# Run directly with uvx (no install needed)
uvx mcp-google
# Or install with pip
pip install mcp-google
Environment Variables
| Variable | Description |
|---|---|
GOOGLE_CLIENT_ID |
OAuth2 client ID from Google Cloud Console |
GOOGLE_CLIENT_SECRET |
OAuth2 client secret |
GOOGLE_ACCOUNTS_JSON |
JSON array of account configs (see below) |
GOOGLE_ACCOUNTS_JSON format
[
{"email": "[email protected]", "refresh_token": "1//..."},
{"email": "[email protected]", "refresh_token": "1//..."}
]
The first account in the array is used as default when no account parameter is specified.
Tools
Phase 1 — Read-only
| Tool | Parameters | Description |
|---|---|---|
gmail_list_unread |
account?, max_results? |
List unread emails (subject, sender, date, snippet) |
gmail_get_message |
message_id, account? |
Get full email content by ID |
calendar_today |
account? |
Today's events |
calendar_week |
account? |
This week's agenda |
Phase 2 — Write
| Tool | Parameters | Description |
|---|---|---|
gmail_send |
to, subject, body, account? |
Send an email |
calendar_create_event |
title, start, end, account? |
Create a calendar event |
OAuth Setup
- Go to Google Cloud Console
- Create a project (or select existing)
- Enable Gmail API and Google Calendar API
- Go to Credentials > Create Credentials > OAuth 2.0 Client ID
- Application type: Desktop app
- Note the Client ID and Client Secret
- Configure OAuth consent screen with required scopes:
https://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/gmail.sendhttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.events
- Obtain refresh tokens for each account using the OAuth2 flow
- Set environment variables (copy
.env.exampleto.envand fill in values)
Obtaining Refresh Tokens
Use the Google OAuth Playground or run a local OAuth flow:
# Quick method via oauth2l
pip install google-auth-oauthlib
python -c "
from google_auth_oauthlib.flow import InstalledAppFlow
flow = InstalledAppFlow.from_client_config(
{'installed': {'client_id': 'YOUR_CLIENT_ID', 'client_secret': 'YOUR_SECRET', 'auth_uri': 'https://accounts.google.com/o/oauth2/auth', 'token_uri': 'https://oauth2.googleapis.com/token'}},
scopes=['https://www.googleapis.com/auth/gmail.readonly', 'https://www.googleapis.com/auth/gmail.send', 'https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/calendar.events']
)
creds = flow.run_local_server(port=0)
print(f'Refresh token: {creds.refresh_token}')
"
Running
# As MCP server (stdio transport)
mcp-google
# Or directly
python -m mcp_google.server
Claude Desktop config
{
"mcpServers": {
"google": {
"command": "mcp-google",
"env": {
"GOOGLE_CLIENT_ID": "...",
"GOOGLE_CLIENT_SECRET": "...",
"GOOGLE_ACCOUNTS_JSON": "[{\"email\": \"[email protected]\", \"refresh_token\": \"...\"}]"
}
}
}
}
License
MIT
Installing Google
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/antonio-mello-ai/mcp-googleFAQ
Is Google MCP free?
Yes, Google MCP is free — one-click install via Unyly at no cost.
Does Google need an API key?
No, Google runs without API keys or environment variables.
Is Google hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Google in Claude Desktop, Claude Code or Cursor?
Open Google on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Klavis AI
Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.
Work90210/APIFold
Turn any REST API into a hosted MCP server. 18 free public servers (GitHub, Stripe, Slack, OpenAI, Notion, and more) — no setup required, bring your own API key
by Work90210arikusi/deepseek-mcp-server
MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.
by arikusihashgraph-online/hashnet-mcp-js
MCP server for the Registry Broker. Discover, register, and chat with AI agents on the Hashgraph network.
by hashgraph-onlineprofullstack/mcp-server
A comprehensive MCP server aggregating 20+ tools including SEO optimization, document conversion, domain lookup, email validation, QR generation, weather data,
by profullstackWayStation-ai/mcp
Seamlessly and securely connect Claude Desktop and other MCP hosts to your favorite apps (Notion, Slack, Monday, Airtable, etc.). Takes less than 90 secs.
by waystation-aiCompare Google with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
