mcp_server_sample

aerdogan/mcp_server_sample

3.2

If you are the rightful owner of mcp_server_sample and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

This project is a school management API built using FastAPI and SQLite, transformed into an MCP (Model Context Protocol) compatible server with FastMCP.

Tools
2
Resources
0
Prompts
0

School MCP Api+ SQLite + FastMCP

Ayrıca, FastMCP ile MCP (Model Context Protocol) uyumlu bir sunucuya dönüştürülmüştür. Projede Sınıf (Classroom) ve Öğrenci (Student) modelleri vardır ve hem CRUD hem de sınıf-öğrenci ilişkisi yönetilebilir.

📦 Özellikler

  • SQLite veritabanı (otomatik oluşturulur)
  • SQLAlchemy ORM kullanımı
  • CRUD işlemleri: Sınıf ve Öğrenci
  • Sınıf ile öğrencileri birlikte yönetme endpoint’leri

⚙️ Kurulum

  1. Projeyi klonlayın veya indirin
  2. Virtual environment oluşturun (opsiyonel ama önerilir):
python -m venv .venv
.venv\Scripts\activate  # Windows
# veya
source .venv/bin/activate  # Linux/Mac
  1. Gerekli paketleri yükleyin:
pip install -r requirements.txt

🚀 Sunucuyu Çalıştırma

Server’ı başlatmak için:

python main.py

Postman ile test Görüntüsü

🚀 Test Çalıştırma

python test.py