Labsco
hanifisenturk logo

SABIS MCP Server

β˜… 2

from hanifisenturk

Access academic grades from the Sakarya University SABIS system via automated web scraping.

πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

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

πŸ”§ Development

Running in Development Mode

Copy & paste β€” that's it
# Install dependencies
npm install

# Build the project
npm run build

# Test the server
node build/index.js

Project Structure

Copy & paste β€” that's it
sabis-mcp-server/
β”œβ”€β”€ src/
β”‚   └── index.ts          # Main MCP server implementation
β”œβ”€β”€ build/                # Compiled JavaScript output
β”œβ”€β”€ package.json         # Dependencies and scripts
β”œβ”€β”€ tsconfig.json        # TypeScript configuration
└── README.md           # This file

Key Components

  • MCP Server Setup: Configured using @modelcontextprotocol/sdk
  • Authentication: 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

πŸ“š 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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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


Note: This is an unofficial tool and is not affiliated with Sakarya University or the official SABIS system.