Gmail Local
БесплатноНе проверенLocal stdio MCP server that mirrors the public Gmail MCP server tool surface while calling the Gmail REST API directly, enabling email management tasks like cre
Описание
Local stdio MCP server that mirrors the public Gmail MCP server tool surface while calling the Gmail REST API directly, enabling email management tasks like creating drafts, searching threads, and managing labels.
README
Local stdio MCP server that mirrors the public Gmail MCP server tool surface while calling the Gmail REST API directly. It is intended as a temporary stand-in for https://gmailmcp.googleapis.com/mcp/v1.
Setup
- Follow Google's official Configure the Gmail MCP server guide to provision a Google Cloud project, enable the Gmail API and Gmail MCP API, configure the OAuth consent screen, and create a Google OAuth desktop client.
- Copy
config.sample.jsontoconfig.json. - Fill in
oauth.clientIdandoauth.clientSecretwith the OAuth client values from the official provisioning flow, then set the official Gmail MCP scopes:https://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/gmail.compose
- Run
npm installandnpm run build.
config.json and .gmail-token.json are gitignored. On startup the server refreshes saved tokens when possible. If no token is present, or the token cannot be refreshed, it starts a localhost OAuth callback and opens the Google login page in your browser.
OAuth redirect URI
The local OAuth callback URL is:
http://127.0.0.1:<redirectPort>/oauth2callback
If you use a Google OAuth Web application client, set redirectPort in config.json to a fixed port and add that exact URL to the client's Authorized redirect URIs. For example, with "redirectPort": 3000, add:
http://127.0.0.1:3000/oauth2callback
The default sample uses "redirectPort": 0, which lets the OS choose an available port. That is convenient for a Google OAuth Desktop app client, but it is not suitable for a Web application client because the redirect URI must be registered exactly.
Official remote Gmail MCP configuration
If you want to use Google's hosted Gmail MCP server instead of this local stdio stand-in, use the official server URL and OAuth configuration from Google's provisioning guide:
{
"mcpServers": {
"gmail": {
"httpUrl": "https://gmailmcp.googleapis.com/mcp/v1",
"oauth": {
"enabled": true,
"clientId": "OAUTH_CLIENT_ID",
"clientSecret": "OAUTH_CLIENT_SECRET",
"scopes": [
"https://www.googleapis.com/auth/gmail.readonly",
"https://www.googleapis.com/auth/gmail.compose"
]
}
}
}
}
Replace OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET with the OAuth client values you created in Google Cloud.
MCP client configuration
Use stdio transport and point your client at the built server. Replace /path/to/gmail-local-mcp with the directory where you cloned or copied this repo.
GitHub Copilot CLI
Add this server to your Copilot CLI MCP server configuration:
{
"mcpServers": {
"gmail": {
"command": "node",
"args": [
"/path/to/gmail-local-mcp/dist/src/index.js",
"--config",
"/path/to/gmail-local-mcp/config.json"
]
}
}
}
On Windows, use escaped backslashes in JSON paths, for example C:\\path\\to\\gmail-local-mcp\\dist\\src\\index.js.
For development, use npm run dev -- --config config.json.
Tools
The server exposes the same 10 tool names as the public Gmail MCP server:
create_draft, list_drafts, get_thread, search_threads, label_thread, unlabel_thread, list_labels, label_message, unlabel_message, and create_label.
Non-interactive testing
You can provide a short-lived access token without writing it to disk. In this mode, config.json is optional:
$env:GMAIL_ACCESS_TOKEN = "ya29..."
npm run e2e
The e2e script only calls read/list tools so it can run with the official Gmail MCP scope set.
License
This project is licensed under the MIT License.
Установить Gmail Local в Claude Desktop, Claude Code, Cursor
unyly install gmail-local-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add gmail-local-mcp -- npx -y github:mattgotteiner/gmail-local-mcpПошаговые гайды: как установить Gmail Local
FAQ
Gmail Local MCP бесплатный?
Да, Gmail Local MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Gmail Local?
Нет, Gmail Local работает без API-ключей и переменных окружения.
Gmail Local — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Gmail Local в Claude Desktop, Claude Code или Cursor?
Открой Gmail Local на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Gmail
Read, send and search emails from Claude
автор: GoogleSlack
Send, search and summarize Slack messages
автор: 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
автор: Work90210arikusi/deepseek-mcp-server
MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.
автор: arikusihashgraph-online/hashnet-mcp-js
MCP server for the Registry Broker. Discover, register, and chat with AI agents on the Hashgraph network.
автор: hashgraph-onlineprofullstack/mcp-server
A comprehensive MCP server aggregating 20+ tools including SEO optimization, document conversion, domain lookup, email validation, QR generation, weather data,
автор: 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.
автор: waystation-aiCompare Gmail Local with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории communication
