プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

NHANES (design-correct survey analysis)

✓ blackswancausallabs.com

作者:Black-Swan-Causal-Labsバージョン 0.5.1i★ 2iパソコンで動く公式サイト ↗
レジストリ名com.blackswancausallabs/nhanes-mcp

インストール方法

What it does

Design-correct NHANES analysis: survey weights, pooled cycles, CIs and NCHS reliability flags.

  • Connects パソコンで動く
  • Account or key No key needed
  • Category デザイン・画像・音声

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

impeccable

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

作者:pbakaus★ 113,0421 個の skill

Skill · 手順書

diagram-design

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

作者:cathrynlavery★ 68,2961 個の skill

Skill · 手順書

frontend-slides

Create beautiful slides on the web using a coding agent's frontend skills

作者:zarazhangrui★ 32,5791 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気6/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ7/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア13/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

NHANES (design-correct survey analysis) をインストールして。https://mcp.popnx.com/i/blackswancausallabs-nhanes-mcp.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月14日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server NHANES (design-correct survey analysis) を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "nhanes": { "command": "uvx", "args": [ "nhanes-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、NHANES (design-correct survey analysis) のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "nhanes": {
          "command": "uvx",
          "args": [
            "nhanes-mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    NHANES (design-correct survey analysis) を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が NHANES (design-correct survey analysis) を使っていると言うか、回答に NHANES (design-correct survey analysis) のツール名が出れば接続成功です

追加の設定 2 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • NHANES_MCP_CACHE ダウンロードした NHANES ファイル用のフォルダ(既定値 /.cache/nhanes-mcp)
    英語の原文を見るFolder for downloaded NHANES files (default ~/.cache/nhanes-mcp)
  • NHANES_MCP_DATA_DIR 手動でダウンロードした .xpt ファイルのフォルダ(オフライン利用向け)
    英語の原文を見るFolder of manually downloaded .xpt files, for offline use

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ NHANES (design-correct survey analysis) につなげません

NHANES (design-correct survey analysis) はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · NHANES (design-correct survey analysis) につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · デザイン・画像・音声 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server NHANES (design-correct survey analysis) を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user nhanes -- uvx nhanes-mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、NHANES (design-correct survey analysis) のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user nhanes -- uvx nhanes-mcp
  4. Claude Code で /mcp と入力

    NHANES (design-correct survey analysis) が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    NHANES (design-correct survey analysis) を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が NHANES (design-correct survey analysis) を使っていると言うか、回答に NHANES (design-correct survey analysis) のツール名が出れば接続成功です

追加の設定 2 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • NHANES_MCP_CACHE ダウンロードした NHANES ファイル用のフォルダ(既定値 /.cache/nhanes-mcp)
    英語の原文を見るFolder for downloaded NHANES files (default ~/.cache/nhanes-mcp)
  • NHANES_MCP_DATA_DIR 手動でダウンロードした .xpt ファイルのフォルダ(オフライン利用向け)
    英語の原文を見るFolder of manually downloaded .xpt files, for offline use

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server NHANES (design-correct survey analysis) を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "nhanes": { "command": "uvx", "args": [ "nhanes-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、NHANES (design-correct survey analysis) のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    NHANES (design-correct survey analysis) を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が NHANES (design-correct survey analysis) を使っていると言うか、回答に NHANES (design-correct survey analysis) のツール名が出れば接続成功です

追加の設定 2 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • NHANES_MCP_CACHE ダウンロードした NHANES ファイル用のフォルダ(既定値 /.cache/nhanes-mcp)
    英語の原文を見るFolder for downloaded NHANES files (default ~/.cache/nhanes-mcp)
  • NHANES_MCP_DATA_DIR 手動でダウンロードした .xpt ファイルのフォルダ(オフライン利用向け)
    英語の原文を見るFolder of manually downloaded .xpt files, for offline use

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server NHANES (design-correct survey analysis) を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "nhanes": { "type": "stdio", "command": "uvx", "args": [ "nhanes-mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、NHANES (design-correct survey analysis) のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    NHANES (design-correct survey analysis) を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が NHANES (design-correct survey analysis) を使っていると言うか、回答に NHANES (design-correct survey analysis) のツール名が出れば接続成功です

追加の設定 2 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • NHANES_MCP_CACHE ダウンロードした NHANES ファイル用のフォルダ(既定値 /.cache/nhanes-mcp)
    英語の原文を見るFolder for downloaded NHANES files (default ~/.cache/nhanes-mcp)
  • NHANES_MCP_DATA_DIR 手動でダウンロードした .xpt ファイルのフォルダ(オフライン利用向け)
    英語の原文を見るFolder of manually downloaded .xpt files, for offline use

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?NHANES (design-correct survey analysis) を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user nhanes -- uvx nhanes-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "nhanes": {
      "command": "uvx",
      "args": [
        "nhanes-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "nhanes": {
      "command": "uvx",
      "args": [
        "nhanes-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "nhanes": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "nhanes-mcp"
      ]
    }
  }
}

自分で入力する値

  • NHANES_MCP_CACHE env
    ダウンロードした NHANES ファイル用のフォルダ(既定値 /.cache/nhanes-mcp)
    英語の原文を見るFolder for downloaded NHANES files (default ~/.cache/nhanes-mcp)
  • NHANES_MCP_DATA_DIR env
    手動でダウンロードした .xpt ファイルのフォルダ(オフライン利用向け)
    英語の原文を見るFolder of manually downloaded .xpt files, for offline use

説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
36/週
確認済みドメイン
✓ blackswancausallabs.com
接続方法
パソコンで動く
最新バージョンi
0.5.1
レジストリ公開日i
2026年10月5日
コードの最終更新i
2026年10月5日
作者
Black-Swan-Causal-Labs
パッケージ
pypi: nhanes-mcp
ウェブサイト
blackswancausallabs.com
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月19日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名はドメイン blackswancausallabs.com で確認済みです(レジストリがドメインの所有を確認しています)

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:先月

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

OSV.dev に nhanes-mcp@0.5.1 の登録はありません

このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月15日

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/blackswancausallabs-nhanes-mcp.svg)](https://mcp.popnx.com/en/servers/blackswancausallabs-nhanes-mcp)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

デザイン・画像・音声のほかのサーバーとの比較i

  • このカテゴリのほかの3303件のうち86%よりスターが多い
  • このカテゴリのほかの3303件のうち36%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの3303件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

NHANES (design-correct survey analysis)は安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は先月、最新バージョン(0.5.1)がレジストリに届いたのは先月です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:HyperFrames by HeyGen, Pascal 3D Editor, draw.io, Figma MCP Server, Remocn: Remotion MCP server

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

HyperFrames by HeyGen

Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.

作者:heygen-com広く使われている★ 8.7万 リポジトリ全体のスター昨日更新

クラウドで動く✓ heygen.com

Pascal 3D Editor

Create, inspect, validate, and save editable 3D building scenes with Pascal's MCP server.

作者:pascalorg広く使われている↓ 1037/週★ 2.6万 リポジトリ全体のスター昨日更新

パソコンでもクラウドでも✓ 提供元 · pascal.app

draw.io

Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.

作者:jgraph広く使われている★ 5854一昨日更新

クラウドで動く✓ 提供元 · draw.ioPopNx チームが実際に試用

Figma MCP Server

The Figma MCP server brings Figma design context directly into your AI workflow.

作者:figma広く使われている★ 221113 か月前更新

クラウドで動く✓ 提供元 · mcp.figma.com
似たものと比べる
これ
NHANES (design-correct survey analysis)
HyperFrames by HeyGenPascal 3D Editordraw.ioFigma MCP ServerRemocn: Remotion MCP server
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使えるクラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえはいいいえいいえはいいいえ
基本チェック3/34/45/54/44/44/4
ライセンスMITApache-2.0MITApache-2.0–MIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

nhanes-mcp

An MCP server for design-correct, conversational access to NHANES public-use data. Black Swan Causal Labs · MIT license · v0.5 · PyPI · MCP Registry

Most "chat with a dataset" layers let an agent compute an unweighted mean. With NHANES that answer is wrong. This server makes the defensible analysis the default: the agent asks a question in plain language, and the server finds the files, merges them on SEQN, picks the right weight, keeps the full survey design, and reports design-based estimates with NCHS reliability flags.

Not affiliated with, or endorsed by, NCHS or CDC. Data are the public-use NHANES files

published by the National Center for Health Statistics and downloaded directly from cdc.gov.

Users are responsible for following the NCHS data use agreement.

What it handles for you

PitfallWhat the server does
Wrong / no weightbuild_dataset picks the most restrictive weight (interview → MEC → fasting / phlebotomy / surplus-serum subsample → dietary day-1/day-2), explains why, and stores it in WT_ANALYSIS. Overrides (build_dataset(weight=...), set_weight) are reported with every result; WT_ANALYSIS cannot be overwritten silently
Subsetting before estimationdomain= expressions keep the full design (zero weight outside the domain)
Pooling cyclesWeights rescaled by cycle years / total years (2017–March 2020 counts as 3.2 years); 1999–2002 uses 4-year weights; strata made cycle-unique; refuses 2017–2018 + 2017–2020 overlap
Long-format tables (e.g. prescriptions)Refuses to join tables with repeated SEQN (which would silently duplicate weights); flag_from_long_table collapses them to one row per person
Refused / don't-know codesdescribe_variable reads the CDC codebook and suggests sentinel codes; set_missing recodes them
Silent 0 for missingderive_variable propagates missingness (any / all / none); coalesce, fillna, isna, notna, where handle missingness deliberately
Irregular file namesTries known variants (e.g. 1999–2000 surplus-serum files SSCMV_A, SSMUMP_A)
VarianceTaylor linearization, strata × PSU, design df; Korn–Graubard CIs and NCHS 2017 reliability flags for proportions
Age adjustmentDirect adjustment to the 2000 US standard (20–39 / 40–59 / 60+) with linearized SE, or to any caller-supplied standard (age groups + population), with a warning for in-domain records outside the groups
MortalityOptional join of the public-use Linked Mortality File (follow-up through 2019) and a design-based Cox model

Tools (17)

StepTools
Orientlist_cycles, analysis_guidance
Findlist_files, search_variables, describe_variable
Buildbuild_dataset (optional mortality join), describe_dataset
Clean / deriveset_missing, derive_variable, flag_from_long_table, set_weight
Analyzesurvey_frequency, survey_estimate, survey_regression (linear / logistic), survey_cox (Cox PH, Binder variance)
Presentshow_results — text + structured results; interactive view with the optional Results Explorer add-on
Exportexport_dataset

Cycles: 1999–2000 through 2017–2018, 2017–March 2020 (pre-pandemic, P_ files) and August 2021–August 2023.

Results Explorer (optional add-on)

show_results returns design-based results as text plus structured data in every client. With the optional NHANES Results Explorer add-on installed, MCP Apps hosts (Claude Desktop/web, ChatGPT, VS Code, Goose) also render an interactive view: headline estimate with CI and NCHS reliability badge, a crude / age-adjusted toggle that re-runs the estimate on the server, the analysis plan, subgroup panels, server warnings, benchmarks against published estimates, and design provenance.

The add-on is a separate package from Black Swan Causal Labs under the PolyForm Noncommercial License 1.0.0 (free for academic, public-health and other noncommercial use; commercial use needs a license — https://blackswancausallabs.com). It is not part of this MIT repository. nhanes-mcp finds it if it is installed in the same Python environment, if NHANES_MCP_EXPLORER_PATH points to it, or if a folder named nhanes-mcp-explorer sits next to the nhanes-mcp folder.

Validation

Estimates were checked against published NCHS results (validation/):

  • Prevalence: 57 of 57 published NCHS estimates reproduced (Data Briefs 360, 363, 508, 515; pooled 2015–2018; 2017–March 2020 pre-pandemic).
  • Standard errors: 20 of 20 match; 11 of 12 published 95% CI bounds identical (the 12th differs by 0.1 at a rounding edge).
  • Mortality: a design-based Cox model on NHANES 1999–2006 (adults 25+) reproduces 6 of 7 published hazard ratios within their CIs (NHSR 155). The Mexican American contrast does not reproduce (0.71 vs 1.12 published); this is under investigation and the linked file here has longer follow-up (2019 vs 2015).
  • Hypertension (NCHS Data Brief 511, 2021–2023, adults 18+): prevalence (crude and age-adjusted, by sex and age), awareness, treatment and control — 17 of 17 published estimates reproduced exactly.
  • CMV seroprevalence (Bate et al., *Clin Infect Dis* 2010; NHANES 1999–2004, ages 6–49, surplus-serum weights): see tests/benchmark_nchs.py. Before v0.4 the server silently used MEC weights here and could not load the 1999–2000 file.
  • Unit tests (tests/): variance checked against an independent loop implementation and a delete-one-PSU jackknife; Cox model checked against statsmodels PHReg and a jackknife; weight selection, pooling, guards, expression semantics, long-table and dietary-weight handling.

Install

Easiest: let your AI assistant do it

Paste this into Claude (Cowork or Claude Code), or any agent that can run commands on your computer:

Install the nhanes-mcp MCP server (PyPI package nhanes-mcp) for Claude Desktop. Install uv if it is

missing, then add this entry to my Claude Desktop config (claude_desktop_config.json), using the full

path to uvx: "nhanes": {"command": "uvx", "args": ["nhanes-mcp"]}.

Keep my existing servers. Then tell me to restart Claude Desktop.

One line in the config (uvx)

With uv installed, add to claude_desktop_config.json and restart Claude Desktop (on macOS use the full path from which uvx, e.g. /Users/ /.local/bin/uvx):

"nhanes": {

"command": "uvx", "args": ["nhanes-mcp"] }

uvx fetches the server from PyPI into an isolated environment on first launch; no clone or virtual environment to manage. To run the latest code from GitHub instead, use "args": ["--from", "git+https://github.com/Black-Swan-Causal-Labs/nhanes-mcp", "nhanes-mcp"].

From source (for development)
python3 -m venv ~/.nhanes-mcp-venv

~/.nhanes-mcp-venv/bin/pip install "mcp>=1.2,<2" pandas numpy scipy pyreadstat httpx beautifulsoup4 lxml git clone https://github.com/Black-Swan-Causal-Labs/nhanes-mcp.git ~/nhanes-mcp

"nhanes": {

"command": "/Users/ /.nhanes-mcp-venv/bin/python", "args": ["-m", "nhanes_mcp"], "env": {"PYTHONPATH": "/Users/ /nhanes-mcp"} }

Any MCP client that runs local stdio servers works the same way. Data are downloaded from cdc.gov on first use and cached in ~/.cache/nhanes-mcp (override with NHANES_MCP_CACHE). Set NHANES_MCP_DATA_DIR to a folder of manually downloaded .xpt files to work offline.

Need help setting it up for your team, or adapting it to another survey or dataset? Contact Black Swan Causal Labs.

Tests

python tests/test_offline.py            # synthetic NHANES-shaped data, no network

python tests/test_cox.py python tests/test_long_and_dietary.py python tests/benchmark_nchs.py # reproduces published NCHS estimates (needs network)

Known open issues

  • Age-adjusted adult obesity for 2009–2010 and earlier runs 0.1–0.7 points below NCHS Health E-Stat 111 (2011–2012 onward matches exactly). Pooling and pregnancy-code handling were ruled out; cause under investigation.
  • The CMV analysis finds 14,198 tested participants aged 6–49 in the public surplus-serum files versus 15,310 reported by Bate et al.; unexplained.
  • NHANES III (1988–1994) is not supported.

Changelog

  • 0.5.1 — First release on PyPI (uvx nhanes-mcp) and the official MCP Registry (com.blackswancausallabs/nhanes-mcp). Packaging metadata only; no analysis changes.
  • 0.5.0 — show_results tool (text + structured results; interactive view via the optional Results Explorer add-on); one-command install with uvx; analysis guidance rule 11.
  • 0.4.1 — Comparisons inside missing-aware functions now return missing when an operand is missing, so skip-pattern definitions such as where(BPQ020 == 1, fillna(BPQ150, 2) == 1, 0) are missing (not 0) for people never asked the screener. Hypertension benchmark (NCHS Data Brief 511) added.
  • 0.4.0 — Surplus-serum and other file-specific subsample weights with 2Y/4Y suffixes are detected and pooled; 1999–2000 _A file names resolved; build_dataset(weight=...) and new set_weight tool, both recorded in every result; design columns protected from derive_variable; missing-aware expression functions; custom age standards; CMV benchmark added.
  • 0.3.0 — Initial public release.

Limitations

  • Public-use files only. Restricted-use data (including the NHANES–CMS Medicare/Medicaid linkage) require an NCHS Research Data Center.
  • Variance uses Taylor linearization with PSUs treated as sampled with replacement, as NCHS recommends; replicate weights are not used.
  • The server reports what the data support; it does not choose a study design for you.