Skip to main content
Glama
shinichi-takayanagi

MyWeight MCP Server

MyWeight MCP 服务器

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

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

它的作用

  • 检索数据:从 Health Planet API 获取体重记录

  • 适用于任何客户端:兼容所有 MCP 客户端

  • 安全访问:受 OAuth2 身份验证保护

Related MCP server: Hevy MCP

快速入门指南

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
A
license - permissive license
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shinichi-takayanagi/myweight-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server