immport-mcp

v1.4.0
immport-mcp Checked 7 hours ago Published 29 days ago

MCP server for ImmPort, the NIAID immunology data repository: search studies, fetch study data, assay results and files

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_studies Search Studies

Full-text and faceted search across all ImmPort studies. Returns a compact shape: {total, returned, studies, facets}. 'studies' is a flat list of study records (no OpenSearch envelope/score/highlight noise). 'facets' is omitted unless you pass the facets parameter. Use this as the entry point for any study discovery workflow. No authentication required. Key parameters: - term: partial matching by default ('flu' finds 'influenza'); use quotes for exact phrase (e.g. '"influenza vaccine"') - research_focus: e.g. 'Vaccine Response', 'Allergy', 'Autoimmune' (use lookup_research_focus() for val…

ParameterTypeDescription
age_range
assay_method
biosample_type
clinical_trial
condition_or_disease
ethnicity
facet_limitinteger
facets
from_recordinteger
has_assessment
has_lab_test
include_highlightsboolean
include_scoreboolean
min_age
page_sizeinteger
program_name
race
research_focus
search_fields
sex
sort_fieldstring
sort_field_directionstring
source_fields
species
study_accession
subject_accession
termstring

search_subjects Search Subjects

Full-text and faceted search across all ImmPort subjects/participants. Returns a compact shape: {total, returned, subjects, facets}. 'subjects' is a flat list of subject records (no OpenSearch envelope/score/highlight noise). 'facets' is omitted unless you pass the facets parameter. Useful for cross-study cohort discovery (e.g. find all female subjects in influenza studies). No authentication required. Key parameters: - term: partial matching by default; use quotes for exact phrase - study_accession: filter by specific study IDs, e.g. ['SDY1', 'SDY2'] - subject_accession: filter by specific s…

ParameterTypeDescription
age_range
assay_method
biosample_type
clinical_trial
condition_or_disease
ethnicity
facet_limitinteger
facets
from_recordinteger
has_assessment
has_lab_test
include_scoreboolean
min_age
page_sizeinteger
program_name
race
research_focus
search_fields
sex
sort_fieldstring
sort_field_directionstring
source_fields
species
study_accession
subject_accession
termstring

get_study_data Get Study Data

Get any sub-resource for one or more ImmPort studies by specifying the `resource` parameter. All endpoints require authentication. Use study_accession format SDY#### (e.g. SDY1, SDY305). MULTIPLE STUDIES: study_accession may list up to 20 studies separated by commas (e.g. 'SDY1,SDY269,SDY305') to get one combined result — every row carries studyAccession, so rows can be grouped per study. Studies without data for that resource are simply absent. Prefer one multi-study call over one call per study when comparing studies. Every resource returns a JSON array; 'summary' and 'json_ld' return one…

ParameterTypeDescription
resource *string
study_accession *string

get_study_data_availability Get Study Data Availability

Get a record-count inventory for every ImmPort data category in a study — how many rows have been parsed out of the raw data and stored in the ImmPort database. ⚡ CALL THIS FIRST when assessing what data a study contains. It reads the study's ~5 KB release file listing every ImmPort data category alongside its record count for this specific study. MULTIPLE STUDIES: study_accession may list up to 20 studies separated by commas (e.g. 'SDY180,SDY212') — one call instead of one per study; the result is then a list with one entry per study, in the order given. USE THIS TO AVOID WASTED API…

ParameterTypeDescription
study_accession *string

get_release_notes Get Release Notes

ImmPort data releases and the release history of studies. Data releases are named DR<number> (e.g. DR69, DR58, point releases like DR52.1); version also accepts 58 or dr58. Requires authentication. Modes (chosen by which arguments are given): • study_accession only → each study's release history, newest first: [{studyAccession, briefTitle, releases: [{version, releaseDate, status, releaseNotes}]}]. status is 'Initial' (first released) or 'Updated'. releaseNotes is often null for older releases. study_accession may list up to 20 studies separated by commas. • study_accession + versio…

ParameterTypeDescription
study_accessionstring
versionstring

get_assay_results Get Assay Results

Retrieve assay results for any ImmPort assay type. Select the assay type via the `assay_type` parameter: elisa, elispot, fcs_analyzed, file_paths, hai, hla_typing, kir_typing, mass_spectrometry, mbaa, neut_ab_titer, pcr. ⚠️ SCOPE BEFORE CALLING: The upstream ImmPort API returns ALL matching records with no server-side pagination or aggregation. Large studies (e.g. flow cytometry, lab tests) can return tens of thousands of rows from a single visit — and combining a broad filter (arm_accession or study_time_collected alone) with a large study can time out outright. Always narrow with plan…

ParameterTypeDescription
assay_type *string
study_accession *array
age_event
age_event_specify
age_unit
ancestral_population
arm_accession
arm_name
biosample_accession
biosample_subtype
biosample_type
clinicalstring
ethnicity
experiment_accession
expsample_accession
fields
group_by
limit
max_subject_age
max_subject_age_gt
max_subject_age_gte
max_subject_age_lt
max_subject_age_lte
measurement_technique
min_subject_age
min_subject_age_gt
min_subject_age_gte
min_subject_age_lt
min_subject_age_lte
name_contains
offsetinteger
planned_visit_accession
race
race_specify
sex
species
strain
study_time_collected
study_time_collected_gt
study_time_collected_gte
study_time_collected_lt
study_time_collected_lte
study_time_collected_unit
study_time_t0_event
study_time_t0_event_specify
study_title
subject_accession
subject_phenotype
summarizeboolean
treatment_accession
value_field

lookup_controlled_vocabulary Lookup Controlled Vocabulary

Get valid controlled vocabulary values for any ImmPort lookup table. Results are served from an in-memory cache (pre-fetched at startup, refreshed every 24 hours) — no API call is made at query time. Available tables: lkRace: Race values used in subject demographic data lkEthnicity: Ethnicity values used in subject demographic data lkSpecies: Species values (e.g. Homo sapiens, Mus musculus) lkSubjectLocation: Subject location values used in studies lkAncestralPopulation: Ancestral population values used in subject data lkSex: Sex values (e.g. Female, Male, Not Specified) lkAge…

ParameterTypeDescription
table *string

get_data_model Get Data Model

Get the ImmPort data model: the tables of the release database (the same tables as the Tab.zip / MySQL release files), with columns, types, descriptions, keys and joins. Public — no authentication needed. • no table → index of all tables: [{name, type, description, columnCount}] (~110 tables) • table='arm_or_cohort' → that table in full: columns [{name, type, nullable, default, description}], primaryKey, foreignKeys [{columns, referencedTable, referencedColumns}], indexes, and referencedBy (tables that point to it) Use it to understand what a column means, which columns hold co…

ParameterTypeDescription
tablestring

get_study_files Get Study Files

Access ImmPort study files, protocol documents, and result files — list, stream, or download. action='manifest' — list all files for a study. Required: study_accession (one, or up to 20 separated by commas, e.g. 'SDY1,SDY269'; each record carries studyAccession) Optional: file_type filter — one of: study_file supplemental study documents protocol_file protocol documents result_file individual assay result files (FCS, CEL, txt, gz, etc.) release_file current DR package: Tab zip, MySQL zip, summary, manifest, subject-to-result mappin…

ParameterTypeDescription
action *string
file_typestring
file_uuidstring
max_bytesinteger
study_accessionstring