Suparch
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Suparchfind vegan vitamin D3 supplements"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Suparch
Search supplements by what's inside.
Suparch is an open-source MCP server for searching, comparing, and calculating structured supplement facts. It provides label data and deterministic calculations; it does not diagnose conditions or recommend supplements.
Current tools
search_products: search by product text, included ingredients, excluded ingredients, ingredient forms, product type, target group, brand, and price.get_product: return the complete normalized label record for a product.compare_products: compare per-serving ingredients and forms.calculate_stack: add known label amounts for user-supplied daily servings.get_catalog_info: report snapshot schema, size, timestamps, and product count.
Production deployments use an immutable SQLite snapshot opened in read-only mode. The crawler and catalog builder run separately from the public MCP process, which makes the server suitable for ephemeral MCP Hub containers.
Related MCP server: Wellness Nourish
English Kroger API MVP
The default acquisition path uses Kroger's public Products API for English product identity, UPC, current USD price, and location-scoped availability. It does not scrape retailer HTML. Create a Kroger developer application, choose a store location ID, and keep the OAuth credentials outside the repository:
export KROGER_CLIENT_ID=<client-id>
export KROGER_CLIENT_SECRET=<client-secret>
uv run suparch-catalog kroger-sync \
--location-id 01400943 \
--term vitamin \
--term magnesium \
--category "vitamins & supplements" \
--category "sports nutrition" \
--limit-per-term 100 \
--output build/kroger-products.jsonl \
--report build/kroger-sync-report.jsonKroger prices depend on --location-id. Overlapping query results are
deduplicated, and non-supplement categories are rejected. Without explicit
--category values the filter accepts common supplement-only categories such
as vitamins & supplements, dietary supplements, and sports nutrition.
The report records products without a valid GTIN or price. Each retained offer
carries its Kroger location ID and available fulfillment modes into MCP
responses.
Credentials are accepted only through KROGER_CLIENT_ID and
KROGER_CLIENT_SECRET, so they do not appear in command history.
Kroger offers do not contain dependable Supplement Facts. Sync DSLD labels and join them by UPC before building the public catalog:
uv run suparch-catalog dsld-sync \
--query "*" \
--status on-market \
--limit 1000 \
--output build/dsld-products.jsonl
uv run suparch-catalog enrich-dsld \
--products build/kroger-products.jsonl \
--dsld build/dsld-products.jsonl \
--output build/enriched-products.jsonl \
--report build/dsld-enrichment-report.json \
--require-label \
--database build/catalog.sqliteUse several focused supplement terms for a toy catalog. A production snapshot should use a deliberate query inventory and inspect coverage reports before publication.
Optional authorized iHerb affiliate feed
The optional importer accepts an approved iHerb affiliate catalog as UTF-8 CSV or CSV.GZ.
It deliberately keeps one market contract: English (en-US), USD prices, and
HTTPS iherb.com product URLs. Rows outside an English supplement category or
with another currency are excluded.
uv run suparch-catalog import-iherb-feed \
--input build/iherb-us-feed.csv.gz \
--report build/iherb-import-report.json \
--min-products 1 \
--min-gtin-coverage 0 \
--output build/iherb-products.jsonl--min-products and --min-gtin-coverage are atomic publication gates. Set
them after inspecting the first approved feed rather than guessing production
thresholds. A failed gate preserves the previous product output and writes a
non-product report containing counts and coverage ratios.
The importer recognizes common Impact and retail-feed column names for product
name, brand/manufacturer, URL, current price, currency, GTIN/UPC, and category.
It derives the canonical iHerb product ID from the /pr/ URL, validates GTIN
check digits, removes duplicate products, and reports every skipped row class.
Use repeated --category options when an approved feed uses additional English
category names:
uv run suparch-catalog import-iherb-feed \
--input build/iherb-us-feed.csv.gz \
--category supplement \
--category "sports nutrition" \
--output build/iherb-products.jsonlAffiliate catalogs usually provide offers rather than complete Supplement
Facts. Run the DSLD enrichment step below before relying on ingredient search,
comparison, or stack calculation. A direct --database build is useful for
offer/name search but can contain products without label rows.
NIH DSLD label enrichment
NIH's Dietary Supplement Label Database (DSLD) supplies label facts when a retail record can be matched by UPC. Standalone DSLD records must not be presented as retailer inventory or current offers.
Sync a resumable DSLD JSONL enrichment source:
uv run suparch-catalog dsld-sync \
--query magnesium \
--status on-market \
--limit 1000 \
--output build/dsld-products.jsonlThen enrich a Kroger or authorized affiliate Product JSON/JSONL source by UPC:
uv run suparch-catalog enrich-dsld \
--products build/kroger-products.jsonl \
--dsld build/dsld-products.jsonl \
--output build/enriched-products.jsonl \
--report build/dsld-enrichment-report.json \
--min-label-coverage 0 \
--require-label \
--database build/catalog.sqliteEnrichment also fails atomically when it produces no products or misses the
operator-selected --min-label-coverage. The report separates UPC matches from
products that actually contain ingredient rows.
Use --limit 0 for the complete matching result set. The sync uses bounded
concurrency and retries, flushes each page to disk, resumes by DSLD label ID,
and repairs a truncated final JSONL record after an interrupted write. A sync
sidecar pins the query, market status, limit, API, and parser version so
incompatible runs cannot be mixed. Resume is only for interrupted runs; use
--no-resume to refresh a completed snapshot and reconcile changed labels.
Quick start
uv sync --extra dev
uv run suparchSuparch uses the bundled sample catalog by default. To use another catalog:
uv run suparch-catalog build \
--input src/suparch/data/sample_catalog.json \
--output catalog.sqlite
SUPARCH_DB_PATH=./catalog.sqlite uv run suparchRun the MCP development inspector:
uv run mcp dev src/suparch/server.pyRun checks:
uv run pytest
uv run ruff check .Build and verify a catalog
uv run suparch-catalog build \
--input products.json \
--output catalog.sqlite
uv run suparch-catalog verify \
--database catalog.sqliteThe builder writes to a temporary file, runs SQLite integrity checks, and publishes the final database with an atomic rename. It also creates:
catalog.sqlite.sha256
catalog.sqlite.manifest.jsonInputs may be a JSON object, JSON array, or JSONL file. Repeat --input to
merge multiple normalized files into one snapshot.
Parse a saved iHerb product page
uv run suparch-catalog parse-html \
--input product.html \
--url https://www.iherb.com/pr/example-product/12345 \
--output product.jsonDiscover product references from iHerb's published sitemap without using its disallowed search path:
uv run suparch-catalog iherb-discover \
--limit 1000 \
--output build/iherb-product-refs.jsonlThe sitemap contains multiple iHerb departments, so these references are only discovery input. An authorized feed or page-ingestion job must filter the supplement category before publishing a Suparch catalog.
To merge the parsed product directly into a catalog snapshot:
uv run suparch-catalog parse-html \
--input product.html \
--url https://www.iherb.com/pr/example-product/12345 \
--database catalog.sqliteFor batch ingestion, use a manifest so the catalog is loaded and published only once:
[
{
"input": "pages/product-12345.html",
"url": "https://www.iherb.com/pr/example-product/12345",
"locale": "en-US"
}
]uv run suparch-catalog parse-manifest \
--manifest crawl-manifest.json \
--database catalog.sqliteSingle-page live fetching exists for development but is disabled unless the
operator explicitly passes --allow-live-fetch. It checks the current
robots.txt, rate limits requests, and does not implement authentication,
anti-bot bypass, or browser fingerprint evasion. Operators remain responsible
for reviewing the site's current terms before using it.
At the time of the latest project check, standard product paths were allowed by the published robots rules, but unauthenticated product requests returned HTTP 403. Suparch preserves that fail-closed behavior. See docs/data-sources.md for approved-input options and the official affiliate path.
Hub deployment
Hub deployments require an API- or feed-backed retail catalog. Suparch does not ship NIH records as a substitute for inventory, pricing, or availability.
Run the stateless Streamable HTTP transport:
SUPARCH_TRANSPORT=streamable-http \
SUPARCH_HOST=0.0.0.0 \
PORT=8000 \
SUPARCH_DB_PATH=/data/catalog.sqlite \
uv run suparchIf the Hub cannot mount persistent files, publish the catalog to versioned object storage:
SUPARCH_CATALOG_URL=https://cdn.example.com/catalog-2026-07-16.sqlite \
SUPARCH_CATALOG_SHA256=<sha256> \
SUPARCH_TRANSPORT=streamable-http \
uv run suparchSuparch downloads and validates the artifact during startup, then opens it
read-only. The MCP endpoint defaults to /mcp.
Build the container:
docker build -t suparch .
docker run --rm -p 8000:8000 \
-e SUPARCH_CATALOG_URL=https://cdn.example.com/catalog.sqlite \
-e SUPARCH_CATALOG_SHA256=<sha256> \
suparchIf SUPARCH_CATALOG_SHA256 is omitted for a custom URL, Suparch derives the
manifest URL by appending .manifest.json. Set
SUPARCH_CATALOG_MANIFEST_URL only when the manifest lives elsewhere.
MCP Registry
The repository includes an official Registry-compatible server.json for the
OCI package ghcr.io/namjeongwan/suparch. Version tags such as v0.1.0
publish the corresponding image through GitHub Actions. Registry publication
should only run after that exact image tag is publicly available.
JSON catalog format
[
{
"id": "source:product-id",
"source": "example",
"source_product_id": "product-id",
"name": "Magnesium Glycinate",
"brand": "Example Labs",
"serving_size": "2 capsules",
"servings_per_container": 60,
"active_ingredients": [
{
"canonical_name": "magnesium",
"label_name": "Magnesium",
"form": "magnesium glycinate",
"amount": "200",
"unit": "mg",
"normalized_amount": "200000",
"normalized_unit": "mcg",
"daily_value_percent": "48"
}
],
"other_ingredients": ["hypromellose"],
"price": {
"amount": "19.99",
"currency": "USD"
},
"product_url": "https://example.com/products/product-id",
"crawled_at": "2026-07-16T00:00:00Z"
}
]All label strings are preserved alongside normalized values. Normalization must never destroy the source label text.
DSLD quantity and daily-value operators are preserved. Non-equality amounts
such as < 1 g remain visible in label details but are excluded from stack
arithmetic because they are not exact values. When a label provides different
daily values for adults, children, pregnancy, or lactation, every target-group
entry is returned instead of presenting the first percentage as universal.
Search results return compact summaries with at most 20 canonical ingredient
names plus the total ingredient count. Use get_product for the complete label.
Architecture
Kroger Products API -------------------> retail Product JSONL
authorized affiliate feed ------------> retail Product JSONL
|
DSLD enrichment by UPC
|
v
immutable SQLite snapshot
|
MCP client -> stateless Suparch server -> read-only repositoryThe MCP layer only retrieves and calculates product facts. Domain-specific skills or clients remain responsible for interpreting symptoms, selecting nutrient targets, and presenting medical guidance.
See docs/architecture.md for the deployment and data publication design.
Environment variables
Variable | Purpose |
| Read-only SQLite file mounted into the runtime |
| Operator-managed pointer containing an immutable catalog URL and SHA-256 |
| HTTPS SQLite artifact downloaded on startup |
| Optional custom manifest URL; defaults to |
| Optional artifact checksum |
| Download destination, default |
|
|
| HTTP bind host |
| HTTP port |
| Streamable HTTP endpoint, default |
iHerb data acquisition
iHerb's current robots policy disallows automated /search URLs and advertises
product sitemaps. Standard product pages are not disallowed by path, but
unauthenticated crawler requests currently receive HTTP 403. Suparch does not
evade that access control.
The production path is:
approved iHerb affiliate feed/API or operator-supplied pages
-> iHerb Product records
-> optional DSLD enrichment by UPC
-> immutable SQLite snapshot
-> read-only MCPiHerb lists Partnerize, Impact, CJ, and Awin as official affiliate platforms and explicitly accepts shopping-comparison partners. An approved feed or written data-access permission is therefore the next external dependency. See docs/affiliate-onboarding.md for the exact application text, requested feed fields, licensing questions, and safe handoff.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceMCP server to search npm packages, view details, compare, check downloads, and inspect dependencies.633MIT
- AlicenseAqualityAmaintenanceA local-first nutrition MCP server for food search, barcode lookup, meal estimation, intake logging, hydration, and nutrition coaching workflows.464128MIT
- AlicenseAqualityDmaintenanceMCP server for Open Food Facts, enabling food product lookup by barcode, search, nutrition facts, allergen checks, and eco-scores without an API key.8MIT
- AlicenseAqualityBmaintenanceEvidence-based supplement recommendation MCP server covering 17 supplements and 40+ conditions with medication interaction checking and form quality classification.548MIT
Related MCP Connectors
Academic research MCP server for paper search, citation checks, graphs, and deep research.
An MCP server for deep research or task groups
MCP server for doc2mcp documentation, generated by doc2mcp.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/namJeongwan/suparch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server