mcp-cirujanos
MCP server for scheduling appointments and managing services for plastic surgery clinics. Supports calendar operations, booking, catalog search, and case studies (before/after) for procedures.
README
mcp-cirujanos
MCP de agendamiento para consultorios de cirugía plástica. Fork de valeria-mcp-server (repo zobra-auto/valeria-mcp-server), adaptado a multi-tenant por archivos/env. Es el Componente B del INFRA_PLAN.md.
Qué cambió respecto a valeria-mcp-server
catalog.jsparcheado: la tienda/servicios ya NO están hardcodeados (eran de la barbería). Ahora se leen deCATALOG_JSON(./data/catalog.json) → servicios de la valoración del cirujano.- Tool nueva
casos(aliasbuscar_casos): biblioteca antes/después por procedimiento, leída deCASOS_JSON. La usa el sub-agente VENTAS en M1 del guion. - Defaults a cirujanos:
BARBERS_JSON→./data/doctors.json(cada "barbero" = un médico con su Google Calendar). Duración por defecto 45 min.
Lo demás (calendar check/create/cancel, booking search, barbers resolve, auth, rate-limit, caché) es idéntico a valeria y 100% configurable por env — por eso no se toca el mcp-valeria de la barbería.
Endpoint
POST /mcp (alias /tools) con header x-api-key: <API_KEY> y cuerpo { "tool", "action", "params" }.
| tool | action | params | Uso |
|---|---|---|---|
calendar |
check |
date (YYYY-MM-DD) ó from+to ISO, barber?, duration? |
Slots reales del calendar |
calendar |
create |
date,time (ó when ISO), who, phone, barber, duration? |
Agendar valoración |
calendar |
cancel |
eventId, barber? |
Cancelar |
booking |
search |
phone |
Citas del paciente |
catalog |
search |
query? |
Servicios/precios del consultorio |
casos |
search |
procedimiento, n? (def 2, máx 5) |
Casos antes/después (M1) |
health |
ping |
— | Healthcheck |
Alias para n8n: ver_disponibilidad/agendar_turno/cancelar_turno → calendar; buscar_turnos → booking; buscar_casos → casos.
Configuración
Copia .env.example → .env y rellena API_KEY + GOOGLE_APPLICATION_CREDENTIALS_JSON. Los datos del consultorio viven en data/ (doctors.json, business_hours.json, catalog.json, casos.json).
Migrar a otro doctor: cambiar los 4 JSON de data/ (o apuntar las envs *_JSON a otros archivos) + el calendarId compartido con la SA. Cero cambios de código.
Correr local
npm install
cp .env.example .env # rellenar API_KEY y la SA
npm run dev # node --watch
# smoke:
curl -s localhost:3000/mcp -H 'x-api-key: <API_KEY>' -H 'content-type: application/json' \
-d '{"tool":"catalog","action":"search","params":{}}' | jq
curl -s localhost:3000/mcp -H 'x-api-key: <API_KEY>' -H 'content-type: application/json' \
-d '{"tool":"casos","action":"search","params":{"procedimiento":"rinoplastia","n":2}}' | jq
Despliegue (EasyPanel — con tu luz verde)
Nuevo servicio mcp-cirujanos en el proyecto barber_auto. Env según .env.example; copiar GOOGLE_APPLICATION_CREDENTIALS_JSON desde mcp-valeria (misma SA mcp-valeria@zobra-pruebas). Dominio barber-auto-mcp-cirujanos.wytay4.easypanel.host. NO reconfigurar mcp-valeria (aislamiento).
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.