MCP Math Gmail Client
@movva09
Agent with MCP server solves math task and emails the output
Overview
What is MCP Math Gmail Client?
MCP Math Gmail Client is a Python application that integrates mathematical computations with Gmail functionality. It uses the Gemini AI model to process mathematical queries and can send results via email.
How to use MCP Math Gmail Client?
Install required Python packages (including mcp, google-generativeai, Gmail API libraries) and set up a .env file with your Gemini API key and Gmail OAuth credentials. Start the MCP server using python example2-3_gmail_server_2.py, then run the client with python talk2mcp_math_gmail_client.py.
Key features of MCP Math Gmail Client
- Integration with Gemini AI for mathematical problem-solving
- Gmail integration for sending mathematical results
- Iterative problem-solving approach
- Support for various mathematical operations (arithmetic, factorial, Fibonacci, prime, ASCII, etc.)
- Automated email generation with mathematical results
- Secure OAuth 2.0 Gmail authentication
- Multiple recipient support
Use cases of MCP Math Gmail Client
- Send factorial or Fibonacci results to a specified email address
- Perform complex mathematical analysis and email detailed reports
- Format results in LaTeX and send to a professor
- Generate prime number reports with histograms and schedule email delivery
FAQ from MCP Math Gmail Client
What Python dependencies are required?
Required packages include python-dotenv, google-generativeai, mcp, google-auth, google-auth-oauthlib, google-auth-httplib2, and google-api-python-client.
How do I set up Gmail API credentials?
Go to Google Cloud Console, create a new project, enable the Gmail API, create OAuth 2.0 credentials, and download the credentials file. Then set GMAIL_CLIENT_ID and GMAIL_CLIENT_SECRET in your .env file.
What mathematical operations are supported?
The server supports basic arithmetic, exponential, logarithmic, ASCII value calculations, string manipulation, array operations, prime number calculations, factorial, and Fibonacci sequence generation.
Does the client support multiple recipients?
Yes, the README lists multiple recipient support as a feature.
What authentication does the Gmail integration use?
It uses OAuth 2.0 for secure Gmail authentication.