Yari Medic MCP Server
MCP server exposing 147 medical tools for patient management, appointments, pharmacy, lab, billing, CRM, emergencies, and AI-powered triage via SSE, integrating with the Yari Medic Django backend.
README
Medical MCP Server - Yari System
Servidor MCP (Model Context Protocol) para el sistema médico Yari Medic.
147 herramientas médicas expuestas vía protocolo MCP (SSE).
Inicio Rápido
# Instalar dependencias
npm install
# Copiar configuración
cp .env.example .env
# Iniciar en modo desarrollo
npm run dev
# Iniciar en producción
npm start
Requisitos
- Node.js >= 18
- npm >= 10
- Django API (yarimedic.io) accesible
Arquitectura
Yari Medic Ecosystem (v6.4)
┌─────────────────────────────────────────────┐
│ Railway Cloud │
│ │
│ ┌───────────────┐ ┌──────────────────┐ │
│ │ yari-ai-agent │───►│ medical-mcp- │ │
│ │ (ZeroClaw) │HTTP│ server │ │
│ │ Rust │ │ Node.js/Express │ │
│ │ Port: 8080 │ │ Port: 9000 │ │
│ └───────────────┘ └────────┬─────────┘ │
│ │ │
│ ┌──────────▼──────────┐ │
│ │ yarimedic.io │ │
│ │ (Django Backend) │ │
│ │ Port: 8000 │ │
│ └─────────────────────┘ │
└─────────────────────────────────────────────┘
- Repo:
Yari-Medic/yari-medic-mcp - Railway Project:
yari-medic-mcp - Service:
medical-mcp-server - URL pública:
https://medical-mcp-server-production.up.railway.app - Health check:
GET /health
Configuración
Edita el archivo .env con tus configuraciones:
PORT=9000
DJANGO_API_URL=https://www.yarimedic.io
GEMINI_API_KEY=tu-api-key
GROQ_API_KEY=tu-api-key
REDIS_URL=redis://...
Endpoints
GET /- Health checkGET /health- Status detalladoPOST /mcp- Endpoint MCP principal (SSE)
Herramientas MCP (147 total)
Pacientes
get_patient_by_id- Obtener paciente por IDget_patient_history- Historial clínicoget_patient_appointments- Citas del pacienteget_patient_invoices- Facturas del pacienteget_patient_ecografias- Ecografías del pacienteanalyze_patient_comprehensive- Análisis integral con IA
Médicos y Citas
get_available_doctors- Médicos disponiblesschedule_appointment- Agendar citasearch_medical_directory- Directorio médico
Farmacia
get_pharmacy_inventory- Inventario farmacéuticosearch_medications- Búsqueda de medicamentoscheck_stock- Verificar stock
Laboratorio
get_lab_results- Resultados de laboratoriosearch_lab_tests- Catálogo de pruebasrequest_lab_test- Solicitar prueba
Facturación
get_accounts_receivable- Cuentas por cobrarget_accounts_payable- Cuentas por pagarget_receivable_documents- Documentos de cobroget_payable_documents- Documentos de pago
CRM
get_crm_cases- Casos CRMget_medical_stats- Estadísticas médicas
Emergencias y Triage
get_emergency_cases- Casos de emergenciarequest_emergency_service- Solicitar servicio de emergenciaget_hospitalization_status- Estado de hospitalizaciónget_fleet_status- Estado de flota de ambulancias
Chat
chat- Chat con protocolo Manchester (triage ATINMCA)
Ver src/tools.ts para la lista completa de 147 herramientas.
Docker
# Build
docker build -t medical-mcp-server .
# Run
docker run -p 9000:9000 \
-e DJANGO_API_URL=https://www.yarimedic.io \
-e GEMINI_API_KEY=... \
-e GROQ_API_KEY=... \
-e REDIS_URL=... \
medical-mcp-server
Desarrollo
# Build TypeScript
npm run build
# Watch mode
npm run watch
# Tests
npm test
Documentación
Ver docs/ para documentación adicional.
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.