Gmail Mcp Server Ansh
FreeNot checkedA Model Context Protocol (MCP) server for Gmail integration.
About
A Model Context Protocol (MCP) server for Gmail integration.
README
The Gmail MCP Server provides a toolset to interact programmatically with Gmail using OAuth 2.0 authentication. It enables you to search, read, send, and manage emails efficiently using a standardized interface.
📘 Google Cloud Setup
Before using the Gmail MCP Server, you must set up a Google Cloud project, enable the Gmail API, and create OAuth 2.0 credentials.
1. Create a Google Cloud Project
- Go to the Google Cloud Console.
- Click the project dropdown at the top and select New Project.
- Enter a project name (e.g.,
Gmail MCP Server) and click Create.
2. Enable the Gmail API
- With your project selected, navigate to the Gmail API page.
- Click Enable.
3. Create OAuth 2.0 Credentials (Desktop Client)
- In the Cloud Console, go to APIs & Services > Credentials.
- Click + Create Credentials and choose OAuth client ID.
- If prompted, configure the consent screen:
- Set the App type to
External. - Fill in the required fields (App name, user support email, etc.).
- Set the App type to
- For Application type, select Desktop app.
- Enter a name (e.g.,
Gmail MCP Desktop Client) and click Create. - Download the credentials file (
credentials.json) and store it securely. You’ll need this file for authentication.
🛠️ Available Tools
The Gmail MCP Server offers the following tools for interacting with Gmail:
search_emails
Search emails using Gmail’s advanced search syntax (e.g., by sender, subject, date).get_recent_emails
Retrieve the most recent emails from your Gmail inbox.get_email_details
Fetch full details (headers, body, metadata) of a specific email using its message ID.send_email
Send a new email using your authenticated Gmail account.list_gmail_labels
List all available labels configured in your Gmail account (e.g., INBOX, STARRED, SENT).get_emails_by_label
Retrieve emails that belong to a specific Gmail label.health_check
Check the health and connectivity of the Gmail MCP Server to ensure it is functioning correctly.
🖥️ Claude Desktop Configuration
To use the Gmail MCP Server with Claude Desktop, update your Claude configuration file to include the following entry under mcpServers. Replace CREDENTIALS_FILE with the absolute path to your downloaded credentials.json file from the Google Cloud Console.
{
"mcpServers": {
"gmail_mcp": {
"command": "uvx",
"args": [
"gmail-mcp-server-ansh",
"--credentials-file", "CREDENTIALS_FILE"
]
}
}
}
🔧 Programmatic Usage
If you are integrating the Gmail MCP Server into your own application (such as a custom agent system), you can configure and launch it programmatically using a params dictionary as shown below. Also replace CREDENTIALS_FILE with the absolute path to your downloaded credentials.json file from the Google Cloud Console.
params = {
"command": "uvx",
"args": [
"gmail-mcp-server-ansh",
"--credentials-file", "CREDENTIALS_FILE"
]
}
Install Gmail Mcp Server Ansh in Claude Desktop, Claude Code & Cursor
unyly install gmail-mcp-server-anshInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add gmail-mcp-server-ansh -- uvx gmail-mcp-server-anshStep-by-step: how to install Gmail Mcp Server Ansh
FAQ
Is Gmail Mcp Server Ansh MCP free?
Yes, Gmail Mcp Server Ansh MCP is free — one-click install via Unyly at no cost.
Does Gmail Mcp Server Ansh need an API key?
No, Gmail Mcp Server Ansh runs without API keys or environment variables.
Is Gmail Mcp Server Ansh hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Gmail Mcp Server Ansh in Claude Desktop, Claude Code or Cursor?
Open Gmail Mcp Server Ansh 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 Gmail Mcp Server Ansh with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
