# AI4L Library

> AI4L Library is an open-source MCP server for health and science. Local Markdown library of cited medical papers, with claim checks and PubMed lookups. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/forever-healthy/ai4l-library
- **MCP Registry name:** io.github.forever-healthy/ai4l-library
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science), [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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.

## 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.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Tooluniverse](https://ai-powered.com/mcp/tooluniverse): Tooluniverse is an open-source MCP server for health and science.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Oya Browser](https://ai-powered.com/mcp/oya-browser): Oya Browser is a freemium MCP server for browser automation.
- [NeuroStack](https://ai-powered.com/mcp/neurostack): NeuroStack is a freemium MCP server for knowledge and memory.
- [BasalFit](https://ai-powered.com/mcp/basalfit): BasalFit is a free MCP server for health and science.

---
Source: https://ai-powered.com/mcp/ai4l-library
