- Home
- MCP servers
- MyWeight
MyWeight
- javascript
0
GitHub Stars
javascript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
The MyWeight MCP Server lets you access Takayanagi-san’s weight measurements from the Health Planet API and share that data with any MCP-compatible client. It’s useful for building dashboards, trends, and analyses across multiple tools that speak MCP.
How to use
You run the server locally and connect your MCP client to its streaming endpoint to retrieve weight data. The server serves weight measurements for any requested period and can be used alongside other MCP servers to create a unified data workflow.
Start the server locally and keep it running to allow your MCP client to subscribe to real-time updates and periodic data fetches from Health Planet.
Connect an MCP client by adding a server configuration that points to the local streaming endpoint. The standard local URL is http://localhost:8787/sse, which the client uses to fetch data and receive updates.
How to install
Prerequisites you need before installation:
Step-by-step commands to set up and run locally:
# Clone this project
git clone https://github.com/shinichi-takayanagi/myweight-mcp-server.git
# Install required packages
npm install
# Launch the development server
npm run dev
Connecting your MCP client
Configure your MCP client to use the local server. The following configuration points the client to the local streaming endpoint and enables data retrieval through MCP.
{
"mcpServers": {
"myweight": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse"
]
}
}
}
Using the API
You can request weight measurements for a specific time period using the fetchInnerScanData tool. Provide a time window with from and to parameters to retrieve data in a simple list of date and weight values.
Parameters you can use:
Example response structure shows a simple array of date-weight pairs.
[
{
"date": "2024/05/30",
"weight": 65.2
},
{
"date": "2024/05/31",
"weight": 65.1
}
]
Available tools
fetchInnerScanData
Retrieves weight measurements for a specified time period using the fetchInnerScanData tool. You provide a start and end timestamp, and the tool returns a list of date-weight records.