MCP Student Assistant
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Student AssistantWhat is Rahul's attendance?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š 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. |
Attendance | Look up a student's attendance record from |
Marks | Compute a student's average across Math, Physics, Chemistry, Java & Python |
Notes Search | Search for keywords inside |
College Rules | Display all college rules from |
For questions that don't match any tool, the client falls back to Groq's Llama 3.3 70B model for general-purpose answers.
Related MCP server: Personal Toolkit MCP Server
š 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
Python 3.10+
A Groq API key (free tier available)
1. Clone the repository
git clone <repo-url>
cd MCP2. Create a virtual environment (recommended)
python -m venv venv
# Windows
venv\Scripts\activate
# macOS / Linux
source venv/bin/activate3. Install dependencies
pip install -r requirements.txt4. Configure environment variables
Create a .env file in the project root (one is already included):
GROQ_API_KEY=your_groq_api_key_here5. Run the application
Option A ā MCP Server (exposes tools over the MCP protocol):
python server.pyOption 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
MCP (Model Context Protocol) ā tool registration & server
Groq ā LLM inference (Llama 3.3 70B)
pandas ā CSV data processing
pypdf ā PDF text extraction
python-dotenv ā environment variable management
š License
This project is for educational purposes.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA demo MCP server that enables users to interact with various tools through natural language, including note management, weather queries, calculations, file operations, and shell commands. Uses Ollama for intent detection and structured command parsing from free text input.-
- FlicenseNot gradedqualityDmaintenanceA local MCP server providing text utilities, math functions, and a persistent todo list, enabling task automation via natural language in Claude Desktop.-
- AlicenseAqualityCmaintenanceAn MCP server and CLI for Ed Discussion that gives LLMs access to threads, comments, attendance, moderation, file uploads, and instant local search through 43 tools.432MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that provides math tools (add, subtract, multiply) and a weather tool, with a LangChain agent client that uses Groq to answer natural language queries.-