TechMCP - PSG College of Technology MCP Server

TechMCP - PSG College of Technology MCP Server

Enables AI assistants to access PSG College of Technology e-campus portal data including CA marks, attendance records, timetable schedules, and course information through natural language queries.

Category
访问服务器

README

🎓 TechMCP - PSG College of Technology MCP Server

MCP Python FastMCP PSG Tech

TechMCP is a comprehensive Model Context Protocol (MCP) server that seamlessly integrates with PSG College of Technology's e-campus portal. It provides AI assistants like Claude, Cursor, and Raycast with direct access to student academic data including CA marks, attendance records, and timetable information.

🚀 Server hosting coming soon! No more local setup required.

✨ Features

📊 CA Marks & Assessment Tools

  • CA1 & CA2 Marks: Fetch continuous assessment marks for individual subjects or all subjects
  • Assignment Marks: Get assignment scores for theory courses
  • Tutorial Marks: Access tutorial marks and MPT scores
  • Subject Search: Search by subject code or subject name
  • Health Monitoring: Built-in health checks for scraper status

📅 Attendance Management

  • Attendance Percentage: Real-time attendance tracking for all subjects
  • Present/Absent Hours: Detailed hour-wise attendance breakdown
  • Bunk Calculator: Smart calculation of available bunks while maintaining minimum attendance
  • Subject-wise Analysis: Individual subject attendance details
  • Attendance Alerts: Monitor attendance status across all courses

🕒 Smart Timetable System

  • Live Schedule: Get current day's complete timetable
  • Next Class: Find your immediate next class with location details
  • Remaining Classes: See what's left for today
  • Weekly Schedule: Complete week view with all subjects
  • Break Schedule: Track break times and current break status
  • Tomorrow's Schedule: Plan ahead with next day's timetable
  • Day-specific Schedule: Get timetable for any day of the week

🎯 Course Management

  • Course Directory: Complete list of all available courses
  • Course Search: Find courses by code or name
  • Detailed Course Info: Get comprehensive course details including timetable
  • Subject Mapping: Automatic mapping between course codes and names

🔮 Coming Soon

  • CGPA Calculator: Calculate current CGPA and predict future performance
  • CA Schedule: Upcoming continuous assessment dates
  • Semester Schedule: Important academic dates and deadlines

📋 Prerequisites

  • Python 3.10+
  • Valid PSG Tech e-campus credentials
  • Internet connection for portal access

🚀 Installation

1. Clone the Repository

git clone https://github.com/codit04/TechMCP.git
cd TechMCP

2. Install Dependencies

pip install -r requirements.txt

3. Configure Credentials

⚠️ IMPORTANT: You must update the config.json file with your PSG Tech e-campus credentials:

{
    "credentials": {
        "roll_number": "YOUR_ACTUAL_ROLL_NUMBER",
        "password": "YOUR_ACTUAL_PASSWORD"
    },
    "server": {
        "host": "localhost",
        "port": 8080,
        "sse_mode": true
    }
}

4. Start the Server

python server.py

The server will start on http://127.0.0.1:8080/sse and be ready for MCP connections.

🔗 Connecting to AI Assistants

🖱️ Cursor IDE

  1. Create the MCP configuration directory:
mkdir -p ~/.cursor
  1. Create ~/.cursor/mcp.json with the following content:
{
  "mcpServers": {
    "techmcp": {
      "url": "http://127.0.0.1:8080/sse",
      "name": "TechMCP - PSG Tech Integration",
      "transport":"sse"
    }
  }
}
  1. Restart Cursor IDE
  2. The server will appear in your MCP settings
  3. Start asking questions like: "What are my CA1 marks?" or "What's my next class?"

🤖 Claude Desktop

  1. Install the server locally:
# From the TechMCP directory
mcp install server.py
  1. Restart Claude Desktop
  2. The TechMCP server will be available in Claude's tools panel
  3. Ask Claude about your academic data directly!

Raycast

  1. Ensure the server is running on http://127.0.0.1:8080/sse
  2. Install a compatible MCP extension for Raycast
  3. Configure the server URL in Raycast settings
  4. Access your academic data through Raycast commands

🛠️ Available Tools

Marks & Assessment

  • get_ca1_subject_mark - Get CA1 mark for a specific subject
  • get_ca2_subject_mark - Get CA2 mark for a specific subject
  • get_ca1_all_marks - Get CA1 marks for all subjects
  • get_ca2_all_marks - Get CA2 marks for all subjects
  • get_assignment_mark_by_subject - Get assignment marks for a subject
  • get_all_assignment_marks - Get all assignment marks
  • get_tutorial_marks_by_subject - Get tutorial marks for a subject
  • get_all_tutorial_marks - Get all tutorial marks
  • list_available_subjects - List all available subjects
  • health_check - Check scraper health status

Attendance Management

  • get_subject_attendance_percentage - Get attendance % for a subject
  • get_all_attendance_percentages - Get attendance % for all subjects
  • get_subject_absent_hours - Get absent hours for a subject
  • get_all_absent_hours - Get absent hours for all subjects
  • get_subject_present_hours - Get present hours for a subject
  • get_all_present_hours - Get present hours for all subjects
  • get_subject_available_bunks - Calculate available bunks for a subject
  • get_all_available_bunks - Calculate available bunks for all subjects

Timetable & Schedule

  • get_next_class - Get your next scheduled class
  • get_todays_schedule - Get today's complete schedule
  • get_schedule_from_now - Get remaining classes for today
  • get_tomorrows_schedule - Get tomorrow's schedule
  • get_schedule_for_day - Get schedule for a specific day
  • get_weekly_schedule - Get complete weekly timetable
  • get_break_schedule - Get break times and current status

Course Information

  • get_all_courses - Get list of all courses
  • search_courses - Search courses by name or code
  • get_course_details - Get detailed course information

💡 Usage Examples

With Cursor/Claude

"What are my CA1 marks for Data Structures?"
"Show me my attendance percentage for all subjects"
"What's my next class?"
"How many hours can I bunk in Computer Networks while maintaining 75% attendance?"
"What's my complete schedule for tomorrow?"

Direct API Usage

# Get CA1 marks for a subject
curl -X POST http://127.0.0.1:8080/mcp \
  -H "Content-Type: application/json" \
  -d '{"method": "get_ca1_subject_mark", "params": {"subject": "20XTO1"}}'

🤝 Contributing

We welcome contributions to improve TechMCP! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

🐛 Issues & Suggestions

🙏 Acknowledgments

⚖️ Legal & Privacy

  • This project is for educational purposes only
  • Uses your own credentials to access your own data
  • No data is stored or transmitted to external servers
  • Respects PSG Tech's e-campus terms of service
  • Open source and transparent

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔧 Technical Details

  • Framework: FastMCP 2.0+
  • Web Scraping: Beautiful Soup 4, httpx
  • Data Models: Pydantic
  • Transport: Server-Sent Events (SSE)
  • Authentication: Session-based with CSRF protection

<div align="center">

Made with ❤️ for PSG Tech Students

Simplifying academic data access through AI

⭐ Star this repo | 🐛 Report Bug | 💬 Join Discord

</div>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选