eufylife-mcp

eufylife-mcp

An MCP server for EufyLife smart scale body composition data, exposing weight, BMI, body fat, muscle mass, and 20+ other measurements as tools for AI assistants.

Category
访问服务器

README

eufylife-mcp

An MCP (Model Context Protocol) server for EufyLife smart scale body composition data. Exposes your weight, BMI, body fat, muscle mass, and 20+ other measurements as tools that AI assistants can use.

Built by reverse-engineering the EufyLife cloud API, based on the work done by @m4ary in eufylife-api-hacs.

Features

  • Authenticate with your EufyLife cloud account
  • Retrieve latest and historical body composition measurements
  • Multi-user support — list family member profiles sharing the same scale
  • List connected devices and their configuration
  • 20+ body composition measurements (weight, BMI, body fat, muscle mass, bone mass, BMR, body age, water percentage, protein ratio, visceral fat, and more)
  • Auto-login via environment variables
  • Token auto-refresh (tokens valid ~30 days)

Prerequisites

  • Bun runtime (v1.0+)
  • A EufyLife account with a connected smart scale

Installation

From npm (recommended)

bunx eufylife-mcp

From source

git clone https://github.com/MatthewHallCom/eufylife-mcp.git
cd eufylife-mcp
bun install
bun run src/index.ts

Configuration

Environment Variables

Variable Description
EUFYLIFE_EMAIL Your EufyLife account email
EUFYLIFE_PASSWORD Your EufyLife account password

When both are set, the server auto-authenticates on startup. Alternatively, use the login tool at runtime.

Claude Code

Add to your project's .mcp.json file:

{
  "mcpServers": {
    "eufylife": {
      "command": "bunx",
      "args": ["eufylife-mcp"],
      "env": {
        "EUFYLIFE_EMAIL": "your@email.com",
        "EUFYLIFE_PASSWORD": "your-password"
      }
    }
  }
}

Or add to .claude/settings.local.json:

{
  "mcpServers": {
    "eufylife": {
      "command": "bun",
      "args": ["run", "src/index.ts"],
      "cwd": "/path/to/eufylife-mcp",
      "env": {
        "EUFYLIFE_EMAIL": "your@email.com",
        "EUFYLIFE_PASSWORD": "your-password"
      }
    }
  }
}

Other MCP Clients

This server uses stdio transport and works with any MCP-compatible client. Point your client at:

bunx eufylife-mcp

Set EUFYLIFE_EMAIL and EUFYLIFE_PASSWORD as environment variables.

Available Tools

login

Authenticate with EufyLife cloud.

Parameter Type Required Description
email string yes EufyLife account email
password string yes EufyLife account password

Returns user ID, customer profiles, and connected devices.

get_measurements

Get the most recent body composition measurement for each user/family member.

Parameter Type Required Description
customer_id string no Filter by specific customer/family member

get_measurement_history

Get historical measurements since a given date.

Parameter Type Required Description
since string no ISO 8601 date (e.g. 2024-01-01)
customer_id string no Filter by specific customer/family member

Returns all measurements after the given date. Omit since to get full history.

list_users

List all customer/family member profiles associated with the account. Returns name, sex, height, birthday, target weight, and member type for each user. No parameters.

get_device_info

List all connected EufyLife devices with model info, product code, BLE MAC, weight unit setting, and room assignment. No parameters.

Available Resources

URI Description
eufylife://users JSON list of customer/family member profiles
eufylife://measurements/{customer_id} Latest measurements for a specific customer

Supported Measurements

All measurements from the EufyLife smart scale scale_data response:

Measurement Unit Field
Weight kg weight_kg
BMI kg/m² bmi
Body Fat % body_fat_pct
Subcutaneous Fat Rate % subcutaneous_fat_rate_pct
Visceral Fat Index index visceral_fat_index
Muscle % muscle_pct
Muscle Mass kg muscle_mass_kg
Skeletal Muscle Mass kg skeletal_muscle_mass_kg
BMR (Basal Metabolic Rate) kcal/day bmr_kcal
Bone kg bone_kg
Bone Mass kg bone_mass_kg
Water % water_pct
Body Age years body_age_years
Protein Ratio % protein_ratio_pct
Visceral Fat level visceral_fat_level
Fat Free Weight kg fat_free_weight_kg
Body Fat Mass kg body_fat_mass_kg
Heart Rate bpm heart_rate_bpm
Body Type type body_type
Height cm height_cm

Not all scales report every measurement. Fields that are unavailable or zero from the API are returned as null.

Supported Devices

This server works with EufyLife smart scales that use the EufyLife cloud API, including:

Model Product Code
Smart Scale P1 T9147
Smart Scale P2 Pro T9149
Smart Scale P3 T9150
Smart Scale C1 T9146
Smart Scale A1 T9960
Smart Scale T9140

Other EufyLife/Anker smart scales that sync to the EufyLife app should also work.

Local Development

# Install dependencies
bun install

# Run the server
bun run src/index.ts

# Type check
bun x tsc --noEmit

# Explore the raw API (requires .env with credentials)
bun run scripts/explore-api.ts

How It Works

This server communicates with the undocumented EufyLife cloud API (api.eufylife.com) used by the official EufyLife iOS/Android app. The API interaction patterns were derived from the eufylife-api-hacs Home Assistant integration.

Key API endpoints:

  • POST /v1/user/v2/email/login — authenticate and get user/device/customer data
  • GET /v1/device/data — fetch scale measurements (supports ?after={timestamp} for incremental)
  • GET /v1/customer/target/{id} — fetch per-customer target weight and goals

Limitations

  • Unofficial API — Uses the undocumented EufyLife cloud API. It may break if EufyLife changes their API.
  • Cloud-only — Requires internet access to fetch data from EufyLife servers. No local/BLE support.
  • Read-only — This server only reads data. It cannot modify settings, delete measurements, or control devices.
  • Token expiry — Tokens are valid for ~30 days. The server auto-refreshes when credentials are stored.

Credits

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选