A server that connects to the Health Planet API to fetch and provide weight measurement data through any MCP-compatible client, allowing for retrieval and analysis of personal weight records.
This server connects to the Health Planet API to access Takayanagi-san's weight data. Any MCP-compatible client can use this server to retrieve and analyze weight measurements.
š Check out the original website to view the data directly.
# Clone this repository git clone https://github.com/shinichi-takayanagi/myweight-mcp-server.git # Install required packages npm install # Launch the development server npm run dev
Your server will be running at http://localhost:8787
.
Add this configuration to your MCP client:
{ "mcpServers": { "myweight": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8787/sse" ] } } }
With the fetchInnerScanData
tool, you can retrieve weight measurements for any time period:
Parameters:
from
: Starting date/time in YYYYMMDDHHmmss format (e.g., 20240530000000
for May 30, 2024)to
: Ending date/time in YYYYMMDDHHmmss format (e.g., 20240531235959
for May 31, 2024)Example Response:
[ { "date": "2024/05/30", "weight": 65.2 }, { "date": "2024/05/31", "weight": 65.1 } ]
Create a Cloudflare account and login to the Cloudflare Dashboard.
Set up Cloudflare Workers:
Configure your project:
wrangler.toml
file to include your Cloudflare information:name = "your-worker-name" account_id = "your-account-id" workers_dev = true
npm run deploy
{ "mcpServers": { "myweight": { "command": "npx", "args": [ "mcp-remote", "https://[your-worker-name].[your-account].workers.dev/sse" ] } } }
npm run dev
rm -rf ~/.wrangler
wrangler.toml
configurationDiscover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!