mcp-student-assistance
๐ Student Assistant MCP (Model Context Protocol) Server & Groq Client
A complete, production-ready Python MCP project built with FastMCP and Groq LLM Client that provides intelligent student assistance for academic calculations, attendance tracking, marks analysis, and syllabus reading.
๐ Project Structure
student_assistant_mcp/
โโโ server.py # Main FastMCP server registering all tools
โโโ client_groq.py # Groq LLM client with MCP tool-calling loop
โโโ requirements.txt # Python dependencies (mcp, groq, pandas, pypdf)
โโโ .env.example # Environment template
โโโ tools/
โ โโโ __init__.py
โ โโโ calculator.py # Prompt 2: Math, GPA, and attendance deficit tool
โ โโโ attendance.py # Prompt 3: Attendance CSV reader & defaulter tool
โ โโโ marks.py # Prompt 4: Marks CSV reader & averages calculator
โ โโโ pdf_reader.py # Prompt 5: PyPDF syllabus extractor & keyword search
โโโ data/
โโโ attendance.csv # Student attendance records dataset
โโโ marks.csv # Student marks, totals, grades, and ranks
โโโ sample_syllabus.pdf # Course syllabus document๐ Quickstart Guide
1. Prerequisites
Python 3.10+ installed
A free Groq API Key (for
client_groq.py)
2. Create Virtual Environment & Install Dependencies
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
# On Linux/macOS:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
# Install required packages
pip install -r requirements.txt3. Configure Environment Variables
cp .env.example .env
# Edit .env and paste your GROQ_API_KEY4. Run the FastMCP Server
python server.pyOr run in development mode with MCP Inspector:
mcp dev server.py5. Run the Groq Student Assistant Client
In a separate terminal:
python client_groq.py๐ ๏ธ MCP Tools Overview
Tool Name | Prompt | Description |
| Prompt 2 | Safe math evaluation, arithmetic, and GPA formulas |
| Prompt 2 | Calculates consecutive classes needed to reach 75% |
| Prompt 3 | Look up student attendance from |
| Prompt 3 | List all students with attendance below 75% |
| Prompt 4 | Retrieve subject scores, grade, and rank from |
| Prompt 4 | Compute class averages and top score per subject |
| Prompt 5 | Extract syllabus text using |
| Prompt 5 | Search syllabus for grading policy or exam dates |
๐งช Example Queries for the Student Assistant
"What is Alice Johnson's attendance and marks rank?"
"Bob Smith has 68% attendance. How many more classes must he attend to reach 75%?"
"What are the class averages in Computer Science and Math?"
"Search the syllabus PDF for the final exam date and grading breakdown."
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Keerthana15-bit/mcp-student-assistance'
If you have feedback or need assistance with the MCP directory API, please join our Discord server