Evidence MCP
Evidence MCP is a cached medical literature research server for building a local source library, reading optimized source content, verifying claims, and searching PubMed, ClinicalTrials.gov, DailyMed, and the web.
Build, add to, and inspect a local library of PMID/DOI articles, DailyMed drug labels, and NCT trial records.
Read a source's outline, one section, or query-matched passages with token-saving limits.
Verify whether a cited source supports a claim using a decision model, with cached verdicts.
Search PubMed and fetch key metadata for up to 200 PMIDs at once.
Find articles that cite a paper, filtered by type/year and sorted by newest or most cited.
Search ClinicalTrials.gov studies and retrieve trial records or posted results.
Search FDA drug labels by generic/brand name and manufacturer.
Fetch web pages/PDFs as Markdown through a hardened download cascade, with caching.
Check server configuration, library counts, source availability, and cache statistics.
Adds DOI-identified papers to the self-building local library: fetches metadata, abstract and full text through a parallel discovery cascade, converts to token-optimized Markdown, and lets agents read an outline, a single section or query-matched passages and verify claims against the source.
Retrieves full texts of Elsevier papers via Elsevier's TDM interface as part of the parallel full-text download cascade, so papers addable by PMID/DOI come with their full text whenever it can be obtained.
Searches PubMed using its native query syntax and years/sort options, and fetches up to 200 PMIDs at once, returning token-optimized records (PMID, title, first author, year, journal, publication types, retraction status, PMCID, library level) with local caching, plus full-record download into the local library.

Forever Healthy Evidence MCP
Power tools for AI agents to improve and speed up medical literature research. Developed while building evipedia.ai and experiencing the pain points and shortcomings of existing solutions.
Toolset:
A self-building local library of sources: PMID, DOI, DailyMed, NCT
Decider-based claim verification against those sources
Complete cited-by lists for any article
Optimized access to PubMed, ClinicalTrials.gov & DailyMed
Optimized web fetch and web search
All functions are token-optimized to minimize context use, return agent-ready content, and cache locally for fast responses. The MCP is self-explanatory to agents, so they can start using it right away with no coding required.
Released under the MIT license to empower, simplify, and speed up medical literature research for everyone.
This project is part of the Forever Healthy Longevity AI Stack.
Evidence MCP Tools
Self-Building, Local Source Library
Builds itself as agents work
Supports
pmid,doi,dailymed, andnctIDsLocal caching of metadata, abstract, and full text
Token-saving partial reads: agents read the outline, then pick only the sections they need
Full text fetched automatically wherever it can be obtained
Parallel discovery cascade for full text (PMC, Europe PMC, TDM, Unpaywall, OpenAlex, CORE, the DOI's own page for DataCite DOIs, institutional proxy)
Support for Elsevier and Wiley TDM
Automatic conversion (HTML, XML, PDF) to token-optimized Markdown
Decider-Based Claim Verification
Fast verification of claims against library sources using decider models
Automatic choice of abstract or full text, depending on availability
Local caching for repeat queries: a cached verdict in under 1 ms vs. ~1 s from the model
Support for Perplexity, Google, OpenAI, and Liquid AI decision models
Complete Cited-By Lists
The articles that cite a paper: a trial's follow-ups, the later meta-analyses that include it, guidelines, and the comments on it
From OpenAlex; PubMed's own "cited by" covers only citations from PubMed Central
Filtered by publication type and year, sorted by newest or most cited
Local caching
Optimized PubMed Access
Up to 97% fewer tokens than other PubMed MCPs (Anthropic's, cyanheads'): a 20-row search ~50–97% smaller, 20 records ~96% smaller
Local caching: a repeated query in milliseconds instead of a second
Optimized ClinicalTrials.gov Access
Up to 98% fewer tokens than other ClinicalTrials.gov MCPs (Anthropic's, cyanheads'): a trial record ~97% smaller, a search ~40% smaller than Anthropic's
Local caching: a repeated query in milliseconds instead of a second
Optimized DailyMed Access
FDA drug labels found by generic or brand name, narrowed to one manufacturer if needed: set ID, manufacturer, date and version per label
98% fewer tokens than DailyMed's search page
Local caching: a repeated query in milliseconds
Optimized Web Fetch
Significantly higher success rate than the standard fetch
20% more relevant content per result than the standard fetch
Local caching
Automatic use of the download cascade
Optimized Web Search
Replaces the model's built-in web search: links with a short passage from each page
Up to 95% fewer tokens: ~1,000 tokens per search vs. 12,000–19,000 for the built-in search of Claude Opus
Several search providers asked at once and merged (Exa, Serper, Brave): more results than any one alone, especially within one site
Local caching
Versatile Download Cascade
Multi-stage download cascade for web pages and full texts
Significantly higher success rate than the standard fetch
Escalates stage by stage, with parallel requests in each: fetch, browsers, unlockers
Fetch: plain fetch and a fetch proxy
Browsers: Playwright browser servers and a real Chrome
Unlockers: Firecrawl, ZenRows, Zyte, Bright Data
Remembers failing targets and services and skips them for a while
Agent-deployable: comes with instructions for agents to set up and test every stage
Local Caching
All results cached locally where sensible
Response times in milliseconds instead of seconds
Extremely helpful when iterating multiple times over the same document
Automatic cache and refresh management
Log Viewer
Python-based TUI for operations monitoring
Related MCP server: evipedia-mcp
Tools
Tool | |
| version, library counts by type and level, sources, browsers, decider, configuration, cache hits |
| download and store one record — |
| the status of one record (level, citable, corrections) |
| the outline, one section or the passages matching a query; adds a missing record first |
| does this source state this claim? A verdict from the decider, on full text or abstract; adds a missing record first |
| search PubMed in its own syntax: PMID, title, first author, year, journal, publication types, PMCID, library level |
| title, first author, year, publication types, retracted and level for up to 200 PMIDs at once |
| the articles that cite an article, in the columns of the PubMed search; filter by publication type and year, sort by newest or most cited |
| search ClinicalTrials.gov: NCT ID, title, status, phase, enrollment, dates, primary outcome, conditions, interventions |
| one trial as a review needs it: status, design, enrollment, dates, outcomes, eligibility, result publications |
| a trial's posted results as Markdown, capped |
| find FDA drug labels by name: set ID, title, manufacturer, published date, version |
| a web page or PDF as Markdown (XML, JSON and other text as is), cached, through the download cascade; same answer as the standard fetch tool |
| search the web, |
Quick Start
Add the MCP server
{
"mcpServers": {
"evidence-mcp": {
"command": "npx",
"args": ["-y", "evidence-mcp@latest"]
}
}
}A .env elsewhere than your project root: add "--env", "/path/to/.env" to args.
Works out of the box with the keyless sources (PubMed, PMC, Europe PMC, Unpaywall, OpenAlex, plain fetch); only claim verification needs a Perplexity, Google, OpenAI, or Liquid AI key, or a local Decider.
Configuration (optional)
Clone this repository
Put a copy of
<clone>/.env.exampleas.envin your project root, or tell your agent to add its content to your existing.env
Decider Model (optional, for claim verification)
Choose the provider with
FH_VERIFY_PROVIDER(perplexity,google,openai, orliquid); for evipedia.ai we use the Perplexity DeciderPerplexity: set your Perplexity API key or set up a local Perplexity Decider for Mac
Google: set your Google AI Studio API key; the free tier allows 50,000 input tokens per minute (one or two full-text papers), and on it Google may use what is sent to improve its products (the paid tier does not)
OpenAI: set your OpenAI API key
Liquid AI: set your Liquid API key; the default model is
d1-ultra
Download Cascade (optional)
Configure the desired download services (fetch proxy, Playwright servers, Chrome, unlockers)
Unlockers: set the key of each you want — Firecrawl
FH_FIRECRAWL_API_KEY, ZenRowsFH_ZENROWS_API_KEY, ZyteFH_ZYTE_API_KEY, Bright DataFH_BRIGHTDATA_API_KEY; every one with a key takes partTell your agent to run
<clone>/utilities/deploy.sh upfrom your project folder (or with--env <your .env>) to deploy the configured cascadeTell your agent to test the cascade for functionality and to detect accessibility issues (firewall, etc.)
Monitoring
Run
<clone>/tui/run.shfrom the folder that holds your.env(requires Python 3)
Demo Skill
/ev is a Claude Code skill that shows the server at work on any document that cites medical sources. It ships with this repository: clone the repository and open Claude Code in your clone.
The samples folder holds a demo document, telmisartan.md (an evidence review of telmisartan), to try the commands on.
The server stores its library in the evidence/ folder of the clone.
Command | |
| the commands |
| server, configuration and library contents |
| every source the document cites (PubMed, DOI, trials, drug labels) added to the library → |
| every claim the document makes, checked against the source it cites → |
The file name is enough: documents are looked up in samples/. With the sample:
/ev ingest telmisartan.md → samples/telmisartan_sources.md
/ev verify telmisartan.md → samples/telmisartan_claims.mdPut your own document in samples/ and use its filename.
Documentation
Configuration: every setting is explained in .env.example
Download cascade, deployment, and troubleshooting: utilities/README.md
License
MIT — © 2026 Forever Healthy Foundation
Available Tools
13 toolsfh_citing_articlesARead-onlyIdempotent
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 article and are mostly about something else.
years and sort newest go by the year column.
At most 100 rows, no paging: for more, narrow with types or years, or sort: cited. total counts every match. Citations from OpenAlex. Cached 7 days.
Inputs: id (required), sort, types, years, +1 more.
fh_clinicaltrials_get_study_recordARead-onlyIdempotent
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:…").
Inputs: nct (required).
fh_clinicaltrials_get_study_resultsARead-onlyIdempotent
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: ) 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.
Inputs: nct (required), max_chars.
fh_clinicaltrials_search_studiesARead-onlyIdempotent
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/. Cached 7 days. One trial in detail: fh_clinicaltrials_get_study_record.
Inputs: sort, query, status, condition, +2 more.
fh_dailymed_search_labelsARead-onlyIdempotent
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:" 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 characters. The same search is answered from disk for 7 days.
Inputs: drug_name (required), labeler, max_results.
fh_fetch_urlARead-onlyIdempotent
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 remembered for 1 d.
Inputs: url (required), raw, max_length, title_only, +1 more.
fh_infoARead-onlyIdempotent
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, version, log: the build and its log file; evidence_dir, host
entries, size, by_type, by_level: the library's counts; types: per type (pmid, doi, dailymed, nct, url — pages stored by fh_fetch_url) its entries by level (full_text, abstract, title), retracted and fulltext_not_tried (articles stored from PubMed alone)
retracted, not_citable, errata, concerns, updates: entries with such a notice
tiers: the retrieval sources in run order, and which are off
download: the Playwright servers with the version they must run, the Chrome stages, whether an unlocker is configured
config: each setting's source (environment, .env or default)
verify: the decision model behind fh_verify_claim, and whether it answers
unlockers: whether each answers (checked_secs_ago: a check reused, up to 15 min old); stages: our own hosts (fetch proxy, Playwright servers, Chrome), whether each is reachable
cache: hits and misses since this server started: verify (fh_verify_claim), fetch (fh_fetch_url), search (the search tools), pubmed (fh_pubmed_fetch_articles, per PMID)
Inputs: no named parameters.
fh_library_addAIdempotent
Download and store one record — an article (pmid:, doi:), a drug label (dailymed:) 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 its notices re-read. Use it to fill the library ahead or to try again for a full text: fh_library_read and fh_verify_claim add a missing record themselves; a web page is fh_fetch_url's. No full text found is not an error: the status says level abstract (or title). error: a malformed ID, an ID its registry does not have, or the registry not answering.
Inputs: id (required).
fh_library_readARead-onlyIdempotent
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 abstract sentences). Every answer for such a paper carries correction, one line saying so.
query: the passages holding every term, best first, at most max_hits (more: how many further passages match), each a window of at most 1000 chars with its section. Case, accents, hyphens, plurals and -ed/-ing forms match; a matching table row comes with its header row. partial: true with missing_terms when no passage holds them all. With section: inside that section. A document not yet in the library is downloaded into it first (added: true): the library is this server's cache of sources, the only thing a read writes. abstract_only: true reads only the abstract, at once: use it whenever the abstract is enough (screening, design, size, main finding). Without it, an article whose full text was never searched for gets that search first (seconds, up to a minute, once). A malformed ID, or an article that cannot be added, answers error.
Inputs: id (required), query, section, max_hits, +2 more.
fh_library_statusARead-onlyIdempotent
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; "stored": the full text exists, an abstract_only read did not use it), version, retrieved_by, glyphs_unresolved (symbols the PDF font lost), error.
Inputs: id (required).
fh_pubmed_fetch_articlesARead-onlyIdempotent
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 model; filled where known.
level "not found": PubMed has no such record.
Inputs: pmids (required).
fh_pubmed_search_articlesARead-onlyIdempotent
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.
Inputs: query (required), sort, years, max_results.
fh_verify_claimARead-onlyIdempotent
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 articles is three calls; a summary of several trials is stated by none of them. verdict: supported | not_supported (the full text does not state it — fh_library_read with a query shows what it says; or only the title is stored — reason says so) | unverifiable (only the abstract is stored and does not state it — reason says so; the same until a full text is stored) | error (claim refused: under four words, a fragment, carrying citations; add failed; no model; model failure). basis: full_text | abstract | title. glyphs_unresolved: numbers of the claim that stand next to a symbol the PDF's font lost (−, ±, ≤); such a claim is checked again against the abstract and without the symbol, and is unverifiable when only the symbol is missing. corrections: how many stored corrections of the source the claim was judged against (the correction counts where it differs from the source's text, so a figure it replaced does not pass). score: the probability that the source states the claim, with every judged verdict; null: no judgement. The same claim on the same stored text answers from disk for 30 days.
Inputs: id (required), claim (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a distinct resource+action: PubMed search vs. batch fetch, ClinicalTrials search vs. record vs. results, DailyMed label search, library add/read/status, claim verification. The main overlap is between fh_fetch_url and fh_library_read/fh_library_status for registry URLs and stored pages, but descriptions explicitly resolve it ("a web page is fh_fetch_url's", registry URLs answered from the library). fh_info vs fh_library_status also partially overlap on library state, though one is server-wide and the other per-entry.
All tools share a consistent fh_ snake_case prefix with a predictable namespace_action shape (fh_pubmed_search_articles, fh_clinicaltrials_get_study_results, fh_dailymed_search_labels, fh_library_add/read/status). Minor deviations exist: fh_info is a bare noun and fh_citing_articles lacks a namespace/verb, and library_status/library_add put the noun first while other tools lead with the verb.
Thirteen tools is well within the healthy band and each one earns its place: three PubMed tools, three ClinicalTrials tools, one DailyMed tool, four library operations, plus fetch and server info. No tool looks like filler or a thin wrapper duplicating another.
Core research workflows are covered end to end: discover (PubMed/ClinicalTrials/DailyMed search), store (library_add/fetch_url), inspect (library_read/status, trial record/results, citing articles), and judge (verify_claim), with fh_info for diagnostics. Gaps: there is no way to enumerate or list library entries (only counts via fh_info), no delete/prune of stored records, and no citation-export or full-text-search-across-library operation.
Maintenance
Related MCP Connectors
AI agents collaborate on open biomedical problems, citing sources that are machine-checked.
Research papers for AI agents: PubMed, arXiv, Crossref; citations, references, open access texts
Papers, SEC filings, Wikipedia, HN and web reading for research agents. 15 tools, x402.
Deterministic knowledge for AI agents: search, fetch, cite and verify a 48M-entry knowledge base.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides medical symptom extraction, differential diagnosis generation, PubMed literature search, and abstract summarization tools for LLM agents.-
- AlicenseAqualityBmaintenanceMCP server enabling AI agents to search and retrieve evidence reviews from evipedia.ai on health and longevity interventions, and to suggest new interventions for review.8467 npm3MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query authoritative sources like FDA, WHO, PubMed, RxNorm, and Google Scholar for drug information, health statistics, clinical guidelines, trials, and medical literature. It runs locally with no API keys, so data stays private while results come back with evidence grading and resilient fallbacks.42 npmISC
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to run PubMed searches in plain English, download full-text articles from PubMed Central, and map the similar, citing and cited evidence around key papers. It also builds an Obsidian knowledge graph of a study's literature, with retractions flagged and citations traceable to papers the assistant read.65 PyPIMIT