Back to Home
Shaumik-Ashraf icon

mcp-fhir-patient-index

by Shaumik-Ashraf

Overview

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.

Installation

Run Command
rails server

Environment Variables

  • RAILS_MASTER_KEY
  • RAILS_MAX_THREADS
  • PORT
  • PIDFILE
  • SOLID_QUEUE_IN_PUMA
  • RAILS_LOG_LEVEL
  • JOB_CONCURRENCY
  • WEB_CONCURRENCY
  • DB_HOST
  • KAMAL_REGISTRY_PASSWORD

Security Notes

The README explicitly warns that the application is 'not ready for real-patient data out of the box' and requires credential regeneration and SOC-II compliance for real-world use. It implements basic Rails security features like strong parameters and filtering sensitive logs (e.g., SSN). The `format_ssn` helper masks SSN in the UI based on a setting, but the raw data is stored. CSRF protection is skipped for the MCP API endpoint, which is common for API-only controllers. There are no obvious hardcoded secrets directly in the repository for critical configurations (it uses Rails credentials and environment variables for deployment). No 'eval' or malicious patterns are evident.

Similar Servers

Stats

Interest Score32
Security Score5
Cost ClassMedium
Avg Tokens2000
Stars2
Forks0
Last Update2025-11-26

Tags

FHIRMCPPatient IndexRails 8HealthcareLLM IntegrationAPI