MCP Student Assistant

MCP Student Assistant

An MCP server that provides student-focused tools such as attendance lookup, marks calculation, notes search, college rules access, and a math calculator, with a natural-language CLI client powered by Groq's Llama 3.3 70B.

Category
Visit Server

README

šŸŽ“ MCP Student Assistant

An AI-powered Student Assistant built with the Model Context Protocol (MCP). It exposes a set of student-focused tools — attendance lookup, marks calculator, notes search, college rules, and a math calculator — through an MCP server, with a companion CLI client powered by Groq's Llama 3.3 70B for natural-language interaction.


✨ Features

Tool Description
Calculator Evaluate arbitrary math expressions (e.g. 45*12+5)
Attendance Look up a student's attendance record from attendance.csv
Marks Compute a student's average across Math, Physics, Chemistry, Java & Python
Notes Search Search for keywords inside notes.pdf
College Rules Display all college rules from rules.txt

For questions that don't match any tool, the client falls back to Groq's Llama 3.3 70B model for general-purpose answers.


šŸ“ Project Structure

MCP/
ā”œā”€ā”€ server.py          # MCP server — registers all tools
ā”œā”€ā”€ client.py          # CLI client — keyword routing + Groq fallback
ā”œā”€ā”€ attendance.py      # Attendance lookup (pandas + CSV)
ā”œā”€ā”€ marks.py           # Average marks calculator (pandas + CSV)
ā”œā”€ā”€ notes.py           # Keyword search across PDF notes
ā”œā”€ā”€ pdf_reader.py      # PDF text extraction (pypdf)
ā”œā”€ā”€ calculator.py      # Simple eval-based calculator
ā”œā”€ā”€ rules.py           # Reads college rules from a text file
ā”œā”€ā”€ requirements.txt   # Python dependencies
ā”œā”€ā”€ .env               # Environment variables (GROQ_API_KEY)
└── data/
    ā”œā”€ā”€ attendance.csv  # Student attendance records
    ā”œā”€ā”€ marks.csv       # Student marks (5 subjects)
    ā”œā”€ā”€ notes.pdf       # Course notes (PDF)
    ā”œā”€ā”€ notes.txt       # Course notes (plain text)
    ā”œā”€ā”€ rules.txt       # College rules
    └── students.csv    # Student roster

šŸš€ Getting Started

Prerequisites

1. Clone the repository

git clone <repo-url>
cd MCP

2. Create a virtual environment (recommended)

python -m venv venv
# Windows
venv\Scripts\activate
# macOS / Linux
source venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

4. Configure environment variables

Create a .env file in the project root (one is already included):

GROQ_API_KEY=your_groq_api_key_here

5. Run the application

Option A — MCP Server (exposes tools over the MCP protocol):

python server.py

Option B — CLI Client (interactive chat with keyword routing + Groq fallback):

python client.py

šŸ’¬ Usage Examples

Ask : What is Rahul's attendance?
→ {'Name': 'Rahul', 'Days_Present': 42, 'Total_Days': 50, ...}

Ask : Show me Priya's average marks
→ Average = 82.4

Ask : What are the college rules?
→ (displays all rules from rules.txt)

Ask : Search notes for machine learning
Keyword : machine learning
→ (matching lines from notes.pdf)

Ask : Calculate 25+50*2
→ 125

Ask : What is the capital of France?
→ (answered by Groq Llama 3.3 70B)

Ask : exit
→ (exits the program)

šŸ› ļø Tech Stack


šŸ“ License

This project is for educational purposes.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured