Math Agent with Microsoft Word and Gmail Integration

by milindchawre

1 stars
288 downloads
Not rated
GitHub

About

MCP server for Math Agent with Microsoft Word and Gmail Integration

Details

Author
milindchawre
GitHub stars
1
Downloads
288
Categories
AI

- Mathematical operations: basic arithmetic, power, square/cube root, trigonometric functions, logarithms, factorial, Fibonacci, ASCII conversion, exponential sum
- AI integration with Google Gemini Pro for intelligent problem-solving and automatic tool selection
- Enhanced logging with timestamps, debug information, and error tracking
- Automatic email reports via Gmail SMTP containing execution logs and final result summary
- Microsoft Word integration for automatic document creation, rectangle drawing, and result visualization

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Math Agent with Microsoft Word and Gmail Integration
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with pip3 install -r requirements.txt, set environment variables for GEMINI_API_KEY, GMAIL_USER, and GMAIL_APP_PASSWORD, then run python math_agent_client.py. The agent starts an MCP server internally, processes mathematical queries using Gemini AI, executes calculations, creates a Word document with the result drawn inside a rectangle, and sends an email report with execution logs.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "math agent with microsoft word and gmail integration": {
            "eagv1-s4-mcp": {
                "command": "python",
                "args": [
                    "math_agent_client.py"
                ]
            }
        }
    }
}

McpServers

{
    "eagv1-s4-mcp": {
        "command": "python",
        "args": [
            "math_agent_client.py"
        ]
    }
}

Math Agent with Microsoft Word and Gmail Integration

A Python-based mathematical agent that solves problems iteratively using various mathematical tools and visualizes results using Microsoft Word and Gmail.

Features

- Mathematical Operations
- Basic arithmetic (add, subtract, multiply, divide)
- Advanced operations (power, square root, cube root)
- Trigonometric functions (sin, cos, tan)
- Logarithmic calculations
- Factorial computation
- Fibonacci sequence generation
- ASCII value conversion
- Exponential sum calculations

- AI Integration
- Google Gemini Pro model for intelligent problem-solving
- Iterative problem-solving approach
- Automatic tool selection and execution

- Enhanced Logging
- Detailed execution logs
- Debug information for tool operations
- Error tracking and reporting
- Comprehensive email reports with execution history

- Email Integration
- Automatic email reports after completion
- Detailed execution logs in email body
- Final result summary
- Gmail SMTP integration

- Word Integration
- Automatic Word document creation
- Rectangle drawing with results
- Automated result visualization
- Configurable text placement

Prerequisites

- Python 3.7+
- Microsoft Word for macOS
- macOS 10.15 or later
- Google Cloud API key (for Gemini Pro)

Installation

1. Clone the repository
2. Install dependencies:

pip3 install -r requirements.txt

3. Set up environment variables:

Option 1: Export in terminal (recommended for testing):

export GEMINI_API_KEY=your_api_key_here
export GMAIL_USER=your.email@gmail.com
export GMAIL_APP_PASSWORD=your16digitpassword

Option 2: Create a .env file:
GEMINI_API_KEY=your_api_key_here
GMAIL_USER=your.email@gmail.com
GMAIL_APP_PASSWORD=your16digitpassword

Usage

Recommended Method: Run the client (automatically starts the server):
python math_agent_client.py
Alternative Method (for debugging): Run server and client separately: 1. Start the MCP server: ```bash
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.