MCP Wellness Agent
README.md
# MCP Wellness Agent
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/)
[](https://modelcontextprotocol.io)
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
## π Quick Start
```bash
# 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.
### `analyze_trends(user_id: str)`
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](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), [LICENSE.NONCOMMERCIAL.md](LICENSE.NONCOMMERCIAL.md), and [COMMERCIAL_LICENSE.md](COMMERCIAL_LICENSE.md)).
## π Hackathon
Built for **Amazon Build Ship Shape 2026** - Open Source Mini-Challenge.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues