Tools for common Gmail operations, such as sending emails.
This MCP (Model Context Protocol) server provides tools for common operations with gmail.
send_mail
: Send new emailscredentials.json
in this project root. This has the Client ID, Client Secret, etc.Clone this repository:
git clone https://github.com/heuristech/gmail-mcp-server.git
cd gmail-mcp-server
Create a virtual environment and install the package in development mode:
# Create a virtual environment
uv venv
# Activate the virtual environment
# On macOS/Linux:
source .venv/bin/activate
# On Windows:
.venv\Scripts\activate
# Install dependencies
uv sync
Get Refresh Token
python get_refresh_token.py
This will:
port
: 4321
to receive tokens
post Google OAuthtoken.json
with refresh_token
along with client_id
, and client_secret
.refresh_token
on console.Create .env
copy example.env .env
Setup the corresponding value using what you received in the previous step.
Use MCP Inspector to test it in the development mode.
mcp dev server.py
Once your server is ready, install it in Claude Desktop
mcp install server.py --with google-auth --with google-auth-oauthlib --with google-auth-httplib2 --with google-api-python-client -f .env
MCP server configuration:
{
"mcpServers": {
"gmail-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/:your.path.to/gmail-mcp-server/server.py",
"run",
"server.py"
],
"env": {
"CLIENT_ID": "google.auth.app.client.id",
"CLIENT_SECRET": "google.auth.app.client.secret",
"REFRESH_TOKEN": "google.auth.app.refresh.token"
}
}
}
}
Integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
Interact with Wizzypedia through the MediaWiki API, supporting both read-only and authenticated operations.
Connects AI agents to the Feishu/Lark platform via its OpenAPI to automate tasks like document processing, conversation management, and calendar scheduling.
A high-performance MCP server for analyzing Intercom conversations with fast, local access via caching and background sync.
Access market data, manage accounts, and execute trades on the Upbit Cryptocurrency Exchange via its OpenAPI.
Interact with the Digital Samba Embedded API for video conferencing features like room management, analytics, recording, and live session control.
Allows AI assistants to request information and receive responses from humans via Slack.
An IMAP Model Context Protocol (MCP) server to expose IMAP operations as tools for AI assistants.
A server for interacting with WeChat, a popular messaging and social media app.
Interact with Twilio APIs to send messages, manage phone numbers, configure your account, and more.