MA
Integrates with Amazon Alexa+ voice interactions and Amazon Bedrock for hands-free maternal and baby-care logging, conversational summaries, mood check-ins, trend checks, and partner task management.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
🌸 MA: The Voice Companion for New Mothers
"The ambient voice companion that cares for the mother, not just the baby."
Built for the Amazon Developer Hackathon (Alexa+ Track & AWS Builder Challenge).
🎥 2-Minute Video Demonstration
A synchronized walkthrough of the Echo Show 10 experience, demonstrating the self-hosted MCP server (spec 2025-11-25, Streamable HTTP), Amazon Bedrock Converse integration, gentle voice narration, and compassionate maternal safety guardrails:
2-Minute Demo Video:
video/alexa_plus_swasth_ma_2min_demo.mp4(Full HD 1080p, 118.6 seconds (1:58), 5.51 MB — strictly under the 2:00 hackathon cutoff)Audio Profile: Microsoft Neural Jenny (
en-US-JennyNeural, -3% tempo) paired with an ambient 432 Hz healing harmonic tone.
Related MCP server: Porchlight MCP Server
🤱 Overview
Traditional baby trackers treat new mothers like unpaid data-entry clerks at 3:00 AM, inducing anxiety and guilt with rigid statistics ("Feeding duration below average"). MA flips the paradigm: it is an ambient, compassionate voice companion built from first principles to care for the mother's mental and emotional health.
Hands-Free Rhythms: Log breast feeds, bottles, and sleep naturally through Alexa+ voice commands without looking at a screen.
Zero Guilt & Zero Judgment: No charts that make mom feel inadequate. Every feeding choice (nursing, formula, bottle, pumping) is celebrated equally.
🌙 Circadian Night Mode: Between 10:00 PM and 6:00 AM, responses are strictly one short, soothing sentence, and the UI eliminates all blue light ($\lambda < 500,\text{nm}$) with a warm velvet plum and rose palette.
🛡️ Intelligent Maternal Safety Layer: Detects postpartum despair, depletion trends, and negated self-harm ("I'm not going to hurt myself, but everything feels impossible"), routing immediate support to verified Indian crisis helplines (Tele-MANAS
14416, Vandrevala Foundation+91 9999 666 555).🤝 Family Teamwork: Maintains a shared Partner Task Board ("Sterilize bottles", "Take the 4am shift so mom can sleep"), empowering mothers to delegate care easily.
🎴 SEP-1865 MCP Apps Cards: Pairs voice tools with interactive HTML micro-cards (
ui://ma/*) for screen-enabled devices like Echo Show.
🏗️ Architecture
MA is built on a decoupled, open-standards architecture conforming to the Model Context Protocol (MCP) specification (2025-11-25) over Streamable HTTP.
flowchart TD
subgraph Client ["Client & Multimodal UI"]
UI["Web Simulator & Echo Show<br/>(:8001/ - Web Speech API)"]
Voice["Voice Mic / Alexa+ Audio"]
end
subgraph AgentLayer ["Agent Reasoning Layer (:8001)"]
API["FastAPI /chat Endpoint"]
Bedrock["Amazon Bedrock (Converse API)<br/>Claude 3.5 Sonnet / Nova Lite"]
Strands["Strands Agent Orchestration<br/>+ Night Mode Brevity Post-Processor"]
end
subgraph MCPLayer ["MCP Server (:8005/mcp)"]
StreamHTTP["Streamable HTTP Transport (2025-11-25)<br/>POST /mcp & GET /mcp (SSE)"]
Tools["Typed MCP Tools<br/>• log_feed • log_sleep<br/>• baby_summary • mood_checkin<br/>• trend_check • partner_tasks"]
Safety["Safety & Helpline Layer<br/>• India 24/7 Hotlines<br/>• Negation-Aware Despair Detector"]
Cards["SEP-1865 UI Resources (ui://)<br/>• Baby Summary Card<br/>• Mood Trend Card<br/>• Partner Tasks Card"]
end
subgraph Storage ["Local Storage"]
DB[("SQLite Database<br/>server/data/ma.db")]
end
Voice --> UI
UI -->|POST /chat| API
API --> Bedrock
Bedrock --> Strands
Strands -->|JSON-RPC 2.0 via HTTP| StreamHTTP
StreamHTTP --> Tools
Tools --> Safety
Tools --> DB
Tools --> Cards
Cards -.->|Embedded HTML| UI
Safety -->|Care Response| Strands
Strands -->|1-2 Sentence Speech| UI🚀 Quickstart
1. Prerequisites
Python 3.11+
Virtual environment (
venvoruv)
2. Installation
git clone https://github.com/chiraghs/Ma.git
cd Ma
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt # Or install: mcp, fastapi, uvicorn, anyio, httpx, boto3, pytest3. Seed Database
Seed 5 days of realistic sample rhythms for baby Maya and mother Sarah:
python server/seed.py4. Run the MCP Server
Starts the FastMCP server over Streamable HTTP on port 8005:
python server/main.pyVerified at
http://127.0.0.1:8005/mcp
5. Run the Agent API & Web Simulator
In a second terminal window (with .venv activated):
uvicorn agent.api:app --host 127.0.0.1 --port 80016. Open the Simulator
Open your browser to:
http://localhost:8001/Click the Alexa Mic or push Start Listening to talk.
Try voice commands like:
"Maya nursed for 15 minutes on the left side."
"How has Maya's sleep been today?"
"I'm feeling really exhausted and lonely today."
"Add a task for partner to sterilize the night bottles."
Toggle the 🌙 Night Mode switch to experience the darkened circadian zero-blue interface and 1-sentence whisper responses.
🧪 Running Tests
The test suite covers all MCP tools, Streamable HTTP protocol handshakes, maternal distress classification, negation catchers, and agent contracts:
pytest -vExpected output:
tests/test_phase1.py ........... [ 40% ]
tests/test_safety.py ........... [ 81% ]
tests/test_agent.py ........ [ 96% ]
tests/test_streamable_http.py . [100%]
======================== 27 passed in 1.42s ========================🛡️ Safety & Crisis Architecture
Postpartum mental health emergencies require an exceptionally delicate balance: never diagnosing or lecturing, yet never dismissing critical warning signs.
MA implements a deterministic safety layer (server/safety.py):
Negation-Aware Filtering: Accurately recognizes statements like "I'm not going to hurt myself, but I want to disappear", erring on the side of caution without being alarmist.
Normal Exhaustion vs. Despair: Differentiates ordinary parental fatigue ("tired from the 3am feed") from severe hopelessness ("I'm failing my baby", "can't do this anymore").
Verified Crisis Helplines: Pre-configured with active Indian emergency numbers:
Tele-MANAS:
14416(24/7 National Mental Health Helpline, Government of India)KIRAN:
1800-599-0019(24/7 Mental Health Support)Vandrevala Foundation:
+91 9999 666 555(24/7 Crisis Counseling)AASRA:
+91 98204 66726
🎨 Zero-Blue Design Philosophy
Inspired by the maternal health aesthetic of Swasth, the interface strictly bans all blue and cyan light spectrums ($\lambda < 500,\text{nm}$) to protect infant and maternal circadian rhythms during midnight nursery interactions:
Token | Hex Code | Purpose |
Maternal Rose |
| Primary action buttons, active states, pulse glow |
Soft Peach |
| Secondary warm accents, gentle tags |
Warm Orchid |
| Highlights, evening calm indicators |
Mint |
| Positive rhythms, non-critical confirmation |
Berry Obsidian |
| High-contrast night mode backdrop |
📄 License
This project is licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Set up and run an in-product AI assistant: widgets, knowledge, MCP connections, usage.
An AI concierge that turns static forms into adaptive AI conversations. From any MCP client.
Family calendars, tasks, reminders, and pickup coordination for your AI assistant.
Log baby feedings, diapers, and sleep; manage family tasks, meals, recipes, groceries, and trips.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables an older adult to talk with Alexa+ about medicines and daily routine while a caregiver sees a calm, consent-gated dashboard and push alerts only when a genuine pattern (e.g. an unusually late first activity) appears. Includes elicitation-based consent, emergency bypass, resumable SSE streams, and an inline MCP App view.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables voice-driven caregiving check-ins through Alexa+, letting family members ask how a parent living alone is doing, trigger a check-in, or acknowledge they are handling an alert, while the parent can confirm "I'm OK" by voice. Status tools also render an MCP Apps card for at-a-glance display.29 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables consented, daily Alexa check-ins that score speech and memory answers against a personal baseline, flag sustained drift to family, produce clinician summaries, and export de-identified data for research. It also provides MCP tools, resources, prompts, and MCP Apps views for compatible agent hosts.20 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables a simulated Alexa+ care companion to capture daily check-ins, recall longitudinal care-journal history, assess risk, create local family-inbox cards, schedule follow-ups, and produce weekly digests through MCP tools.MIT