Withings Integration
Manage Withings get measurements, get activity, get sleep, get workouts, get user
The Withings integration provides access to manage Withings get measurements, get activity, get sleep, get workouts, get user through the Integrate MCP server.
Installation
The Withings integration is included with the SDK:
import { withingsIntegration } from "integrate-sdk/server";Setup
1. Create a Withings OAuth App
- Create an OAuth application for Withings
- Configure your redirect URI
- Note your Client ID and Client Secret
2. Configure the Integration on Your Server
Add the Withings integration to your server configuration. The integration automatically reads WITHINGS_CLIENT_ID and WITHINGS_CLIENT_SECRET from your environment variables:
import { createMCPServer, withingsIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
withingsIntegration({
scopes: ["user.info", "user.metrics", "user.activity"], // Optional
}),
],
});You can override the environment variables by passing explicit values:
withingsIntegration({
clientId: process.env.CUSTOM_WITHINGS_ID,
clientSecret: process.env.CUSTOM_WITHINGS_SECRET,
scopes: ["user.info", "user.metrics", "user.activity"], // Optional
});3. Client-Side Usage
The default client automatically includes all integrations. You can use it directly:
import { client } from "integrate-sdk";
await client.authorize("withings");
const result = await client.withings.getMeasurements({});
console.log(result);If you're using a custom client, add the integration to the integrations array:
import { createMCPClient, withingsIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [withingsIntegration()],
});Configuration Options
export interface WithingsIntegrationConfig {
clientId?: string;
Default Scopes
These defaults are applied unless you override scopes in the integration config:
user.infouser.metricsuser.activity
Tools
withings_get_measurements
Get measurements
export interface WithingsGetMeasurementsParams { "action"?: string;
withings_get_activity
Get activity
export interface WithingsGetActivityParams { "action"?: string;
withings_get_sleep
Get sleep
export interface WithingsGetSleepParams { "action"?: string;
withings_get_workouts
Get workouts
export interface WithingsGetWorkoutsParams { "action"?: string;
withings_get_user
Get user
export interface WithingsGetUserParams { "action"?: string }
Notes
- Category: Fitness
- Authentication mode: OAuth