leonardo
by JoostVanAverbeke
Overview
This application serves as a Ruby on Rails-based Model Context Protocol (MCP) server for tracking patient results, orders, healthcare providers, and municipalities.
Installation
docker compose upEnvironment Variables
- DB_HOST
- DB_PORT
- DB_USERNAME
- DB_PASSWORD
- RAILS_ENV
- RAILS_DEVELOPMENT_HOSTS
- LEONARDO_DATABASE_PASSWORD
- RAILS_MASTER_KEY
- KAMAL_REGISTRY_PASSWORD
- RAILS_LOG_LEVEL
- SOLID_QUEUE_IN_PUMA
- JOB_CONCURRENCY
- WEB_CONCURRENCY
- PORT
- PIDFILE
- FAST_MCP_AUTH_TOKEN
Security Notes
CRITICAL VULNERABILITY: The Model Context Protocol (MCP) server is configured to be accessible from any host (`localhost_only: false`) and has authentication explicitly commented out (`authenticate: true` commented). This means the /mcp endpoint and its tools are publicly exposed to the network without any authentication, allowing anyone to query or potentially modify sensitive patient and healthcare provider data. Hardcoded database credentials (username 'postgres', password 'postgres') are used in development environment configuration files (`compose.yaml`, `config/database.yml`), which is a risk if these configurations are inadvertently used in production. Many request specs have `skip("Add a hash of attributes valid for your model")`, indicating incomplete controller testing that could lead to input validation or authorization vulnerabilities. No explicit user authentication/authorization for the web interface is visible.
Similar Servers
action_mcp
ActionMCP is a Ruby gem providing Model Context Protocol (MCP) server capabilities to Rails applications, enabling AI assistants to connect to external data sources and tools.
mcp_rails_template
This server demonstrates integrating the ActionMCP gem into a Ruby on Rails application to expose AI-callable tools, prompts, and resource templates for language models.
headless-browser-tool
This project provides a Ruby-based tool for automating web interactions using a headless browser, potentially integrated with an AI or automation orchestration system.
mcp-fhir-patient-index
A Ruby on Rails Master Patient Index (MPI) server with a user-friendly UI, a conformant FHIR API (R4), and Model Context Protocol (MCP) support for LLM integration, focused on managing patient demographic data.