Skip to main content
Glama
yuvanshankarm007

MCP Wellness Agent

MCP Wellness Agent

License: MIT Python 3.10+ MCP

A Model Context Protocol (MCP) server that exposes wellness data (sleep, activity, heart rate) as tools for AI agents. Built for the Amazon Build Ship Shape 2026 hackathon as part of the Open Source Mini-Challenge.

🌟 Features

  • MCP Protocol: Implements the Model Context Protocol for agent-tool communication

  • Multi-Provider: Supports Fitbit, Apple Health, and realistic simulation

  • A2A Compatible: Includes agent card for agent-to-agent discovery

  • Voice-Ready: Optimized for Alexa+ and voice-first interfaces

  • Type-Safe: Full Pydantic models for all data

  • Extensible: Easy to add new wellness providers

Related MCP server: vitals

πŸš€ Quick Start

# Install
pip install mcp-wellness-agent

# Run MCP server
mcp-wellness-server --transport streamable-http --port 8001

# Or use as library
from mcp_wellness_agent import WellnessServer
server = WellnessServer(provider="fitbit")

πŸ“‘ MCP Tools

get_vitals(user_id: str)

Get current wellness vitals for a user.

Returns:

  • sleep_hours: Hours of sleep

  • sleep_quality: Quality score (1-10)

  • activity_level: low/normal/high

  • heart_rate_avg: Resting heart rate

  • steps: Daily step count

  • stress_level: Stress score (1-10)

get_history(user_id: str, days: int)

Get historical wellness data.

Get trend analysis and insights.

πŸ”Œ Providers

Provider

Status

Notes

Simulated

βœ… Ready

Realistic physiological simulation

Fitbit

βœ… Ready

Requires OAuth2 credentials

Apple Health

🚧 Planned

macOS/iOS only

Garmin

🚧 Planned

Coming soon

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     MCP      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   AI Agent      │◄────────────►│  Wellness Agent  β”‚
β”‚  (Claude, etc)  β”‚  Streamable  β”‚   MCP Server     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   HTTP       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                            β”‚
                              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                              β–Ό             β–Ό             β–Ό
                         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                         β”‚ Fitbit β”‚   β”‚ Apple   β”‚   β”‚ Simulatedβ”‚
                         β”‚  API   β”‚   β”‚ Health  β”‚   β”‚ Engine   β”‚
                         β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🀝 Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

πŸ“„ License

Dual-Licensed under GNU AGPLv3 (AGPL-3.0-only) and PolyForm Noncommercial 1.0.0 β€” No closed-source or commercial use is permitted without prior written permission (see LICENSE, LICENSE.NONCOMMERCIAL.md, and COMMERCIAL_LICENSE.md).

πŸ† Hackathon

Built for Amazon Build Ship Shape 2026 - Open Source Mini-Challenge.

Related MCP Connectors

Related MCP Servers