Medicine shortage and recall checker with an MCP server on AWS by Muhammad HassanMedicine shortage and recall checker with an MCP server on AWS by Muhammad Hassan

Medicine shortage and recall checker with an MCP server on AWS

Portfolio project
Muhammad Hassan
Drug Alert answers one question: is my medicine in shortage or recalled? Search any US medicine on the website, ask Claude directly through an MCP server, or sign up for an email the morning the FDA publishes a new recall for something you take.
I built it end to end as my own project: the data logic, the AWS backend, the infrastructure in Terraform and the Next.js front end.
The hard part was the data. Patients search by brand name, the FDA files by active ingredient, and recall records are free text. I wrote an ingredient matcher that reads product descriptions as well as the structured fields. For hydromorphone, the standard openFDA query finds 9 recalls; the matcher finds 123 with no false hits from combination products.
The backend is two AWS Lambda functions on Graviton. One serves the MCP tools, a JSON API for the website, and the email link pages. The other runs a daily check on an EventBridge schedule and emails watchers through Amazon SES. DynamoDB holds a read-through cache with TTL and the watchlist. Every table, role, policy and schedule is defined in Terraform, with one least-privilege IAM role per function.
Email alerts use double opt-in, HMAC-signed confirm and unsubscribe links, and only send recalls published after you subscribe, never the same one twice.

0 likes · 1 view · Nov 19, 2026

Drug Alert: medicine shortage and recall checker with an MCP server on AWS

Tags