Skip to main content

Credential-based MCP server for ITU Ninova: read courses, announcements, files, assignments, grades, attendance, and deadlines from Claude, Cursor, Codex, and other MCP clients.

Project description

Ninova MCP

Ninova MCP is a credential-based Model Context Protocol server for ITU Ninova. It lets MCP-compatible AI clients such as Claude, OpenClaw, Cursor, and Codex read your own Ninova courses, announcements, files, assignments, grades, message boards, attendance, and deadlines.

It logs in with NINOVA_USERNAME and NINOVA_PASSWORD, opens its own temporary Ninova session, and exposes tools for:

  • reading the dashboard
  • listing courses
  • resolving a course by code, title, path, or URL
  • listing a course's direct Ninova sections/routes
  • getting a course's announcements
  • getting a course's class files
  • getting a course's lesson files
  • getting a course's assignments with detail pages
  • getting a course's class information
  • getting a course's grades
  • getting a course's message board topics and threads
  • getting a course's attendance
  • getting a course's remote learning page
  • building a combined course overview
  • getting dashboard announcements
  • getting dashboard assignments with detail pages
  • reading any Ninova page
  • crawling a course tree
  • downloading files
  • snapshotting pages
  • comparing snapshots to track changes
  • syncing all courses into a local tracking state
  • listing detected updates
  • listing upcoming deadlines

It does not read Chrome cookies or reuse browser profiles.

Easiest: one-click install for Claude Desktop (no terminal)

If you just want it to work, use the Claude Desktop extension. No commands, no config files.

  1. Install Python 3.11+ once if you don't have it — python.org/downloads (the installer is a normal "next, next, finish"). This is the only prerequisite.
  2. Download the bundle for your computer from the latest release:
    • macOS (Apple Silicon / M1–M4): ninova-mcp-*-darwin-arm64.mcpb
    • macOS (Intel): ninova-mcp-*-darwin-x86_64.mcpb
    • Windows: ninova-mcp-*-windows-amd64.mcpb
  3. Double-click the .mcpb file (or open Claude Desktop → Settings → Extensions → Install Extension). Claude Desktop opens an install dialog.
  4. Type your İTÜ username and password into the form and click Install. Your password is stored in your operating system's secure keychain and is only ever sent to ninova.itu.edu.tr.
  5. Start a chat and ask, for example, "Ninova'da yaklaşan ödev teslimlerim neler?"

That's it. To confirm it's connected, ask Claude to run the auth_status tool.

Alternative: paste this prompt to your AI assistant

Copy the block below into ChatGPT, Claude, Cursor, Codex, or any chat AI. It will install the server and configure your MCP client end-to-end.

Install the ninova-mcp MCP server (PyPI: ninova-mcp, https://github.com/hikmedit/ninova-mcp).

1. Install from PyPI. Prefer `pipx install ninova-mcp`. If pipx is not
   available, `pip install --user ninova-mcp` is fine — both put a
   `ninova-mcp` command on my PATH.
2. Add a `ninova` server to my MCP client's config — command `ninova-mcp`,
   env `NINOVA_USERNAME` and `NINOVA_PASSWORD`. Detect which client I use
   and write the config in the right place. Merge into existing
   `mcpServers`; do not overwrite other servers. Do NOT ask me for
   credentials — leave the values as placeholders, unless I already
   pasted real credentials in this chat.
3. Tell me to fill in NINOVA_USERNAME and NINOVA_PASSWORD if I haven't,
   then restart the client and call the `auth_status` tool to verify.

Manual install

You need Python 3.11+.

Step 1: Install the server

pipx install ninova-mcp

This puts a ninova-mcp command on your PATH. (Alternatives: uv tool install ninova-mcp or pip install --user ninova-mcp.)

Step 2: Tell your MCP client about it

Open your client's MCP config file (paths below) and add the ninova entry. If mcpServers already exists, merge — do not replace it.

Claude Desktop

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "ninova": {
      "command": "ninova-mcp",
      "env": {
        "NINOVA_USERNAME": "your_itu_username",
        "NINOVA_PASSWORD": "your_itu_password"
      }
    }
  }
}

Claude Code — one shell command, no manual editing:

claude mcp add ninova ninova-mcp -e NINOVA_USERNAME=your_itu_username -e NINOVA_PASSWORD=your_itu_password

Cursor.cursor/mcp.json (per project) or ~/.cursor/mcp.json (global). Use the same JSON block as Claude Desktop.

Codex CLI~/.codex/config.toml:

[mcp_servers.ninova]
command = "ninova-mcp"

[mcp_servers.ninova.env]
NINOVA_USERNAME = "your_itu_username"
NINOVA_PASSWORD = "your_itu_password"

Step 3: Restart the client and try it

Restart your MCP client. Ask the model to call auth_status. It should report that credentials are present and a Ninova session works.

Supported priority clients: Claude Desktop / Claude Code, Cursor, Codex CLI, OpenClaw.

See also: Installation guide · Security notes · Example configs

Security Notice

This project uses credentials that you provide locally. Never commit .env, downloads, course files, submissions, screenshots, or tracking state. Prefer local stdio MCP. If you deploy the remote HTTP server for Claude.ai custom connectors, use HTTPS and a long random private MCP path.

Request Model

Ninova appears to be classic ASP.NET WebForms. In practice this server now prefers request-level access to Ninova's own routes such as:

  • /Sinif/<id>.<id>/Notlar
  • /Sinif/<id>.<id>/MesajPanosu
  • /Sinif/<id>.<id>/Yoklama
  • /Sinif/<id>.<id>/UzaktanEgitim

For interactive actions Ninova uses same-page form POST requests with __VIEWSTATE, __EVENTTARGET, and related WebForms fields rather than a clean public JSON API.

Requirements

  • Python 3.11+
  • requests
  • beautifulsoup4
  • lxml
  • mcp
  • uvicorn
  • Optional: playwright for login fallback when the form flow changes

Configuration

Only two variables are required:

NINOVA_USERNAME=your_username
NINOVA_PASSWORD=your_password

The server reads them from the process environment. If a .env file exists in the current working directory (or any parent), NINOVA_* variables are loaded from it without overriding variables already set in the environment.

Advanced (optional)

These are not needed for normal local use. Set them only if you need to override defaults or run the remote HTTP transport.

Local overrides:

export NINOVA_BASE_URL="https://ninova.itu.edu.tr"   # default
export NINOVA_STATE_DIR="/absolute/path/to/.ninova_state"
export NINOVA_DISABLE_PLAYWRIGHT_FALLBACK="1"
export NINOVA_ENV_FILE="/absolute/path/to/.env"

Remote HTTP server (only for self-hosted Claude.ai custom connectors):

export NINOVA_REMOTE_HOST="0.0.0.0"
export NINOVA_REMOTE_PORT="8000"
export NINOVA_REMOTE_MCP_PATH="/mcp-choose-a-long-random-secret"
export NINOVA_PUBLIC_BASE_URL="https://your-public-domain.example.com"
export NINOVA_ALLOWED_HOSTS="your-public-domain.example.com"
export NINOVA_ALLOWED_ORIGINS="https://claude.ai,https://claude.com"

Run

After installing the package:

ninova-mcp

This starts the stdio MCP server. It is normal for it to wait silently because your MCP client talks to it over stdin/stdout.

To run from a source checkout without installing:

PYTHONPATH=src python3 -m ninova_mcp

Run Remote HTTP Server

To expose the server for Claude Cowork / Claude.ai, run the remote Streamable HTTP transport:

ninova-mcp-remote

By default this starts an HTTP server on 0.0.0.0:8000.

Useful endpoints:

  • GET /healthz: health check
  • POST/GET <NINOVA_REMOTE_MCP_PATH>: MCP endpoint for remote connectors

Example:

export NINOVA_REMOTE_MCP_PATH="/mcp-6f8f94c5b6bb4b8f8f6d2f8b20f28e9f"
export NINOVA_PUBLIC_BASE_URL="https://ninova-mcp.example.com"
export NINOVA_ALLOWED_HOSTS="ninova-mcp.example.com"
export NINOVA_ALLOWED_ORIGINS="https://claude.ai,https://claude.com"
ninova-mcp-remote

Then your connector URL is:

https://ninova-mcp.example.com/mcp-6f8f94c5b6bb4b8f8f6d2f8b20f28e9f

This server currently uses an authless remote MCP setup, so for personal use you should choose a long random NINOVA_REMOTE_MCP_PATH and keep the full URL private. OAuth is not implemented yet.

Docker

Build and run:

docker build -t ninova-mcp .
docker run --rm -p 8000:8000 \
  -e NINOVA_USERNAME="your_username" \
  -e NINOVA_PASSWORD="your_password" \
  -e NINOVA_REMOTE_MCP_PATH="/mcp-choose-a-long-random-secret" \
  -e NINOVA_PUBLIC_BASE_URL="https://your-public-domain.example.com" \
  -e NINOVA_ALLOWED_HOSTS="your-public-domain.example.com" \
  ninova-mcp

Claude Cowork / Claude.ai

Anthropic's remote MCP support requires a publicly reachable HTTP server; local stdio servers are not available in Cowork.

To use this connector in Claude Cowork:

  1. Deploy this repo to a public host.
  2. Set NINOVA_USERNAME, NINOVA_PASSWORD, NINOVA_REMOTE_MCP_PATH, NINOVA_PUBLIC_BASE_URL, and NINOVA_ALLOWED_HOSTS.
  3. Confirm https://your-domain/healthz returns 200.
  4. In Claude, add a custom connector and paste the full remote MCP URL: https://your-domain<your-random-mcp-path>
  5. Enable the tools you want to expose.

Anthropic references:

Example MCP Config

After pipx install ninova-mcp, the minimal local stdio entry is:

{
  "mcpServers": {
    "ninova": {
      "command": "ninova-mcp",
      "env": {
        "NINOVA_USERNAME": "your_username",
        "NINOVA_PASSWORD": "your_password"
      }
    }
  }
}

Exposed Tools

  • auth_status: Check whether credentials exist and whether a fresh Ninova session can be created.
  • refresh_session: Force a new login with the configured credentials.
  • get_dashboard: Read /Kampus1 and return dashboard sections, recent items, and course list.
  • list_courses: Return the discovered courses from the dashboard.
  • get_courses: Alias for list_courses.
  • get_course_announcements: Return announcements for a given course. Accepts course code, title, path, or full URL.
  • get_course_class_files: Return structured entries from Sınıf Dosyaları, optionally recursively.
  • get_course_lesson_files: Return structured entries from Ders Dosyaları, optionally recursively.
  • get_course_assignments: Return assignments for a course and fetch each assignment's detail page.
  • get_course_info: Return structured data from Sınıf Bilgileri.
  • get_course_sections: Return the course routes exposed on the course home page.
  • get_course_grades: Return structured data from Notlar.
  • get_course_message_board: Return structured topics from Mesaj Panosu, optionally with thread details.
  • get_course_attendance: Return structured data from Yoklama.
  • get_course_remote_learning: Return structured data from Uzaktan Eğitim.
  • get_course_overview: Return a combined live or tracked overview of a course.
  • get_dashboard_announcements: Return the announcements listed in /Kampus?1/Duyurular.
  • get_dashboard_assignments: Return the assignments listed in /Kampus?1/Odevler and fetch each detail page.
  • sync_all_courses: Save a local snapshot for every visible course and detect changes since the previous sync.
  • get_updates: Return recently detected changes from the local tracking state.
  • get_upcoming_deadlines: Return upcoming assignment deadlines from the local tracking state.
  • read_page: Read and structure any Ninova HTML page.
  • crawl_course: Inventory internal pages and downloadable resources inside a course.
  • download_resource: Download a file or page response to disk.
  • snapshot_page: Save a structured snapshot of a page for later tracking.
  • diff_snapshot: Compare the current page against a stored snapshot.

Notes

  • Sessions are created by normal login flow and held in process memory.
  • The server automatically retries once with a fresh login if a session expires.
  • Downloaded files are stored inside the requested output directory. The default is ~/.ninova_state/downloads.
  • Snapshots are stored under ~/.ninova_state/snapshots unless NINOVA_STATE_DIR is set.
  • Course tracking state is stored under ~/.ninova_state/tracking-state.json unless NINOVA_STATE_DIR is set.
  • The remote HTTP entrypoint is implemented with the official Python MCP SDK's Streamable HTTP server support.

Tests

PYTHONPATH=src python3 -m unittest discover -s tests -v

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ninova_mcp-0.1.3.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ninova_mcp-0.1.3-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file ninova_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: ninova_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ninova_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 750e2d6944e85653cd73be29d953e06399b30372136cea3b9a16425a8a623a41
MD5 60883ece32a3c3eb4ec5f061cc255d2d
BLAKE2b-256 6b5814442e4f49d0d6ea124b8d15c1c3a667c7e1a108dbfc1e6fb92a06166798

See more details on using hashes here.

File details

Details for the file ninova_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ninova_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ninova_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41c6d5dc17a1e2177c4fe04b49d2e9ef838c1fb2181a3d67f522972ffbe0292c
MD5 8caeb832ea4cfa71e5ea9c8e194c9cbb
BLAKE2b-256 c5de9597a1cc37d6dac90e45f91a73f01afdfac196ffdaf942de1349793e3d73

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page