Skip to main content
Glama

๐ŸŽ“ AI-Powered Student Assistant (Model Context Protocol + Groq + Web App)

An interactive, AI-driven educational platform built using Model Context Protocol (MCP), Groq LLM (llama-3.3-70b-versatile), Python 3.11+, and a modern Glassmorphic Web Dashboard.


๐ŸŒŸ Project Features

  • Model Context Protocol (MCP): Standardized protocol connecting AI reasoning with local file tools & calculations.

  • Groq LLM Power: Blazing fast inference for autonomous tool selection and response synthesis.

  • 6 Built-in Educational MCP Tools:

    1. ๐Ÿงฎ Calculator: Evaluates math expressions, percentage weights, and GPA formulas.

    2. ๐Ÿ“Š Attendance Tracker: Analyzes student attendance records from attendance.csv, detects shortages (<75%), and predicts required classes.

    3. ๐Ÿ“ˆ Marks Analyzer: Computes averages, top scores, letter grades, and performance rankings from marks.csv.

    4. ๐Ÿ“„ PDF Reader: Extracts text and searches content from lecture PDF files (notes.pdf).

    5. ๐Ÿ” Lecture Notes Search: Keyword and concept search across course revision notes.

    6. ๐Ÿ“œ College Regulations Checker: Queries official college handbook (rules.txt) for attendance rules, grading scales, and library policies.

  • Interactive Web Interface (Frontend):

    • Dark glassmorphism design with responsive tabs.

    • Live MCP Protocol Visual Trace: Step-by-step pipeline view showing User Prompt -> Groq LLM -> MCP Server -> Tool Run -> Answer.

    • Interactive Analytics Modules: Marks Report Card, Attendance Shortage Predictor, Searchable Rules Explorer, PDF Viewer, and MCP Tool Sandbox.

    • Offline Simulation Mode: Browser fallback engine that works out-of-the-box even before adding an API key!


Related MCP server: Canvas MCP Server

๐Ÿ—๏ธ Architecture Overview

User Query
    โ”‚
    โ–ผ
Frontend Web Dashboard (HTML/CSS/JS)
    โ”‚
    โ–ผ
FastAPI Server (backend/api.py)
    โ”‚
    โ–ผ
Groq LLM (llama-3.3-70b-versatile)
    โ”‚
    โ”œโ”€โ–บ Intercepts Query & Selects Tool
    โ”‚
    โ–ผ
MCP Client (backend/client.py)
    โ”‚
    โ–ผ
MCP Server (backend/server.py via FastMCP)
    โ”‚
    โ”œโ”€โ–บ calculator.py       (Math & GPA)
    โ”œโ”€โ–บ attendance.py       (attendance.csv)
    โ”œโ”€โ–บ marks.py            (marks.csv)
    โ”œโ”€โ–บ pdf_reader.py       (notes.pdf)
    โ”œโ”€โ–บ notes.py            (notes.txt)
    โ””โ”€โ–บ rules.py            (rules.txt)
    โ”‚
    โ–ผ
Groq Formats Natural Language Answer -> User

๐Ÿ“ Project Directory Structure

student_mcp/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ server.py             # FastMCP / MCP Server tool registry
โ”‚   โ”œโ”€โ”€ client.py             # Groq LLM tool router & MCP integrator
โ”‚   โ”œโ”€โ”€ api.py                # FastAPI web bridge for Frontend
โ”‚   โ”œโ”€โ”€ calculator.py         # Calculation logic
โ”‚   โ”œโ”€โ”€ attendance.py         # Attendance CSV parser
โ”‚   โ”œโ”€โ”€ marks.py              # Marks CSV calculator
โ”‚   โ”œโ”€โ”€ pdf_reader.py         # PDF text extractor (PyPDF)
โ”‚   โ”œโ”€โ”€ notes.py              # Lecture notes search
โ”‚   โ”œโ”€โ”€ rules.py              # College handbook search
โ”‚   โ”œโ”€โ”€ prompts.py            # System prompts & tool definitions
โ”‚   โ”œโ”€โ”€ requirements.txt      # Dependencies list
โ”‚   โ”œโ”€โ”€ .env                  # Environment config (GROQ_API_KEY)
โ”‚   โ””โ”€โ”€ data/
โ”‚       โ”œโ”€โ”€ attendance.csv    # Attendance dataset
โ”‚       โ”œโ”€โ”€ marks.csv         # Marks dataset
โ”‚       โ”œโ”€โ”€ notes.pdf         # Sample academic PDF notes
โ”‚       โ”œโ”€โ”€ notes.txt         # Text notes reference
โ”‚       โ””โ”€โ”€ rules.txt         # Official college regulations handbook
โ”‚
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ index.html            # Interactive Student Assistant Web Dashboard
โ”‚   โ”œโ”€โ”€ styles.css            # Dark mode, glassmorphism & micro-animations
โ”‚   โ””โ”€โ”€ app.js                # App logic, chat UI, MCP protocol visual trace & tool sandbox
โ”‚
โ”œโ”€โ”€ server.py                 # Root server entrypoint
โ”œโ”€โ”€ client.py                 # Root terminal CLI client
โ”œโ”€โ”€ create_pdf.py             # Utility to generate notes.pdf
โ”œโ”€โ”€ requirements.txt          # Root dependencies
โ”œโ”€โ”€ .env                      # Root environment variables
โ””โ”€โ”€ README.md                 # Complete documentation

โšก Quick Start Guide

1. Install Dependencies

Ensure Python 3.11+ is installed, then run:

pip install mcp groq pandas pypdf python-dotenv fastapi uvicorn

Or install from requirements file:

pip install -r requirements.txt

2. Configure Groq API Key

  1. Sign up for a free account at https://console.groq.com.

  2. Create an API key (e.g. gsk_xxxxxxxxxxxxxxxx).

  3. Open .env and paste your key:

GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxx

3. Run the Applications

  1. Start the backend FastAPI server:

python backend/api.py

(Runs on http://localhost:8000)

  1. Open frontend/index.html in your web browser!


Option B: Run via Python CLI Client

Start the terminal client directly:

python client.py

Example queries to try:

  • "Calculate Rahul's average marks."

  • "Check Priya's attendance in Computer Networks."

  • "What is the minimum attendance required and condonation rule?"

  • "Search notes for Binary Search Tree."

  • "Calculate (88 * 0.25 + 92 * 0.30 + 95 * 0.45)."


Option C: Run MCP FastMCP Server

python server.py

๐Ÿ› ๏ธ MCP Tools Reference

Tool Name

File

Description

Example Query

calculate_expression

calculator.py

Evaluates math formulas, percentages, GPA

Calculate (92*0.4 + 88*0.6)

check_attendance

attendance.py

Reads attendance.csv, checks shortage (<75%)

Check Rahul's attendance

get_marks_summary

marks.py

Reads marks.csv, computes student averages & grades

Calculate Rahul's average marks

read_pdf_notes

pdf_reader.py

Extracts text from notes.pdf via PyPDF

Search PDF for Dijkstra

search_lecture_notes

notes.py

Topic search across course notes

Search notes for OSI model

search_college_rules

rules.py

Queries rules.txt for policies

What is the attendance condonation policy?


๐ŸŽฏ Verification & Testing

Run unit checks on individual modules:

python backend/calculator.py
python backend/attendance.py
python backend/marks.py
python backend/rules.py

Enjoy building with Model Context Protocol (MCP) and Groq! ๐Ÿš€

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • AI-callable calculators and engineering models with real formulas. No hallucinated math.

  • AI access to your aNotepad online notes: read, search, write, and organize via 22 tools.

  • Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analyโ€ฆ

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/poorvika12-hub/student_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server