MU

monasterolo21/ultrahuman-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

20 stars 5 forks 质量 58 趋势 0MIT

一个简单的MCP服务器,使用Ultrahuman API来获取你的戒指中的健身数据,并从你喜欢的大型语言模型查询相关信息

概览

一个用于从 Ultrahuman API 获取健康和健身指标的模型上下文协议(MCP)服务器。使用 TypeScript 构建,设计用于生产环境。 1. 克隆仓库 2.安装依赖:3. 构建项目: 4. 配置环境变量(见配置部分) 5. 添加到 Claude 桌面(见使用部分) 在使用这个MCP服务器之前,你需要先获得你的超人类凭证。请按照以下步骤操作: 1. 在设备上打开Ultrahuman应用 2.导航到屏幕底部的标签页 3.点击左上角的设置图标(齿轮图标) 4.你的电子邮件地址将显示在设置界面顶部 5.复制这个邮箱地址——你需要它进行配置 您必须通过以下方式之一联系Ultrahuman,获取API密钥和合作伙伴ID: - : 向support@ultrahuman发送请求。

概述(AI 翻译)

一个用于从 Ultrahuman API 获取健康和健身指标的模型上下文协议(MCP)服务器。使用 TypeScript 构建,设计用于生产环境。

🚀 快速启动

  1. 克隆仓库

  2. 安装依赖:

  3. 建设项目:

  4. 配置你的环境变量(见配置部分)

  5. 添加到Claude桌面版(见使用部分)

🔑 入门使用超人类 API

在使用这个MCP服务器之前,你需要先获得你的超人类凭证。请按照以下步骤操作:

第一步:获取你的超人类邮件

  1. 在你的设备上打开Ultrahuman应用
  2. 导航到屏幕底部的个人资料标签页
  3. 点击左上角的设置图标(齿轮图标)
  4. 你的电子邮件地址会显示在设置界面顶部
  5. 复制这个邮箱地址——你需要它来配置

步骤2:请求API密钥和合作伙伴ID

您必须通过以下方式之一联系Ultrahuman,获取API密钥和合作伙伴ID:

  • 电子邮件:发送请求至 [email protected]
  • 应用内聊天:使用Ultrahuman应用内的客户服务聊天

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Ultrahuman MCP Server

A Model Context Protocol (MCP) server for fetching health and fitness metrics from the Ultrahuman API. Built with TypeScript and designed for production use.

🚀 Quick Start

  1. Clone the repository
  2. Install dependencies:
    bun install
    
  3. Build the project:
    bun run build
    
  4. Configure your environment variables (see Configuration section)
  5. Add to Claude Desktop (see Usage section)

🔑 Getting Started with Ultrahuman API

Before you can use this MCP server, you’ll need to obtain your Ultrahuman credentials. Follow these steps:

Step 1: Get Your Ultrahuman Email

  1. Open the Ultrahuman app on your device
  2. Navigate to the Profile tab at the bottom of the screen
  3. Tap the settings icon (cog icon) in the top left corner
  4. Your email address will be displayed at the top of the settings screen
  5. Copy this email address - you’ll need it for configuration

Step 2: Request API Key and Partner ID

You must obtain an API key and Partner ID from Ultrahuman by contacting them through one of these methods:

  • Email: Send a request to [email protected]
  • In-app chat: Use the customer service chat within the Ultrahuman app

Important: Make sure to include your Ultrahuman email address in your request to speed up the response time.

Once you receive your API key and Partner ID, keep them secure and private.

Step 3: Configure Partner ID in App

  1. Open the Ultrahuman app on your device
  2. Navigate to the Profile tab at the bottom of the screen
  3. Tap the settings icon (cog icon) in the top left corner
  4. Scroll down to find the Partner ID field
  5. Enter the Partner ID code you received from Ultrahuman

Step 4: Configure the MCP Server

Now you can configure this MCP server with your credentials:

  1. Set your environment variables (see Configuration section below)
  2. Build and run the server
  3. Add it to Claude Desktop with your API credentials

You’re all set to start fetching your health data!

✨ Key Features

  • Fetch comprehensive health metrics from Ultrahuman API
  • Heart rate, sleep, steps, temperature, and HRV monitoring
  • Built with TypeScript for type safety
  • Bun for fast testing and development
  • Biome for linting and formatting
  • Clean, maintainable project structure

📂 Project Structure

ultrahuman-mcp/
├── src/
│   ├── tools/          # MCP tools implementation
│   │   └── ultrahumanMetrics/  # Ultrahuman API integration
│   ├── utils/          # Shared utilities
│   ├── main.ts         # Server entry point
│   └── types.ts        # Shared type definitions
├── scripts/            # Build and utility scripts
├── biome.json          # Linting configuration
├── tsconfig.json       # TypeScript configuration
└── package.json        # Project dependencies

⚙️ Configuration

This server requires environment variables to authenticate with the Ultrahuman API:

在 GitHub 查看完整 README

安装

npx -y ultrahuman-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ultrahuman": { "command": "node", "args": ["/path/to/your/project/dist/main.js"], "env": { "ULTRAHUMAN_AUTH_TOKEN": "your_token_here", "ULTRAHUMAN_USER_EMAIL": "[email protected]" } } } }