Inspiration

Government hospitals in India face massive OPD queue challenges. Patients wait hours without knowing their turn. We wanted to solve this using AI agents.

What it does

Smart Queue Health is an AI-powered patient queue management system for Government Hospital OPDs. It uses priority-based scheduling (Emergency > Senior > Normal) with real-time wait time prediction. Staff can manage the queue using natural language through an AI agent on Prompt Opinion.

How we built it

Built an MCP server using Node.js and Express with 4 tools: get_queue_status, add_patient, call_next_patient, and predict_wait_time. Used SQLite for offline-first storage, deployed on Railway, and integrated with Prompt Opinion as a BYO Agent powered by Gemini 2.5 Flash with real-time Socket.IO updates.

Challenges we ran into

Making SQLite work on Linux deployment, implementing proper MCP JSON-RPC format, and building offline-first architecture for low-connectivity government hospitals.

Accomplishments that we're proud of

Successfully built a working MCP server that an AI agent can use to manage real hospital queues in natural language. The system works offline-first which is critical for government hospitals.

What we learned

How MCP protocol works, how AI agents communicate with tools, and how to build healthcare AI solutions with real-world constraints.

What's next for Smart Queue Health

Adding FHIR patient data integration, multi-counter support, SMS notifications for patients, and expanding to multiple government hospitals across Tamil Nadu.

Built With

Share this project:

Updates