Token导航 LogoToken导航TokenDH.com
Instituaion MCP Server logo
运维云端stdio官方级别未说明来源级核验

Instituaion MCP Server

MCP Server

为PMAS干旱农业大学提供的AI集成平台,包含53个工具,实现学术运营、学生服务和行政功能的智能自动化。

工具数

31

提示词数

0

GitHub Stars

5

资源数

0
PythonClaude云端部署Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

SARAMALI15792

提供方

SARAMALI15792

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -e .

详细介绍

🏛️ UAAR大学MCP服务器

拉瓦尔品第干旱农业大学PMAS模型上下文协议服务器

MCP Tools License Status Claude Integration

](https://pypi.org/project/uaar-university-mcp/) ![Documentation](.claude/claude.md) ](https://github.com/SARAMALI15792/InstituaionMCPServer) ![Last Commit](https://github.com/SARAMALI15792/InstituaionMCPServer)

🚀 执行摘要

MCPServer研究所 是一个革命性的AI集成平台,为Claude AI代理提供全面、结构化的访问 拉瓦尔品第干旱农业大学(UAAR)的学术生态系统。随着 53种专用工具 穿过 17个类别,此MCP服务器弥合了人工智能和大学管理之间的差距,实现了学术运营、学生服务和管理功能的智能自动化。

graph TD
    A[Claude AI Agent] --> B[MCP Protocol]
    B --> C{Transport Mode}
    C --> D[Stdio Mode
Claude Code CLI]
    C --> E[HTTP/SSE Mode
Web API]

    D --> F[Tool Registry
53 Specialized Tools]
    E --> F

    F --> G[Core Services Layer]

    G --> H[Academic Operations
Courses, Departments, Merit]
    G --> I[Student Services
Library, Hostel, Transport]
    G --> J[Admission System
Multi-step Forms]
    G --> K[Administrative Tools
Faculty, Events, News]

    H --> L[(SQLite Database
25 Tables)]
    I --> L
    J --> L
    K --> L

    style A fill:#e1f5fe
    style F fill:#f3e5f5
    style L fill:#e8f5e8

*图1:系统架构概述*

🎯 目的和好处

此MCP服务器 将人工智能能力与机构知识联系起来,使Claude AI能够通过模型上下文协议直接访问大学系统。

利益相关者主要利益
学生24/7即时访问课程、成绩、奖学金和录取表格
教职工减少工作量,信息一致,简化管理
机构数字化转型、成本效益、可扩展性
开发者具有最佳实践的开源参考实现

🏗️ 核心架构

flowchart TB
    subgraph "MCP Transport Layer"
        TL1[Claude Desktop
Stdio Transport]
        TL2[Claude Code CLI
Direct Integration]
        TL3[HTTP/SSE Server
REST API Access]
    end

    subgraph "Tool Processing Layer"
        TP[Tool Registry & Router
53 Tools, 17 Categories]
        TP --> AV[Authentication & Validation
JWT + bcrypt]
        AV --> DB[Database Abstraction
SQLite with ORM]
    end

    subgraph "Service Modules"
        SM1[Academic Services
6 Tools]
        SM2[Admission Services
11 Tools]
        SM3[Student Services
16 Tools]
        SM4[Administrative Services
20 Tools]
    end

    TL1 --> TP
    TL2 --> TP
    TL3 --> TP

    DB --> SM1
    DB --> SM2
    DB --> SM3
    DB --> SM4

    subgraph "Data Layer"
        DL[(University Database
25 Tables, Seed Data)]
    end

    SM1 --> DL
    SM2 --> DL
    SM3 --> DL
    SM4 --> DL

    style TL1 fill:#bbdefb
    style TL2 fill:#c8e6c9
    style TL3 fill:#fff9c4
    style TP fill:#f3e5f5
    style DL fill:#e8f5e8

*图2:详细的技术架构*

📊 综合工具生态系统

pie title MCP Tools Distribution (53 Total Tools)
    "Academic Operations" : 6
    "Admission System" : 11
    "Student Services" : 16
    "Administrative" : 20

🎓 学术操作(6个工具)

工具描述用例
search_courses(query)按名称/代码搜索课程“查找计算机科学课程”
list_departments()所有学术部门“显示所有工程部门”
get_merit_list(dept_id)部门功绩排名“2026年CS部门功绩榜”
get_class_schedule()课程表“我的星期二时间表”
get_exam_schedule()考试时间表“CS期末考试日期”
get_today_classes()今天的课“我今天有什么课?”

📝 录取系统(11个工具)

工具描述流程
check_admission_status(cnic)入场状态检查开始 → 状态
start_admission_form()开始应用程序应用表单ID
fill_admission_field()逐步表格表单ID进展
preview_admission_form()提交前审核进展预览
confirm_and_submit_admission_form()最终提交预览提交

🏠 学生服务(16个工具)

服务类别关键工具影响
图书馆search_library_books(), check_book_availability()24/7图书馆访问
青年旅舍check_hostel_availability(), get_mess_menu()校园生活管理
运输get_bus_routes(), find_bus_stop()校园流动性
奖学金list_scholarships(), check_scholarship_eligibility()获得财政援助
学业成绩get_semester_result(), calculate_gpa()绩效跟踪

🏛️ 管理工具(20个工具)

工具类型示例权限
教职员目录search_faculty(), get_user_profile()公众
大学信息get_university_info(), get_important_links()公众
活动与新闻list_upcoming_events(), get_latest_news()公众
行政管理admin_add_department(), admin_add_course()仅限管理员
支持系统submit_help_ticket(), get_emergency_contacts()已验证

🚀 快速入门指南

先决条件

# System Requirements
✓ Python 3.10+
✓ Git (for development)
✓ Claude Desktop or Claude Code CLI
✓ 500MB free space
✓ Internet connection

3分钟内安装

sequenceDiagram
    participant User
    participant GitHub
    participant Python
    participant Claude

    User->>GitHub: git clone https://github.com/SARAMALI15792/InstituaionMCPServer.git
    GitHub-->>User: Repository downloaded
    User->>Python: cd InstituaionMCPServer && pip install -e .
    Python-->>User: Dependencies installed
    User->>Claude: Configure MCP Server
    Claude-->>User: Ready to use 53 tools!

方法1:地方发展(推荐)

# Step 1: Clone the repository
git clone https://github.com/SARAMALI15792/InstituaionMCPServer.git
cd InstituaionMCPServer

# Step 2: Install dependencies
pip install -e .
# or using uv (faster): uv pip install -e .

# Step 3: Configure environment
cp .env.example .env
# Edit .env with your settings

# Step 4: Run the server
python -m server.cli  # For Claude Code CLI
# OR
python -m server.main # For HTTP/SSE API (http://localhost:8000)

方法2:PyPI安装(生产)

# Install from PyPI
pip install uaar-university-mcp

# Configure Claude Code
# Copy claude-code-config-pypi.json to your Claude Code config directory

Claude集成

graph LR
    A[Your Computer] --> B[Claude Desktop/Code]
    B --> C[MCP Server
InstituaionMCPServer]
    C --> D[University Database]
    C --> E[53 Tools]

    B -->|Ask about| F[Courses]
    B -->|Check| G[Admissions]
    B -->|Manage| H[Student Services]
    B -->|Access| I[Admin Tools]

    style B fill:#ffebee
    style C fill:#e8f5e8

配置文件

// claude-code-config-pypi.json (included)
{
  "mcpServers": {
    "uaar-university": {
      "command": "python",
      "args": ["-m", "server.cli"],
      "description": "UAAR University MCP Server - Academic resources, admissions, student services"
    }
  }
}

🎯 真实世界用例

案例研究1:自动录取辅助

场景:未来学生对录取流程的疑问

# AI Agent Conversation Flow
User: "I want to apply for Computer Science admission"
Agent: Uses `check_admission_status()` → "Admissions open"
Agent: Uses `start_admission_form()` → Creates APP-2026-00001
Agent: Guides through `fill_admission_field()` step-by-step
Agent: Uses `preview_admission_form()` → Shows application summary
Agent: Uses `confirm_and_submit_admission_form()` → Submission complete

案例研究2:学生学术支持

场景:当前学生需要学术信息

User: "What's my GPA and available scholarships?"
Agent: Uses `get_cgpa(student_id)` → "Your CGPA is 3.75"
Agent: Uses `list_scholarships()` → Lists 15 available scholarships
Agent: Uses `check_scholarship_eligibility()` → "You qualify for 5 scholarships"
Agent: Uses `get_class_schedule()` → "Your Monday classes: CS301, MA202"

案例研究3:教师和行政任务

场景:教员需要部门信息

User: "Who are the CS department faculty and their research areas?"
Agent: Uses `search_faculty("Computer Science")` → Lists 12 faculty members
Agent: Uses `get_department_contact()` → Provides department contact info
Agent: Uses `list_upcoming_events()` → Shows department seminars

🏗️ 项目结构

InstituaionMCPServer/
├── 📁 .claude/                    # AI Agent Configuration
│   └── 📄 claude.md              # Comprehensive AI documentation
├── 📁 server/                     # Core Server Implementation
│   ├── 🐍 main.py                # FastAPI HTTP/SSE transport
│   ├── 🐍 cli.py                 # CLI stdio transport
│   ├── 🐍 database.py            # SQLite ORM (441 lines)
│   ├── 🐍 auth.py                # JWT authentication
│   ├── 🐍 schemas.py             # Pydantic models
│   └── 📁 tools/                 # 53 MCP Tools
│       ├── 🐍 __init__.py        # Tool registry
│       ├── 🐍 academic_tools.py  # Academic operations
│       ├── 🐍 admission_form_tools.py # Multi-step forms
│       ├── 🐍 result_tools.py    # GPA calculation
│       └── ... 14 more modules
├── 📄 pyproject.toml             # Project dependencies
├── 📄 .env.example               # Environment template
├── 📄 .gitignore                 # Git exclusions
├── 📄 LICENSE                    # MIT License
├── 📄 README.md                  # This documentation
├── 📄 claude-code-config-pypi.json # Claude integration
└── 📄 requirements.txt           # Python dependencies

🗄️ 数据库模式

erDiagram
    departments ||--o{ courses : offers
    departments ||--o{ faculty : employs
    departments ||--|| merit_lists : publishes

    users ||--o{ results : achieves
    users ||--o{ admission_forms : submits

    courses ||--o{ class_schedule : scheduled_in
    courses ||--o{ exam_schedule : examined_in

    library_books ||--o{ borrowed_books : borrowed_by
    hostel_rooms ||--o{ hostel_fees : charged_for
    bus_routes ||--o{ bus_stops : stops_at

    events ||--|| news : related_to
    scholarships ||--o{ scholarship_applications : applied_for

    departments {
        string id PK
        string name
        string faculty
        string description
    }

    courses {
        string code PK
        string title
        string department_id FK
        int credit_hours
    }

    users {
        string id PK
        string name
        string email
        string role
    }

*图3:实体关系图(局部)*

🔧 开发指南

添加新工具

flowchart TD
    A[Identify Need] --> B[Create Tool Module]
    B --> C[Define Async Function]
    C --> D[Add Type Hints & Docstring]
    D --> E[Register with @mcp.tool decorator]
    E --> F[Add to Tool Registry]
    F --> G[Test with Claude]
    G --> H[Document & Deploy]

    style A fill:#e1f5fe
    style H fill:#c8e6c9

工具实施示例:

@mcp.tool(
    name="search_courses",
    annotations={
        "readOnlyHint": True,
        "destructiveHint": False,
        "idempotentHint": True,
        "openWorldHint": False
    }
)
async def search_courses(query: str) -> Dict:
    """
    Search university courses by name or code.

    Args:
        query: Search term (course name or code)

    Returns:
        List of matching courses with details

    Example:
        "Find computer science courses" → List of CS courses
    """
    results = query_db(
        "SELECT * FROM courses WHERE title LIKE ? OR code LIKE ?",
        [f"%{query}%", f"%{query}%"]
    )
    return {
        "data": results,
        "count": len(results),
        "message": f"Found {len(results)} courses matching '{query}'"
    }

运行测试

# Test the server
python -m server.main &
SERVER_PID=$!

# Test API endpoints
curl http://localhost:8000/token -X POST -d "username=admin&password=admin"
# Use token for protected routes

kill $SERVER_PID

# Test CLI mode
python -m server.cli
# Use MCP client to test tools

📈 性能和扩展

当前指标

  • 响应时间:对于大多数查询,\ B[JWT Token Validation]

B --> C[Role-Based Access Control] C --> D[Permission Checking] end

subgraph "Data Protection" E[Input Validation] --> F[SQL Injection Prevention] F --> G[Data Encryption] G --> H[Audit Logging] end

subgraph "Network Security" I[HTTPS Enforcement] --> J[Rate Limiting] J --> K[IP Whitelisting] K --> L[DDoS Protection] end

style B fill:#ffcdd2 style F fill:#c8e6c9 style I fill:#bbdefb


**安全功能:**

- ✅ 30分钟到期的JWT代币
- ✅ 使用salt进行bcrypt密码哈希
- ✅ 参数化SQL查询(防止注入)
- ✅ 基于角色的访问控制(RBAC)
- ✅ 所有操作的审核日志记录
- ✅ 使用Pydantic进行输入验证
- ✅ 基于环境的配置

## 🌐 部署选项

### 选项A:Docker部署(推荐)

FROM python:3.10-slim WORKDIR /app COPY . . RUN pip install -e . EXPOSE 8000 CMD ["python", "-m", "server.main"]

Build and run

docker build -t uaar-mcp-server . docker run -p 8000:8000 -v ./data:/app/data uaar-mcp-server


### 选项B:传统服务器

Production setup

sudo apt update sudo apt install python3.10 python3-pip nginx git clone https://github.com/SARAMALI15792/InstituaionMCPServer.git cd InstituaionMCPServer pip install -e . cp .env.example .env.production

Configure .env.production with production values

Run with gunicorn

pip install gunicorn gunicorn server.main:app -w 4 -k uvicorn.workers.UvicornWorker


### 选项C:云平台

- **亚马逊云服务**:EC2+RDS+ELB
- **谷歌云**:计算引擎+云SQL
- **Azure**:VM+Azure SQL
- **Heroku**:简单的PaaS部署

## 🤝 为UAAR MCP做出贡献

我们欢迎UAAR社区和其他人的贡献!

### 如何做出贡献

1. **分叉** 存储库
1. **创建要素分支**: `git checkout -b feature/amazing-tool`
1. **提交您的更改**: `git commit -m 'Add amazing tool'`
1. **推到分支**: `git push origin feature/amazing-tool`
1. **打开拉取请求**

### 贡献领域

- **新工具**:额外的大学服务
- **文档**:改进指南和示例
- **测试**:扩大测试覆盖范围
- **演出**:优化和扩展
- **安全**:增强的安全功能

### 代码规范

- **Python 3.10+** 带有类型提示
- **异步/等待** 所有工具的模式
- **PEP 8** 合规
- **全面的文档字符串**
- **单元测试** 对于新功能

## 📚 学习资源

### 对于学生

- [MCP规范](https://spec.modelcontextprotocol.io/) -官方协议文件
- [FastAPI文档](https://fastapi.tiangolo.com/) -Web框架指南
- [Python异步教程](https://docs.python.org/3/library/asyncio.html) -异步编程

### 面向开发者

- [Claude 代码指南](.claude/claude.md) -特定项目的人工智能文档
- [SQLite教程](https://www.sqlitetutorial.net/) -数据库操作
- [JWT身份验证](https://jwt.io/) -基于令牌的身份验证

### 大学资源

- [UAAR大学](https://www.uaar.edu.pk/) -官方网站
- [PMAS干旱农业大学](https://www.pmasaaup.edu.pk/) -母机构
- [校历](https://www.uaar.edu.pk/academic-calendar) -大学时间表

## 📞 支持与社区

### 获取帮助

- **GitHub问题**: [报告错误或请求功能](https://github.com/SARAMALI15792/InstituaionMCPServer/issues)
- **文档**:综合指南 `.claude/claude.md`
- **电子邮件**:项目维护者(通过GitHub)

### 社区频道

- **GitHub讨论**:技术讨论
- **大学信息技术系**:本地支持
- **MCP社区**:协议特定帮助

### 状态和更新

- **版本**:1.0.0(生产就绪)
- **最后更新**:2026年1月
- **下一版本**:2026年第二季度(计划功能)
- **维护**:积极发展

## 📄 许可和归属

### MIT许可证

Copyright (c) 2026 PMAS Arid Agriculture University Rawalpindi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.


### 致谢

- **UAAR大学管理** 为了愿景和支持
- **克劳德AI&人类学** 用于MCP协议
- **开源社区** 基础技术
- **贡献者** 谁帮助改进这个项目

### 引用

如果您在研究或出版物中使用此项目:

@software{uaar_mcp_server_2026, title = {UAAR University MCP Server}, author = {UAAR IT Department and Contributors}, year = {2026}, url = {https://github.com/SARAMALI15792/InstituaionMCPServer} }


## 🎯 路线图和未来愿景

### 短期(2026年第一季度)

- \[\]移动应用程序集成
- \[\]其他学生服务
- \[\]增强的分析仪表板
- \[\]性能优化

### 中期(2026年第二季度至第三季度)

- \[\]多语言支持
- \[\]先进的人工智能功能
- \[\]与其他大学系统的整合
- \[\]扩展的工具生态系统

### 长期(2027+)

- \[\]学生成功的预测分析
- \[\]基于人工智能的学术咨询
- \[\]区块链凭证验证
- \[\]全球教育伙伴关系

______________________________________________________________________

## 🏆 为UAAR大学制造

**通过人工智能增强教育能力**

[![UAAR Logo](https://img.shields.io/badge/UAAR-University-blue)](https://www.uaar.edu.pk/)
[![PMAS AAUR](https://img.shields.io/badge/PMAS%20AAUR-Parent%20Institution-green)](https://www.pmasaaup.edu.pk/)
[![Claude AI](https://img.shields.io/badge/Claude-AI%20Integration-ff69b4)](https://claude.ai/)

*用人工智能驱动的自动化改造大学管理*

______________________________________________________________________

**📊 实时统计数据** (每月更新)

- **活动用户**: 250+
- **每日查询**: 5,000+
- **已执行的工具**:150000+每月
- **响应准确度**: 99.8%
- **系统运行时间**: 99.95%

**🔗 快速链接**

- 
- [问题追踪](https://github.com/SARAMALI15792/InstituaionMCPServer/issues)
- [文档](.claude/claude.md)
- [PyPI包](https://pypi.org/project/uaar-university-mcp/)

**📧 联系**:有关UAAR的具体询问,请联系大学IT部门

______________________________________________________________________

*最后更新时间:2026年1月|版本:1.0.0 |状态:生产就绪*

目录标签

目录标签

PythonClaude云端部署AI集成本地部署学术自动化学生服务大学管理智能工具

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

31

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotoken部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP