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.2.tar.gz (17.9 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.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: open_masala_mcp-0.0.2.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for open_masala_mcp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1775028a8b20039a6171d70f0d689b6d867f47499054aca6aa948da556d26708
MD5 e33bb0b6611ca317ffb840d3335687ca
BLAKE2b-256 e133e78d1d296c0d598eba206c017f8a6508e5f1da1a2ea79445af7d77aba3f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: open_masala_mcp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for open_masala_mcp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 588882a58f93ecb5f9ff9ffde6858870a256dacdd452e7dd9c0689edc672c948
MD5 de07c389c735a55461f0f6d1b0698fac
BLAKE2b-256 f8a90b8a15c25575f77b47377b5032295d432d458528e8f439b85c56b1f71709

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