MyWeight MCP Server

MIT License

MyWeight MCP 服务器

此服务器连接到 Health Planet API,用于访问高柳先生的体重数据。任何兼容 MCP 的客户端都可以使用此服务器来检索和分析体重测量数据。

👉 查看原始网站直接查看数据。

它的作用

  • 检索数据:从 Health Planet API 获取体重记录
  • 适用于任何客户端:兼容所有 MCP 客户端
  • 安全访问:受 OAuth2 身份验证保护

快速入门指南

1. 本地设置并运行

# Clone this repository git clone [repository URL] # Install required packages npm install # Launch the development server npm run dev

您的服务器将在http://localhost:8787运行。

2. 连接您的 MCP 客户端

将此配置添加到您的 MCP 客户端:

{ "mcpServers": { "myweight": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8787/sse" ] } } }

使用 API

获取体重数据

使用fetchInnerScanData工具,您可以检索任何时间段的体重测量值:

参数:

  • from :开始日期/时间,格式为 YYYYMMDDHHmmss(例如, 20240101000000表示 2024 年 1 月 1 日)
  • to :结束日期/时间,格式为 YYYYMMDDHHmmss(例如, 20240131235959表示 2024 年 1 月 31 日)

响应示例:

[ { "date": "2024/01/01", "weight": 65.2 }, { "date": "2024/01/02", "weight": 65.1 } ]

部署到生产环境

要部署到 Cloudflare Workers:

npm run deploy

部署后,使用您的 Cloudflare URL 更新您的 MCP 客户端配置:

{ "mcpServers": { "myweight": { "command": "npx", "args": [ "mcp-remote", "https://[your-worker-name].[your-account].workers.dev/sse" ] } } }

故障排除

连接问题

  • 确保服务器正在运行: npm run dev
  • 如果需要,清除 OAuth 数据: rm -rf ~/.mcp-auth
  • 重置 Wrangler 缓存: rm -rf ~/.wrangler

身份验证问题

  • 如果没有出现身份验证屏幕,请检查您的客户端配置
  • 身份验证失败后,请尝试重新启动 MCP 客户端
-
security - not tested
-
license - not tested
-
quality - not tested

连接到 Health Planet API 的服务器,通过任何兼容 MCP 的客户端获取并提供体重测量数据,从而可以检索和分析个人体重记录。

  1. What It Does
    1. Quick Start Guide
      1. 1. Setup & Run Locally
      2. 2. Connect Your MCP Client
    2. Using the API
      1. Get Weight Data
    3. Deploy to Production
      1. Troubleshooting
        1. Connection Problems
        2. Authentication Issues

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server for tracking personal health and well-being, offering tools for workout logging, nutrition management, and daily journaling with AI-assisted analysis integration.
        Last updated -
        2
        Python
      • -
        security
        A
        license
        -
        quality
        An MCP server that provides healthcare tools for interacting with FHIR data and medical resources on EMRs like Cerner and Epic
        Last updated -
        28
        JavaScript
        MIT License
        • Apple
      • -
        security
        F
        license
        -
        quality
        MCP server that interfaces with the Adjust API, allowing you to query mobile analytics reports, metrics, and performance data using natural language from any MCP client like Cursor or Claude Desktop.
        Last updated -
        250
        1
        TypeScript
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol (MCP) server implementation that interfaces with the Hevy fitness tracking app and its API. This server enables AI assistants to access and manage workout data, routines, exercise templates, and more through the Hevy API (requires PRO subscription).
        Last updated -
        15
        72
        4
        TypeScript
        MIT License

      View all related MCP servers

      ID: vk0gi21ge0