SABIS MCP Server

SABIS MCP Server

Enables AI assistants to securely retrieve academic grades and course information from Sakarya University's SABIS student information system through automated web scraping.

Category
Visit Server

README

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

  1. Clone the repository:

    git clone https://github.com/your-username/sabis-mcp-server.git
    cd sabis-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Set up environment variables: Create a .env file in the root directory:

    USERNAME=your_sabis_username
    PASSWORD=your_sabis_password
    
  4. Build the project:

    npm run build
    

βš™οΈ Configuration

Environment Variables

Variable Description Required
USERNAME Your SABIS student ID/username βœ… Yes
PASSWORD 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:

{
  "mcpServers": {
    "sabis-mcp-server": {
      "command": "node",
      "args": [
        "/path/to/sabis-mcp-server/build/index.js"
      ],
      "env": {
        "USERNAME": "your_student_number",
        "PASSWORD": "your_password"
      }
    }
  }
}

Option 2: Using .env File

Alternatively, create a .env file in the project directory and remove the env property from the MCP configuration:

Create .env file:

USERNAME=your_student_number
PASSWORD=your_password

MCP Configuration:

{
  "mcpServers": {
    "sabis-mcp-server": {
      "command": "node",
      "args": [
        "/path/to/sabis-mcp-server/build/index.js"
      ]
    }
  }
}

πŸ’‘ 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:

// Through MCP-enabled AI assistant
"Get my grades from SABIS"

Response Format:

Login successful! πŸŽ“

Academic Year: 2024 - Semester: Bahar

=== SWE310 - MOBİL UYGULAMA GELİŞTİRME ===
Grup: 1. Γ–ΔŸretim A Grubu
β€’ Ara SΔ±nav (45%): 95
β€’ Γ–dev (5%): 100
β€’ Final (50%): 85
πŸ“‹ Final Grade: AA

πŸ”§ Development

Running in Development Mode

# Install dependencies
npm install

# Build the project
npm run build

# Test the server
node build/index.js

Project Structure

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

🚨 Troubleshooting

Common Issues

"Username and password are required"

  • Ensure environment variables USERNAME and PASSWORD are set
  • Check .env file 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

  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.

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
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
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
VeyraX MCP

VeyraX MCP

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

Official
Featured
Local
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
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
Qdrant Server

Qdrant Server

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

Official
Featured
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
E2B

E2B

Using MCP to run code via e2b.

Official
Featured