MCP-Server-V3

MCP-Server-V3

3.1

If you are the rightful owner of MCP-Server-V3 and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A lightweight AI-powered Chrome Extension connected to a Flask-based MCP Server, enabling users to perform complex BODMAS operations directly from the browser.

MCP Server AI Chrome Extension

A lightweight AI-powered Chrome Extension connected to a Flask-based MCP Server, enabling users to perform complex BODMAS (Bracket, Order, Division, Multiplication, Addition, Subtraction) operations directly from the browser.


โœจ Features

  • ๐Ÿ“š Solve complex mathematical expressions with full BODMAS hierarchy.
  • โšก Instant real-time computation via a backend AI MCP server.
  • ๐Ÿง  Server processes user input with decision-making and memory modules.
  • ๐ŸŒ Simple and clean Chrome Extension interface.
  • ๐Ÿ”Œ Easy communication between Chrome Extension and Flask API server.

๐Ÿ—๏ธ Project Structure

MCP-Server-V3/
โ”‚
โ”œโ”€โ”€ flask-api/
โ”‚   โ”œโ”€โ”€ action.py           # Handles mathematical operations
โ”‚   โ”œโ”€โ”€ decision.py         # Decides actions based on parsed user input
โ”‚   โ”œโ”€โ”€ memory.py           # Maintains session memory and history
โ”‚   โ”œโ”€โ”€ mcp_server.py       # Main Flask server running the API
โ”‚   โ”œโ”€โ”€ mcp_client.py       # Client utilities (if needed)
โ”‚   โ”œโ”€โ”€ models.py           # Defines data models for input/output
โ”‚   โ”œโ”€โ”€ perception.py       # Parses and understands user queries
โ”‚   โ””โ”€โ”€ requirements.txt    # Python dependencies
โ”‚
โ”œโ”€โ”€ chrome-extension/
โ”‚   โ”œโ”€โ”€ manifest.json       # Chrome extension manifest
โ”‚   โ”œโ”€โ”€ popup.html          # Extension popup frontend
โ”‚   โ”œโ”€โ”€ popup.js            # JS logic to interact with backend server
โ”‚
โ”œโ”€โ”€ requirements.txt        # Top-level requirements
โ”‚
โ””โ”€โ”€ README.md               # ๐Ÿ“„ (You are here!)

๐Ÿš€ How It Works

  1. User Interaction:

    • User opens the Chrome Extension popup.
    • Enters a math expression (e.g., 5 * (3 + 2) - 4 / 2).
  2. Chrome Extension (Frontend):

    • Captures the user input.
    • Sends a POST request to the Flask MCP Server API.
  3. Flask API (Backend Server):

    • Parses the input via perception.py.
    • Uses decision.py and action.py to compute the correct BODMAS result.
    • Returns the final output back to the Chrome Extension.
  4. Result Display:

    • Extension receives the response.
    • Displays the computed answer to the user in the popup.

๐Ÿ› ๏ธ Installation Guide

1. Set Up the MCP Server

# Clone the repo
git clone https://github.com/shettysaish20/MCP-Server-V3.git
cd MCP-Server-V3/flask-api

# Install Python dependencies
pip install -r requirements.txt

# Run the server
python mcp_client.py

By default, server runs at: http://localhost:5000/


2. Set Up the Chrome Extension

  • Open chrome://extensions/ in Chrome.
  • Enable Developer Mode.
  • Click Load unpacked and select the chrome-extension/ folder.
  • Extension will appear in the browser toolbar.

3. Usage

  • Click on the MCP extension icon.
  • Type a BODMAS-based math query.
  • View instant computed results!

๐Ÿ“ฆ Dependencies

  • Backend (Python):

    • Flask
    • Flask-Cors

    (All backend libraries are listed in requirements.txt.)

  • Frontend (Extension):

    • Pure JavaScript + HTML/CSS (no external libraries).

๐Ÿš€ Running


๐Ÿ“„ License

MIT License.
Feel free to modify, extend, and enhance as you wish!


๐Ÿ‘จโ€๐Ÿ’ป Author

Built with โค๏ธ by Saish Shetty