Students Architecture MCP Server
Students Architecture
学生を管理するためのREST APIおよびMCPインターフェースを実装したサンプルプロジェクト。
著者: MsC Felipe Buitrago Carmona
所属: カルダス大学、人工知能・工学部、システム・情報学科
説明:
レイヤードアーキテクチャ:
presentation(REST + MCP),business(サービス),data(リポジトリ),models(DTOおよびエンティティ)。JSONおよびSQLiteの永続化をサポートし、
.envを通じて動的に選択可能。
要件
Python 3.12+ (仮想環境を推奨)
requirements.txtに記載された依存関係。
クイックインストール
仮想環境を作成して有効化する:
python -m venv venv
& venv\Scripts\Activate.ps1依存関係をインストールする:
pip install -r requirements.txt設定 (.env)
ルートディレクトリに
.envファイルをコピーまたは作成し、以下のような値を設定します:
FASTMCP_STATELESS_HTTP=true
REPO_TYPE=json # o sqlite
JSON_PATH=students.json
SQLITE_PATH=students.db
API_PORT=5000
MCP_PORT=9000REPO_TYPE を json と sqlite の間で変更することで、永続化の実装を選択できます。
注: .env を変更した後は、リポジトリファクトリが読み込めるようにサーバーを再起動してください。
REST APIの実行 (開発用)
venv\Scripts\python.exe -m uvicorn main_api_rest_server:app --reload --port 5000MCPサーバーの実行
venv\Scripts\python.exe main_mcp_server.py主なルート (REST)
GET /students— 学生一覧の取得POST /students— 学生の作成GET /students/{id}— 学生の取得PUT /students/{id}— 更新DELETE /students/{id}— 削除
学生を作成するための curl の例:
curl -X POST http://localhost:5000/students -H "Content-Type: application/json" -d '{"name":"Ana","email":"ana@example.com","age":21,"career":"Ingenieria","semester":4}'役立つメモ
デバッガー(例: PyCharm)を使用していて
loop_factoryに関連するTypeErrorが発生する場合、起動処理にはmain_api_rest_server.py内のasyncio.runに対する互換性処理が含まれています。Pydantic v2で
orm_modeを使用すると警告が表示されます。Pydantic v2へ移行する際はfrom_attributesを使用することを推奨します。
Claude Desktopの設定
Claude Desktopをインストールし、左下のユーザー名が表示されている箇所から 設定 セクションへ移動し、デベロッパー セクションの 設定を編集 を選択して、以下のJSONを貼り付けてください。
{
"mcpServers": {
"students_architecture": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:9000/mcp",
"--allow-http"
],
"env": {
"MCP_TRANSPORT_STRATEGY": "http-only"
}
}
},
"preferences": {
"coworkScheduledTasksEnabled": false,
"sidebarMode": "chat",
"coworkWebSearchEnabled": true,
"ccdScheduledTasksEnabled": false
}
}連絡先 MsC Felipe Buitrago Carmona felipe.buitrago@ucaldas.edu.co カルダス大学 システム・情報学科
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Model Context Protocol server for Studex tools, notifications, and profile integrations
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables users to manage data in a simple JSON file database through MCP tools and REST API. Supports creating, reading, updating, and deleting items organized in collections with auto-generated UUIDs.-
- AlicenseNot gradedqualityDmaintenanceAI-powered Teacher Assistance MCP Server for managing student records with PostgreSQL, enabling create and read operations via MCP tools.MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to manage student records through natural language by wrapping a simple HTTP student server's endpoints as MCP tools.-
- FlicenseNot gradedqualityBmaintenanceMCP server for student management with CRUD operations, supporting user authentication and student record management.-