Students Architecture MCP Server
Enables CRUD operations on student records via REST API and MCP interface, with configurable JSON or SQLite persistence.
README
Students Architecture
Proyecto de ejemplo que implementa una API REST y una interfaz MCP para gestionar estudiantes.
Autor: MsC Felipe Buitrago Carmona
Afiliación: Departamento de sistemas e informática, Facultad de Inteligencia Artificial e Ingeniería, Universidad de Caldas
Descripción:
- Arquitectura en capas:
presentation(REST + MCP),business(servicio),data(repositorios),models(DTOs y entidades). - Soporta persistencia en JSON y SQLite y selección dinámica mediante
.env.
Requisitos
- Python 3.12+ (entorno virtual recomendado)
- Dependencias listadas en
requirements.txt.
Instalación rápida
- Crear y activar un virtualenv:
python -m venv venv
& venv\Scripts\Activate.ps1
- Instalar dependencias:
pip install -r requirements.txt
Configuración (.env)
- Copiar o crear un archivo
.enven la raíz con valores como:
FASTMCP_STATELESS_HTTP=true
REPO_TYPE=json # o sqlite
JSON_PATH=students.json
SQLITE_PATH=students.db
API_PORT=5000
MCP_PORT=9000
Cambiar REPO_TYPE entre json y sqlite selecciona la implementación de persistencia.
Nota: después de cambiar .env reiniciar el servidor para que la fábrica de repositorios lo lea.
Ejecutar API REST (desarrollo)
venv\Scripts\python.exe -m uvicorn main_api_rest_server:app --reload --port 5000
Ejecutar servidor MCP
venv\Scripts\python.exe main_mcp_server.py
Rutas principales (REST)
GET /students— listar estudiantesPOST /students— crear estudianteGET /students/{id}— obtener estudiantePUT /students/{id}— actualizarDELETE /students/{id}— eliminar
Ejemplo curl para crear un estudiante:
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}'
Notas útiles
- Si usas depurador (p.ej. PyCharm) y ves un
TypeErrorrelacionado conloop_factory, el arranque contiene una compatibilidad paraasyncio.runenmain_api_rest_server.py. - Pydantic muestra una advertencia si usas
orm_modecon v2; se recomienda usarfrom_attributescuando se migre a Pydantic v2.
Configuración Claude Desktop
Instalar Claude Desktop, luego ir a la parte inferior izquierda, donde aparece el nombre de usuario, luego sección Configuración, luego sección Desarrollador, Editar Configuración, y pegar el siguiente 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
}
}
Contacto MsC Felipe Buitrago Carmona felipe.buitrago@ucaldas.edu.co Departamento de sistemas e informática Universidad de Caldas
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.