SABIS MCP Server ๐
A Model Context Protocol (MCP) Server for accessing academic grades from the Sakarya University SABIS (Student Information System). This server enables AI assistants and applications to securely retrieve student academic information through automated web scraping.
๐ Features
๐ Secure Authentication: Uses environment variables for credentials
๐ Comprehensive Grade Retrieval: Fetches detailed academic information including:
Course codes and names
Assessment types (Midterm, Quiz, Assignments, Projects, Finals)
Grade percentages and weights
Final letter grades
Academic year and semester information
๐ค MCP Integration: Compatible with Claude, Cursor, and other MCP-enabled AI assistants
๐ Headless Browser Automation: Uses Puppeteer for reliable web scraping
โก Real-time Data: Fetches live data directly from SABIS system
๐ ๏ธ Technology Stack
TypeScript - Type-safe development
Puppeteer - Web scraping and browser automation
Model Context Protocol SDK - MCP server implementation
Node.js - Runtime environment
๐ Requirements
Node.js 18+
TypeScript 5.8+
Valid SABIS credentials (Sakarya University student account)
๐ Installation
Clone the repository:
git clone https://github.com/your-username/sabis-mcp-server.git cd sabis-mcp-serverInstall dependencies:
npm installSet up environment variables: Create a
.envfile in the root directory:USERNAME=your_sabis_username PASSWORD=your_sabis_passwordBuild the project:
npm run build
โ๏ธ Configuration
Environment Variables
Variable | Description | Required |
| Your SABIS student ID/username | โ Yes |
| Your SABIS account password | โ Yes |
MCP Client Setup
You have two options for configuring credentials with your MCP client:
Option 1: Environment Variables in MCP Configuration
Add the server to your MCP client configuration with credentials directly in the config:
Option 2: Using .env File
Alternatively, create a .env file in the project directory and remove the env property from the MCP configuration:
Create
MCP Configuration:
๐ก Tip: Option 1 is more convenient for MCP clients like Cursor, while Option 2 is better for keeping credentials separate from configuration files.
๐ฏ Usage
Once configured, you can use the MCP server with compatible AI assistants:
Available Tools
get-grades
Retrieves academic grades from SABIS system.
Example Usage:
Response Format:
๐ง Development
Running in Development Mode
Project Structure
Key Components
MCP Server Setup: Configured using
@modelcontextprotocol/sdkAuthentication: Environment-based credential management
Web Scraping: Puppeteer-based automation for SABIS portal
Data Extraction: DOM parsing for grade information
Error Handling: Comprehensive error management and logging
๐ก๏ธ Security & Privacy
Credentials: Stored securely in environment variables
Headless Operation: No UI exposure of sensitive information
HTTPS: All communication with SABIS uses secure connections
No Data Storage: Grades are fetched in real-time, not stored locally
Session Management: Browser sessions are properly cleaned up
๐จ Troubleshooting
Common Issues
"Username and password are required"
Ensure environment variables
USERNAMEandPASSWORDare setCheck
.envfile exists and contains correct credentials
"Login failed"
Verify SABIS credentials are correct
Check if SABIS portal is accessible
Ensure university network access if required
Browser/Puppeteer errors
Install Chromium dependencies on Linux:
sudo apt-get install -y libgbm-dev libnss3-dev libxss1 libasound2
๐ API Reference
Tools
get-grades
Authenticates with SABIS and retrieves academic grade information.
Parameters: None (uses environment variables)
Returns:
Academic year and semester
Course information with grades
Assessment breakdown with percentages
Final grades where available
๐ค Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
๐ License
This project is licensed under the ISC License - see the LICENSE file for details.
โ ๏ธ Disclaimer
This tool is for educational purposes and personal use only. Users are responsible for:
Complying with university terms of service
Protecting their account credentials
Using the tool responsibly and ethically
The developers are not responsible for any misuse or consequences arising from the use of this software.
๐จโ๐ป Author
Mehmet Hanifi ลentรผrk
๐ Related Projects
Model Context Protocol - Official MCP documentation
Puppeteer - Browser automation library
Claude MCP Integration - Using MCP with Claude
Note: This is an unofficial tool and is not affiliated with Sakarya University or the official SABIS system.