Skip to content
MCP server

AI4L Library

Local Markdown library of cited medical papers, with claim checks and PubMed lookups

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted, macOS
Runs
Locally
Version
0.1.12
Listing updated
today

Similar MCP servers

About AI4L Library

AI4L Library is an open-source MCP server for health and science. It runs locally on your machine and is started by your AI client.

This server, published as the AI4L Library and described in its README as Forever Healthy Evidence MCP, targets agents doing literature research in medicine. It builds a local library as the agent works: give it a PMID, DOI, DailyMed or NCT ID and it stores the metadata, abstract and full text on disk, converting HTML, XML and PDF to token-efficient Markdown.

Full text is found through a parallel cascade (PMC, Europe PMC, Unpaywall, OpenAlex, CORE and others), and agents can read just the outline or the sections they need. A verify tool asks a decider model whether a source states a given claim. Perplexity, Google or OpenAI can serve as the decider; the README notes that a free Google tier may use submitted data to improve its products.

The README claims large token savings against other PubMed and ClinicalTrials.gov servers. A repository demo skill, /ev, ingests every source cited in a document and checks each claim against its source.

Install

Run in a terminal

claude mcp add ai4l-library -- npx -y ai4l-library

Add to claude_desktop_config.json

{
  "mcpServers": {
    "ai4l-library": {
      "command": "npx",
      "args": [
        "-y",
        "ai4l-library"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "ai4l-library": {
      "command": "npx",
      "args": [
        "-y",
        "ai4l-library"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "ai4l-library": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ai4l-library"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "ai4l-library": {
      "command": "npx",
      "args": [
        "-y",
        "ai4l-library"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "ai4l-library": {
      "command": "npx",
      "args": [
        "-y",
        "ai4l-library"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Tools this server provides (11)

Taken from the project documentation; the running server may differ.

fh_library_add
Download and store one record by pmid, doi, dailymed or nct.
fh_library_status
Status of one record.
fh_library_read
Outline, one section or passages matching a query.
fh_verify_claim
Checks whether a source states a claim.
fh_fetch_url
A web page or PDF as cached Markdown.
fh_pubmed_search_articles
Search PubMed.
fh_pubmed_fetch_articles
Details for up to 200 PMIDs.
fh_clinicaltrials_search_studies
Search ClinicalTrials.gov.
fh_clinicaltrials_get_study_record
One trial record.
fh_clinicaltrials_get_study_results
A trial's posted results as Markdown.
fh_info
Version, library counts, sources and cache hits.

What it does

Self-building library
Adds PMID, DOI, DailyMed and NCT records on demand and caches them locally.
Partial reads
Read the outline, one section or only passages matching a query.
Claim verification
A decider model checks if a source supports a claim, with cached verdicts.
PubMed and trials access
Compact search and fetch for PubMed and ClinicalTrials.gov.
Download cascade
Escalates from plain fetch to browsers to unlocker services.
Log viewer
A Python text interface for monitoring operations.

Good for

  • Check each claim in an evidence review against its cited source
  • Pull a trial's design, outcomes and eligibility into an agent
  • Read only the methods section of a long paper
  • Build a local source set for a drug review

Pricing

Open source

MIT licence; decider models need your own provider key.

AI4L Library FAQ

Do I need API keys?

Not for the keyless sources such as PubMed, PMC, Europe PMC, Unpaywall and OpenAlex. Claim verification needs a Perplexity, Google or OpenAI key or a local decider.

Which IDs does it accept?

pmid, doi, dailymed and nct.

What licence is it under?

MIT.

How do I run it?

Add the npm package evidence-mcp via npx to your MCP client config.

Is AI4L Library free?

Yes. AI4L Library is open source, so you can use and self-host it for free.

How do I add AI4L Library to Claude Code?

Run this command in your terminal: claude mcp add ai4l-library -- npx -y ai4l-library

What are the best alternatives to AI4L Library?

The closest alternatives to AI4L Library are Codebase Memory, XERJ, Claude Code Ultimate Guide, Tooluniverse and Nautilus Compass Memory.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers