Search MeSH
mesh_searchSearch for MeSH (Medical Subject Headings) descriptors.
Use this tool to:
Find MeSH terms for indexing medical literature
Look up subject headings for PubMed searches
Find controlled vocabulary terms
NLM publishes MeSH in English: the search matches and returns English labels whatever language says (a handful of records also carry other languages — 13 Portuguese labels in the whole dataset, measured 2026-11-28 — and mesh_descriptor returns those). Content is never machine-translated.
Returns matching descriptors with MeSH IDs and labels. When no descriptor LABEL matches (lay words such as "heart attack" or "bedsore"), the search falls back to MeSH entry terms and says so (matched_via: "entry_term", with the matched_term per descriptor) — that fallback takes a few seconds. Not applied with match: "exact".
No pagination: the NLM lookup returns at most 50 descriptors and has no offset. When total_count equals max_results there may be more — narrow the query or use match: "startswith" / "exact".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "mesh_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | No | Match type: exact, contains, or startswith. Default: contains | contains |
| query | Yes | Search term (e.g., "diabetes", "heart failure") | |
| language | No | Language code (default: en). MeSH is published by NLM in English; another language is returned only where the NLM record carries it (rare), otherwise English. Never machine-translated. | en |
| max_results | No | Maximum number of results (1-100). Default: 25. The NLM lookup returns at most 50: above 50, 50 are asked for and the answer says so. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | Match type applied to descriptor labels. | |
| query | Yes | The search term as submitted. | |
| provenance | Yes | Provenance block: source, URL, data vintage, extraction instant, origin diagnostics, citation, license | |
| attribution | Yes | Canonical source URLs of this response (attribution list) | |
| descriptors | Yes | Matching MeSH descriptors, each with its ID (e.g. "D003920"), URI and label. | |
| matched_via | Yes | descriptor_label = the query matched descriptor labels; entry_term = no label matched, so the descriptors were reached through MeSH entry terms (synonyms such as "Heart Attack" for Myocardial Infarction). | |
| total_count | Yes | Number of descriptors returned. The NLM lookup stops at max_results and has no offset, so this is not a count of all matches and there is no next page: when it equals max_results, narrow the query or use `match`. |