Skip to main content

MCP server for Open Masala — ancestry-adjusted health reference ranges (South Asian biomarker cutoffs, cited).

Project description

Open Masala MCP server

An ancestry-adjusted health reference oracle over the Open Masala dataset, exposed via the Model Context Protocol so any MCP client — Claude Desktop, Claude Code, an agent — can query cited, provenance-tiered reference values as tool calls.

Design principle: it holds no user data

The server is a stateless reference oracle. Tools like evaluate_value take a value as an argument and return a computed, cited result — nothing is stored, and no personal data ever lives here. All handling of a person's actual labs happens in the client / advisor layer (see ../advisor/), never in this server. That's what makes it safe to publish and run anywhere.

Tools

Tool What it does
list_measures() Every analyte/measure in the dataset — the coverage map. Start here.
get_reference(analyte) Ancestry-adjusted range(s)/threshold(s) for an analyte, paired with the general-population value, provenance tier, grade, citations, and overclaim guard. Matches a LOINC code, id, or name.
evaluate_value(analyte, value, sex?, age?) Compare a person's own value against the South-Asian-adjusted threshold; returns a flag status + cited rationale + overclaim guard. Stateless.
screening_for(age, sex?) Which SA-specific screenings/thresholds apply to a person of this age/sex. Cited.
search(query) Free-text search across analytes, notes, guards, and sources.
list_sources() Every unique citation backing the dataset.

Resources

  • open-masala://dataset — the full canonical JSON.
  • open-masala://guidance — the provenance-tier + overclaim usage rules a client should follow.

Install & run

No clone (recommended)uv fetches and runs it from PyPI:

uvx open-masala-mcp

From a source checkout:

pip install "mcp[cli]"
python3 mcp-server/server.py        # or: python -m open_masala_mcp.server

Add to Claude Desktop

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

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

Restart Claude Desktop; the Open Masala tools appear in the tools menu. Now you can ask, e.g., "I'm a South Asian man, 34, BMI 24 — what does Open Masala say?" and Claude will call evaluate_value / screening_for and answer with cited, guard-respecting reference values.

(From a checkout instead of PyPI, use "command": "python3", "args": ["/absolute/path/to/open-masala/mcp-server/server.py"].)

Add to Claude Code

claude mcp add open-masala -- uvx open-masala-mcp

Responsible-use contract

Every tool response includes usage_rules and a disclaimer. Clients (and the LLMs driving them) should:

  • Report the provenance_tier — never present a study-derived value as guideline-backed, and tell the user not to apply a contested-deprecated adjustment.
  • Honor the overclaim_guard on every row.
  • Cite the sources attached to each row.
  • Defer diagnosis and treatment to a clinician.

This is a reference dataset, not a medical device.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_masala_mcp-0.0.1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_masala_mcp-0.0.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file open_masala_mcp-0.0.1.tar.gz.

File metadata

  • Download URL: open_masala_mcp-0.0.1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for open_masala_mcp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d65bc99665d87ef925f93751890030265f4335e7655c8bf7cab5a4249e170d04
MD5 67161fcbdeb60a5737172ff47b603b9c
BLAKE2b-256 9805ad62af875d9e6a1499a4e9787fc4408fbce39ba5027f6b210726c5e681d0

See more details on using hashes here.

File details

Details for the file open_masala_mcp-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for open_masala_mcp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4e4345b87b825a9197602a5de94b0a190aa631bbec25bed4e0e6a0428e7c7c0
MD5 5d9001e3ccc907170ce9ef8c88256f0b
BLAKE2b-256 6e9c13dd25bd064109078590d790858b573cf96763f9521bf98f59f33eabd3f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page