Skip to main content
Glama
Saumyakhushlani

MANIT ERP MCP Server

README.md
# MANIT ERP MCP Server

Simple MCP server (stdio transport) that exposes a tool to fetch student result/CGPA data from MANIT ERP APIs.

## Features

- MCP tool: `get-cgpa-result`
- Logs in to ERP with provided `username` and `password`
- Fetches student result using token from login response
- Optional manual override for `studentid` and `programid`
- Automatic fallback retry for certificate verification errors

## Prerequisites

- Node.js 18+
- npm

## Install

```bash
npm install
```

## Run Locally

```bash
node index.js
```

You should see:

`MCP server connected (stdio).`

## Tool API

### Tool Name

`get-cgpa-result`

### Input

```json
{
  "username": "string (required)",
  "password": "string (required)",
  "studentid": "string (optional)",
  "programid": "string (optional)",
  "erpApiUrl": "string (optional, default: https://erpapi.manit.ac.in)",
  "insecureTls": "boolean (optional)"
}
```

### Notes

- If `studentid` / `programid` are not passed, values from login response are used.
- If TLS certificate verification fails, the tool automatically retries in insecure mode.
- `insecureTls: true` forces insecure TLS mode on first attempt.

## Claude Desktop MCP Config (Windows)

Add this server in Claude Desktop MCP config:

```json
{
  "mcpServers": {
    "manit-erp": {
      "command": "node",
      "args": ["C:\\Users\\saumya\\mcp\\student-mcp-server\\index.js"]
    }
  }
}
```

Then restart Claude Desktop.

## Example Claude Prompt

Use the MCP tool `get-cgpa-result` with:

```json
{
  "username": "your_erp_username",
  "password": "your_erp_password"
}
```