Forever Healthy Evidence MCP

v1.2.0
io.github.forever-healthy/evidence-mcp Checked 6 hours ago Published 1 day ago

Power tools for AI agents to improve and speed up medical literature research

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

fh_library_add

Download and store one record — an article (pmid:, doi:), a drug label (dailymed:<set ID>) or a trial record (nct:<8 digits>) — and return its status JSON (fields: fh_library_status). An article gets its record, abstract and correction notices from PubMed (Crossref for a DOI PubMed does not index), then the full text and the texts of its correction notices from the configured sources; a label or trial record is stored as a full text. A stored full text is returned without any download; an abstract-level record retries only sources that failed transiently; a record older than 30 days gets i…

ParameterTypeDescription
id *stringID as "type:value": an article "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (an article PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "da…

fh_library_status

Read-only status of the library entry for one ID — an article, a drug label or a trial record: the same status JSON as fh_library_add, or level "missing" when there is no entry. Never fetches: to read a document, or to get a missing one, use fh_library_read. A malformed ID answers the same JSON with error ("invalid id", for a URL with what to use instead). Fields: pmid, pmcid, setid, nctid, publications, year, publication_types, retracted, corrections ({type, pmid, source}), citable, comment, has_abstract, level (full_text | abstract | title), fulltext ("not tried": no source tried yet; "sto…

ParameterTypeDescription
id *stringID as "type:value": an article "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (an article PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "da…

fh_library_read

One piece of a stored document's Markdown, never the whole. Three ways to ask: - no section, no query: the outline, headings with word counts (full text, or abstract only). - section: that heading's own text, capped at max_chars, its subsections listed. The heading matches as a case-insensitive substring; a repeated heading as "Participants [3/12]". "Abstract" on a full text without one: the stored abstract; "Declarations": funding, conflicts of interest, acknowledgements, ethics. - section "Corrections": the stored corrections of a corrected paper (the journal's notices, PubMed's corrected ab…

ParameterTypeDescription
id *stringID as "type:value": an article "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (an article PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "da…
abstract_onlybooleantrue: the abstract only, at once, without triggering a search for the full text; section and query search the abstract. A missing pmid: is stored from PubMed alone; a missing doi: is added normally fi…
max_charsintegerCap for section text (default 6000); passages are capped at 1000 chars each regardless.
max_hitsintegerCap for query passages (default 5).
querystringTwo or three distinctive terms the article itself would use — a measure and a unit, an outcome and a group, a compound name — not the claim. Passages holding all of them are returned, else the bes…
sectionstringHeading from the outline (case-insensitive substring).

fh_verify_claim

Does one source state one finding of a review? claim: the finding as a complete statement (subject, intervention, outcome, number), without citations or the review's framing, and only what this source reports. id: one source the review cites for it — article, drug label (dailymed:…) or trial record (nct:…); downloaded into the library first when it is not there yet. fulltext "not tried": a search for the full text first (seconds, up to a minute, once). The server reads the stored text and asks a decision model; nothing enters your context. One claim, one source: a finding backed by three…

ParameterTypeDescription
claim *stringOne finding as a complete statement (subject, intervention, outcome, number), built from the review's words, without its citations and framing.
id *stringID as "type:value": an article "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (an article PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "da…

fh_info

Is this server set up and working, and what does the library hold: one JSON answer, no arguments. Use it to see which build is loaded, to find why a download, fh_verify_claim or a search fails (is the service configured, does it answer right now), and for the library's size. For the state of one entry use fh_library_status. Good to know: each service is asked when you call (seconds; up to a minute when one does not answer). The counts are as of counted, up to 10 minutes old, counted again in the background. A configuration value is never shown, only where it came from. Fields: - package, versi…

fh_fetch_url

Fetch a web page as Markdown: the standard fetch tool, cached and hardened. Use it for any URL instead of a plain fetch or a browser. A page fetched in the last 30 days is answered from disk in milliseconds; a page a plain fetch cannot get (403, rate limit, bot wall, script-rendered) is fetched through the configured browsers and unlockers in this one call. PDFs come back as Markdown; XML, JSON and other text as is. To verify a link, title_only returns just its title line. A PubMed, ClinicalTrials.gov, DailyMed or doi.org URL is answered from the library's record of it. A failed fetch is remem…

ParameterTypeDescription
url *stringURL to fetch
max_lengthintegerMaximum number of characters to return (default 5000).
rawbooleanGet the actual HTML content of the requested page, without simplification.
start_indexintegerOn return output starting at this character index, useful if a previous fetch was truncated and more context is required.
title_onlybooleanReturn only the page's title line. The whole page is still fetched and stored; use this to verify that a link resolves and what it points to.

fh_pubmed_fetch_articles

The key facts of up to 200 PubMed articles in one call: title, first author, year, publication types, retracted and library level. Use it to look at a list of PMIDs (a search's hits, a reference list) without reading each; for an abstract or full text: fh_library_read. Faster and far smaller than asking PubMed: articles the library knows come from disk, the rest in one request, and all are stored for every later call. Answer: columns, and rows as arrays in that order, about 120 characters an article. - design, participants, population: what kind of study it is, read from the abstract by a mode…

ParameterTypeDescription
pmids *arrayPubMed IDs, "30955454" or "pmid:30955454", up to 200.

fh_pubmed_search_articles

Search PubMed with its own query syntax (AND / OR, field tags like [pt], [ti], [mesh]); sort relevance | newest; years "2020-2026". Faster and far smaller than asking PubMed: the total and up to 100 rows as arrays in columns order — PMID, title, first author, year, journal, publication types, PMCID when free full text exists, and the library level when the article is already stored. The same search is answered from disk for 7 days. For a batch of PMIDs: fh_pubmed_fetch_articles; for abstract or full text: fh_library_read.

ParameterTypeDescription
query *stringPubMed query, full syntax: "tadalafil AND (systematic review[pt] OR meta-analysis[pt])".
max_resultsintegerRows to return (1–100).
sortstringrelevance (PubMed's ranking) or newest (publication date, latest first).
yearsstringPublication years: "2020-2026", "2022-", "-2019" or "2022".

fh_citing_articles

The articles that cite an article, as rows in fh_pubmed_search_articles' columns: PMID, title, first author, year, journal, publication types, PMCID, library level. Use it for a trial's follow-ups, later meta-analyses that include it, guidelines (sort: cited) and comments on it. - types: PubMed publication types, any of them; an article without one (many plain articles, some guidelines) never matches. - Comments: with comment, letter or editorial in types, the comments PubMed links to the article come first, of any year and type, and comments_on lists their PMIDs. The other rows only cite the…

ParameterTypeDescription
id *stringThe cited article: "pmid:18378520" or "doi:10.1056/NEJMoa0801317".
max_resultsintegerRows to return (1–100).
sortstringnewest (latest year first) or cited (most cited first).
typesarrayPublication types, any of them: "meta-analysis", "systematic review", "randomized controlled trial", "review", "guideline", "comment", "letter", "editorial".
yearsstringPublication years of the citing articles, as in the year column: "2020-2026", "2022-", "-2019" or "2022". Not applied to the comments PubMed links.

fh_clinicaltrials_search_studies

Search ClinicalTrials.gov by free text, intervention or condition — at least one of them; status ongoing | completed | all; sort relevance | newest | largest | completion. Returns the total and up to 100 rows as arrays in columns order: NCT ID, title, status, phase, enrollment ("~100" estimated), start, primary completion, primary outcome, conditions, interventions, has_results. Link: https://clinicaltrials.gov/study/<NCT ID>. Cached 7 days. One trial in detail: fh_clinicaltrials_get_study_record.

ParameterTypeDescription
conditionstringCondition or disease, e.g. "hypertension", "type 2 diabetes".
interventionstringIntervention or treatment, e.g. "tadalafil", "cognitive behavioral therapy".
max_resultsintegerRows to return (1–100).
querystringFree-text search across all fields (title, conditions, interventions, summary, …); AND / OR / NOT allowed.
sortstringrelevance (the registry's ranking), newest (last update first), largest (enrollment first), completion (completion date, latest first).
statusstringongoing: recruiting, not yet recruiting, active not recruiting, enrolling by invitation. completed: completed. all: no filter.

fh_dailymed_search_labels

Find FDA drug labels on DailyMed by drug name, generic or brand: the total and up to 100 rows as arrays in columns order — set ID, title (drug and form), labeler (the company), published date, version, and the library level when the label is already stored. Newest first. A generic name lists every maker's label; labeler narrows to one company ("Boehringer" for Micardis's maker), a brand name to its own labels. Pass the set ID as "dailymed:<set ID>" to fh_library_read or fh_library_add. Use this, not DailyMed's search page: fetched as Markdown the page shows no set IDs, raw it is some 150,000…

ParameterTypeDescription
drug_name *stringGeneric or brand name: "telmisartan", "Micardis".
labelerstringPart of the company's name, to narrow to its labels: "Boehringer".
max_resultsintegerRows to return (1–100).

fh_clinicaltrials_get_study_record

One ClinicalTrials.gov trial as a review needs it: titles, status and why stopped, phase, design, enrollment, dates, sponsor, conditions, interventions, primary outcomes, eligibility, sites, result publications as pmid: IDs, has_results, brief summary. From the stored record; a trial not yet in the library is downloaded into it first. A malformed ID, or one the registry does not have, answers error. The whole record: fh_library_read("nct:…").

ParameterTypeDescription
nct *stringThe NCT ID: "nct:05173896", "NCT05173896" or the eight digits.

fh_clinicaltrials_get_study_results

The posted results of one ClinicalTrials.gov trial — participant flow, baseline, every outcome measure as a table, adverse events — as Markdown from the stored record, capped at max_chars, outcome titles listed; fh_library_read("nct:…", section: <title>) returns one measure whole. has_results false when the registry holds none. A trial not yet in the library is downloaded into it first. A malformed ID, or one the registry does not have, answers error.

ParameterTypeDescription
nct *stringThe NCT ID: "nct:05173896", "NCT05173896" or the eight digits.
max_charsintegerCap for the results text (default 6000).