IntegrateIntegrate
Integrations

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

  1. Create an OAuth application for Withings
  2. Configure your redirect URI
  3. 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

Prop

Type

Default Scopes

These defaults are applied unless you override scopes in the integration config:

  • user.info
  • user.metrics
  • user.activity

Tools

withings_get_measurements

Get measurements

Prop

Type

withings_get_activity

Get activity

Prop

Type

withings_get_sleep

Get sleep

Prop

Type

withings_get_workouts

Get workouts

Prop

Type

withings_get_user

Get user

Prop

Type

Notes

  • Category: Fitness
  • Authentication mode: OAuth

On this page