MCP-Server-V3
The MCP Server AI Chrome Extension allows users to perform complex BODMAS operations via a lightweight Chrome Extension paired with a Flask-based MCP Server. It offers real-time computation of mathematical expressions with a focus on easy communication and user interaction.
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
-
User Interaction:
- User opens the Chrome Extension popup.
- Enters a math expression (e.g.,
5 * (3 + 2) - 4 / 2
).
-
Chrome Extension (Frontend):
- Captures the user input.
- Sends a
POST
request to the Flask MCP Server API.
-
Flask API (Backend Server):
- Parses the input via
perception.py
. - Uses
decision.py
andaction.py
to compute the correct BODMAS result. - Returns the final output back to the Chrome Extension.
- Parses the input via
-
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