Metadata-Version: 2.4
Name: gevety-mcp
Version: 0.11.0
Summary: MCP Server for Gevety Health - Claude Desktop integration for blood test tracking
Project-URL: Homepage, https://gevety.com
Project-URL: Documentation, https://docs.gevety.com/mcp
Project-URL: Repository, https://github.com/gevety/mcp-server
Author-email: Mohamed Alkhalifa <mohamed@gevety.com>
License: MIT License
        
        Copyright (c) 2026 Gevety
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: ai,biomarkers,claude,health,mcp
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Healthcare Industry
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp>=1.0.0
Requires-Dist: packaging>=21.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: respx>=0.21.0; extra == 'dev'
Description-Content-Type: text/markdown

# Gevety MCP Server

MCP (Model Context Protocol) server for [Gevety Health](https://gevety.com), enabling Claude Desktop to access your blood test results, wearable data, and health insights.

## Quick Setup (All Platforms)

```bash
# One-line setup for Claude Desktop, Claude Code, and Clawdbot
curl -sSL https://raw.githubusercontent.com/gevety/mcp-server/main/scripts/setup-ai-assistant.sh | bash
```

The script will:
1. Prompt for your API token (get it at [gevety.com/settings](https://gevety.com/settings))
2. Detect installed AI platforms
3. Configure each platform automatically

## Features

- **list_available_data** - Discover available biomarkers, wearables, and date ranges
- **get_health_summary** - Get overall healthspan score and top concerns
- **query_biomarker** - Query specific biomarker history and trends
- **get_wearable_stats** - Get aggregated wearable metrics (Garmin, Oura, Whoop)

## Installation

```bash
# Install with pip
pip install gevety-mcp

# Or install from source
git clone https://github.com/gevety/mcp-server
cd mcp-server
pip install -e .
```

## Quick Start

### 1. Get an API Token

1. Log in to [Gevety](https://gevety.com)
2. Go to **Settings → Developer API**
3. Click **Generate Token**
4. Copy the token (starts with `gvt_`)

### 2. Configure Claude Desktop

Add to your Claude Desktop config (`claude_desktop_config.json`):

**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "gevety": {
      "command": "gevety-mcp",
      "env": {
        "GEVETY_API_TOKEN": "gvt_your_token_here"
      }
    }
  }
}
```

### 3. Restart Claude Desktop

After saving the config, restart Claude Desktop. You should see "gevety" in the MCP servers list.

## Usage Examples

Once configured, you can ask Claude about your health data:

> "What biomarkers do I have data for?"

> "Show me my health summary"

> "How is my vitamin D trending?"

> "What are my average steps this month?"

> "Query my cholesterol history"

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `GEVETY_API_TOKEN` | Yes | Your Gevety API token (gvt_xxx) |
| `GEVETY_API_URL` | No | API base URL (defaults to production) |

## Development

```bash
# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run server locally
GEVETY_API_TOKEN=gvt_xxx gevety-mcp
```

## API Endpoints

The MCP server calls these Gevety API endpoints:

- `GET /api/v1/mcp/tools/list_available_data`
- `GET /api/v1/mcp/tools/get_health_summary`
- `GET /api/v1/mcp/tools/query_biomarker?biomarker=xxx&days=365`
- `GET /api/v1/mcp/tools/get_wearable_stats?days=30`

All endpoints require Bearer token authentication and support caching.

## Response Headers

| Header | Description |
|--------|-------------|
| `X-Gevety-Cache-Hit` | Whether response was served from cache |
| `X-Gevety-Data-Age` | Seconds since data was computed |
| `X-RateLimit-Limit` | Request limit per minute |
| `X-RateLimit-Remaining` | Remaining requests |
| `X-RateLimit-Reset` | Unix timestamp when limit resets |

## Rate Limits

- 100 requests/minute
- 1,000 requests/hour
- 10,000 requests/day

## Other AI Platforms

### Clawdbot

For [Clawdbot](https://clawd.bot/) users, we provide an AgentSkills-compatible skill instead of MCP:

```bash
# Copy the skill to your Clawdbot skills directory
mkdir -p ~/.clawdbot/skills/gevety
cp src/gevety_mcp/skills/clawdbot/SKILL.md ~/.clawdbot/skills/gevety/
```

Configure in `~/.clawdbot/clawdbot.json`:

```json
{
  "skills": {
    "entries": {
      "gevety": {
        "enabled": true,
        "env": {
          "GEVETY_API_TOKEN": "gvt_your_token_here"
        }
      }
    }
  }
}
```

See [`src/gevety_mcp/skills/README.md`](src/gevety_mcp/skills/README.md) for details.

### ChatGPT / Other Platforms

The underlying REST API is platform-agnostic. See [API Endpoints](#api-endpoints) above for direct integration.

## Privacy

- All data access is read-only
- Your data never leaves Gevety's servers
- API tokens can be revoked anytime from Settings
- See [Privacy Policy](https://gevety.com/privacy)

## License

MIT License - see LICENSE file.

## Support

- [Documentation](https://docs.gevety.com/mcp)
- [GitHub Issues](https://github.com/gevety/mcp-server/issues)
- [Contact Support](mailto:support@gevety.com)
