# supstack [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/DrBaher/supstack-cli  
**GitHub Stars:** 0  
**npm Downloads (last month):** 878  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/supstack

## Description
Evidence-based supplement research, dosing, safety, and interactions as agent-callable tools.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "supstack": {
    "command": "npx",
    "args": ["-y","@supstack/cli"]
  }
}
```

## Documentation

## What supstack does

supstack exposes the SupStack supplement intelligence API through an MCP server and a command-line client. The MCP entry point is started with `supstack mcp`, allowing compatible agents to call supplement research and account-related capabilities as tools.

The read-only toolset supports evidence summaries for individual supplements, searches by supplement or goal, side-by-side comparisons, research-library queries, interaction checks, stack operations, stack ratings, exports, and glossary lookups. These capabilities are intended for investigating supplements, checking combinations, and working with a locally maintained stack.

Account-backed features add personalized recommendations, health-profile access and updates, N-of-1 experiment records, adherence logging, and cloud synchronization for stack data. Account access is optional for anonymous reads.

## How it works

supstack is a thin client over the public SupStack API. The CLI and MCP server use the same capability registry, so the MCP interface exposes the capabilities represented by the command-line tool. Start the stdio server with:

```bash
supstack mcp
```

Read-only API responses are cached locally under `~/.supstack/cache/`, with a one-hour default lifetime. Caching can be bypassed globally with `SUPSTACK_NO_CACHE` or per command with `--no-cache`. The API allows anonymous use, and an optional API key can be configured for access through `SUPSTACK_API_KEY`.

Authentication uses the SupStack device-code flow. Running `supstack login` opens the activation page and stores the resulting token in `~/.supstack/config.json`. The MCP process can instead receive an account token through `SUPSTACK_TOKEN`. Account-scoped calls made without authentication return a not-logged-in error.

## Setup and configuration

Install the CLI with Homebrew, npm, or `npx`:

```bash
npm install -g @supstack/cli
```

Then configure an MCP client to launch `supstack mcp`. Claude Code can register it with `claude mcp add supstack -- supstack mcp`. Claude Desktop uses a server entry with `command` set to `supstack` and `args` set to `["mcp"]`. An `npx` command or a built local Node.js entry point can also be used.

The API URL defaults to `https://supstack.me/api/v1` and can be changed with `SUPSTACK_API_URL`. Other configuration includes `SUPSTACK_TIMEOUT` for request timeouts, `SUPSTACK_HOME` for local files, `SUPSTACK_CACHE_TTL` for cache duration, and `SUPSTACK_NO_ANON_TOKEN` to disable automatic anonymous-token creation. `SUPSTACK_API_KEY` and `SUPSTACK_TOKEN` are optional.

## Tools and capabilities

The read-only MCP tools include:

- `supstack_research` for a full evidence summary of a supplement.
- `supstack_search` for supplement and goal-based searches.
- `supstack_compare` for comparing two or three supplements.
- `supstack_studies` for querying the research library.
- `supstack_interactions` for supplement combinations and supplement-by-medication checks, including pathway and route details.
- `supstack_stack` for local stack actions and authenticated cloud pull, push, or sync operations.
- `supstack_rate_stack` for grading stack coverage against goals.
- `supstack_export` for exporting stack data.
- `supstack_define` for glossary lookups.

Authenticated tools cover recommendations, profile retrieval and updates, experiment listing and retrieval, adherence logging, and adherence summaries. Profile updates and tracking logs are mutating operations and are marked as not read-only for agents.

## Limitations and notes

The MCP server communicates with the SupStack API and is read-only by default; account-scoped and mutating behavior depends on a signed-in account. Anonymous use is subject to the API's anonymous rate limit, described as 60 requests per minute per IP. Local response caching helps reduce repeated requests, but it can be disabled when fresher results are needed.

The server uses stdio transport. Invalid input, authentication failures, missing resources, rate limits, network failures, and timeouts are represented by distinct CLI exit codes, which can help scripts and wrappers classify failures. Sensitive local configuration and tokens are stored beneath the configured SupStack home directory, with the login configuration file written using restrictive permissions.

_Full upstream README: https://allmcps.com/mcp/supstack/readme_

