NHANES (design-correct survey analysis)

v0.5.1
com.blackswancausallabs/nhanes-mcp Checked 3 days ago Published 2 months ago

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

Values you need

VariableWhat it is
NHANES_MCP_CACHEoptional Folder for downloaded NHANES files (default ~/.cache/nhanes-mcp)
NHANES_MCP_DATA_DIRoptional Folder of manually downloaded .xpt files, for offline use

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add nhanes-mcp -- uvx nhanes-mcp==0.5.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "nhanes-mcp": {
      "args": [
        "nhanes-mcp==0.5.1"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "nhanes-mcp": {
      "args": [
        "nhanes-mcp==0.5.1"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "nhanes-mcp": {
      "args": [
        "nhanes-mcp==0.5.1"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.nhanes-mcp]
command = "uvx"
args = ["nhanes-mcp==0.5.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_cycles, analysis_guidance, list_files, search_variables, describe_variable, build_dataset, describe_dataset, set_weight, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json