> ## Documentation Index
> Fetch the complete documentation index at: https://proto.evodesign.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Europe PMC

> [Europe PMC](https://europepmc.org/) is EMBL-EBI's open literature database, covering PubMed abstracts, PubMed Central full-text articles, and preprints from bioRxiv, medRxiv, and other servers. This toolkit exposes two tools over its REST API: `europepmc-search` finds papers by free text or field query and reports identifiers, citation details, and open-access status, and `europepmc-fulltext` returns an open-access article as plain-text sections that can be searched for an exact passage. Both run on CPU in process and need only network access.

![Europe PMC](https://proto-bio.github.io/proto-assets/images/tool/europepmc/hero.png)[![](https://mintcdn.com/bio-pro/UeudeF7pW-Dj-pIN/assets/images/cached/d6be4d3bc893.png?fit=max\&auto=format\&n=UeudeF7pW-Dj-pIN\&q=85\&s=3f3eaae432293c6ed9a25a58e369baa3) EMBL-EBI](https://proto.evodesign.org/docs/tools/organizations/embl-ebi.md)

> [!NOTE]
>
> **License:** Europe PMC retrieves data from literature records and full text served by Europe PMC, distributed under source-specific terms. Attribution to literature records and full text served by Europe PMC is required when the data is redistributed. The client wrapper code is MIT-licensed. Please refer to [the data terms](https://europepmc.org/Copyright) for full terms.

Proto is not affiliated with EMBL-EBI. This toolkit is open source and builds on the implementation produced by this organization. Product names, logos, and trademarks are the property of their respective owners.

***

&#x20;GitHub GitHub  Website Website  Publication Publication  Cite Cite  Tool Source Tool Source  Open as Notebook Open as Notebook  Run Locally Run Locally

![/](https://opengraph.githubassets.com/1//)

&#x20;/

&#x20;View repo

[Open](https://github.com/EuropePMC)

&#x20;europepmc.org

&#x20;Visit website

[Open](https://europepmc.org/)

Europe PMC in 2023Summer Rosonovski, Maria Levchenko, ... Melissa HarrisonNucleic Acids Research (2024)

&#x20;Read paper

[Open](https://doi.org/10.1093/nar/gkad1085)

@articlerosonovski2024europepmc

```bibtex theme={null}
@article{rosonovski2024europepmc,
  title={Europe PMC in 2023},
  author={Rosonovski, Summer and Levchenko, Maria and Bhatnagar, Rajat and Chandrasekaran, Umamageswari and Faulk, Lynne and Hassan, Islam and Jeffryes, Matt and Mubashar, Syed Irtaza and Nassar, Maaly and Jayaprabha Palanisamy, Madhumiethaa and Parkin, Michael and Poluru, Jagadeeswararao and Rogers, Frances and Saha, Shyamasree and Selim, Mohamed and Shafique, Zunaira and Ide-Smith, Michele and Stephenson, David and Tirunagari, Santosh and Venkatesan, Aravind and Xing, Lijun and Harrison, Melissa},
  journal={Nucleic Acids Research},
  volume={52},
  number={D1},
  pages={D1668--D1676},
  year={2024},
  publisher={Oxford University Press},
  doi={10.1093/nar/gkad1085}
}
```

&#x20;Copy citation

![Proto](https://mintcdn.com/bio-pro/cMLt8hAqaP9M3LKy/assets/logo/logo-light.svg?fit=max\&auto=format\&n=cMLt8hAqaP9M3LKy\&q=85\&s=f5e5dfd1b8f9b9db3a0be0e2eb01f678)

evo-design/proto-tools

&#x20;View source

[Open](https://github.com/evo-design/proto-tools/tree/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc)

Open Notebook

&#x20;Open notebook

[Open](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/examples/example.ipynb)

[![proto-tools on GitHub](https://opengraph.githubassets.com/1/evo-design/proto-tools)](https://github.com/evo-design/proto-tools)

Run locally with proto-tools

```bash theme={null}
pip install git+https://github.com/evo-design/proto-tools.git
```

Toolkit contributors[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)[![](https://avatars.githubusercontent.com/u/61667248?v=4\&s=64)adititm](https://github.com/adititm)

| Function | Description | |
| - | - | - |
| `run_europepmc_fulltext()` | Fetch open-access article full text from Europe PMC by PMCID as plain-text sections, figure and t... | [ Docs](#api-run-europepmc-fulltext) [ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/europepmc_fulltext.py#L230) |
| `run_europepmc_search()` | Search Europe PMC literature (PubMed, PMC full text, bioRxiv/medRxiv preprints) for papers with P... | [ Docs](#api-run-europepmc-search) [ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/europepmc_search.py#L240) |

## Background

[Europe PMC](https://europepmc.org/) is run by [EMBL-EBI](https://www.ebi.ac.uk/) as a partner of [PubMed Central](https://www.ncbi.nlm.nih.gov/pmc/). It indexes tens of millions of records, mostly PubMed abstracts, along with millions of full-text articles and preprints. Each record has a source code (`MED` for PubMed, `PMC` for PubMed Central, `PPR` for preprints) and an identifier within that source, and carries a PMID, PMCID, or DOI where one exists.

Full text is available for the open-access subset of PubMed Central and Europe PMC, published under licenses such as CC BY that permit text mining. Articles arrive as [JATS](https://jats.nlm.nih.gov/) XML, the standard publishing markup for journal articles, which marks the title, abstracts, nested sections, figures, and tables. Reading an article as text rather than as a PDF makes it possible to find and quote a reported value, such as a binding constant or a list of hotspot residues, exactly as the authors wrote it.

### Learning Resources

* [Europe PMC REST API](https://europepmc.org/RestfulWebService) (EMBL-EBI) - endpoints, parameters, and response formats.
* [Europe PMC search syntax](https://europepmc.org/searchsyntax) (EMBL-EBI) - field codes such as `TITLE:`, `AUTH:`, `PUB_YEAR:`, `SRC:`, and `OPEN_ACCESS:`.

## Tools

### Europe PMC Search (`europepmc-search`)

Searches Europe PMC and returns ranked hits with source, PMID, PMCID, DOI, title, authors, journal, year, open-access and full-text flags, citation count, abstract, and the Europe PMC page (`source_url`).

#### API Reference

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/europepmc_search.py#L49)

> [accordion] Input: EuropePMCSearchInput
>
> **queries** `List[string]` *required*
>
> Free-text queries (e.g. `"PD-L1 binder alanine scan"`) or Europe PMC query syntax (e.g. `'TITLE:"protein binder" AND SRC:PPR'`). A bare string is normalized to a one-item list.

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/europepmc_search.py#L78)

> [accordion] Config: EuropePMCSearchConfig
>
> **max\_results** `integer` (default: 10)
>
> Maximum hits returned per query (1-1000).
>
> **include\_abstracts** `boolean` (default: True)
>
> Return abstracts and full citation details (Europe PMC `core` results). Set False for a compact hit list (`lite` results).
>
> **verbose** `integer` (default: 0)
>
> Verbosity level (0=quiet, 1=info, 2=debug, 3=raw subprocess stderr). `True` is coerced to `1` and `False` to `0`.
>
> **device** `string` (default: cpu)
>
> Device to run the tool on.
>
> **timeout** `integer` (default: 3600)
>
> Maximum execution time in seconds, not counting time spent while a weights download keeps progressing. `None` waits indefinitely.
>
> **seed** `integer`
>
> Random seed. When set, tools run reproducibly up to small GPU float noise (see `BaseToolOutput.approx_equal`), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/europepmc_search.py#L167)

> [accordion] Output: EuropePMCSearchOutput
>
> **results** `List[EuropePMCSearchResult]`
>
> Results in input order.
>
> **EuropePMCSearchResult**
>
> **query** `string` *required*
>
> The query as sent to Europe PMC.
>
> **total\_count** `integer`
>
> Total matching records reported by Europe PMC; None on error.
>
> **hits** `List[EuropePMCSearchHit]`
>
> Hits in Europe PMC's relevance order.
>
> **error** `string`
>
> Why this query has no hits, such as a query syntax error; None when it was run.
>
> **source\_url** `string` *required*
>
> Europe PMC search endpoint used.
>
> **tool\_version** `string`
>
> Version of the toolkit that produced the output, from its `versions.yaml`. Suffixed `+dirty` when the source no longer matches that version. See `notes/versioning.md`.

#### Applications

Use search to find the paper behind a design fact, such as the study that reports a binder's affinity or an alanine scan of an interface, and to tell which hits can be read in full.

#### Usage Tips

* Queries use Europe PMC syntax: combine terms with `AND`, `OR`, and `NOT`, quote phrases, and restrict fields with `TITLE:`, `ABSTRACT:`, `AUTH:`, `PUB_YEAR:2020`, or `PUB_YEAR:[2018 TO 2022]`.
* Add `OPEN_ACCESS:y` to keep only papers whose full text `europepmc-fulltext` can fetch, or `HAS_FT:y` for any paper with full text in Europe PMC.
* Add `SRC:PPR` to search preprints only, including bioRxiv and medRxiv. For a preprint, `published_pmid` gives the PMID of its journal version, when there is one.
* Set `include_abstracts=False` for a compact hit list. Each result's `total_count` reports how many records matched.
* A query Europe PMC rejects, such as one with a syntax error, gets an `error` and no hits. The other queries still run.
* `paperclip-literature-*` covers the same PMC full text plus bioRxiv, medRxiv and arXiv, with line-numbered reading for citing evidence, but needs a `PAPERCLIP_API_KEY`. Use these tools when you have no key, and `ncbi-esearch` with `db="pubmed"` for PubMed's own query syntax and MeSH terms.

### Europe PMC Full Text (`europepmc-fulltext`)

Fetches open-access articles by PMCID and returns each as plain-text sections: the title, every abstract, body and back-matter sections under their heading path, figure captions, and tables with cells separated by `|`.

#### API Reference

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/europepmc_fulltext.py#L62)

> [accordion] Input: EuropePMCFullTextInput
>
> **pmcids** `List[string]` *required*
>
> PubMed Central IDs (e.g. `"PMC6034017"`; a bare number gets the `PMC` prefix). A bare string is normalized to a one-item list.

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/europepmc_fulltext.py#L94)

> [accordion] Config: EuropePMCFullTextConfig
>
> **verbose** `integer` (default: 0)
>
> Verbosity level (0=quiet, 1=info, 2=debug, 3=raw subprocess stderr). `True` is coerced to `1` and `False` to `0`.
>
> **device** `string` (default: cpu)
>
> Device to run the tool on.
>
> **timeout** `integer` (default: 3600)
>
> Maximum execution time in seconds, not counting time spent while a weights download keeps progressing. `None` waits indefinitely.
>
> **seed** `integer`
>
> Random seed. When set, tools run reproducibly up to small GPU float noise (see `BaseToolOutput.approx_equal`), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/europepmc_fulltext.py#L158)

> [accordion] Output: EuropePMCFullTextOutput
>
> **documents** `List[EuropePMCFullTextDocument]`
>
> Documents in input order.
>
> **EuropePMCFullTextDocument**
>
> **pmcid** `string` *required*
>
> PubMed Central ID.
>
> **pmid** `string`
>
> PubMed ID, when the article lists one.
>
> **doi** `string`
>
> DOI, when the article lists one.
>
> **title** `string`
>
> Article title; None on error.
>
> **license** `string`
>
> License URL (or statement) from the article's permissions.
>
> **sections** `List[EuropePMCSection]`
>
> Title, abstracts, body and back sections, figures and tables, in document order (figures and tables follow the section citing them).
>
> **source\_url** `string`
>
> Europe PMC full-text XML URL the text was read from; None on error.
>
> **error** `string`
>
> Why this article has no text, such as not being in Europe PMC or not being open access; None when it was retrieved.
>
> **source\_url** `string` *required*
>
> Europe PMC REST endpoint used.
>
> **tool\_version** `string`
>
> Version of the toolkit that produced the output, from its `versions.yaml`. Suffixed `+dirty` when the source no longer matches that version. See `notes/versioning.md`.

#### Applications

Use full text to find and quote the passage, table row, or figure caption that supports a claim, such as a reported dissociation constant or the residues a mutagenesis study found essential for binding.

#### Usage Tips

* Pass the `pmcid` of a search hit with `is_open_access=True`. A PMCID that is not in Europe PMC or not open access gets an `error` and no sections. The other articles are still read.
* Each section has a `kind` (`title`, `abstract`, `section`, `figure`, `table`) and a `heading` such as `Results > Binding assays` or `Table 2`, so a match can be cited by where it appears.
* `document.text` joins every section into one string for searching, and the output exports to `txt` as well as `json`.
* Reference lists are left out. Inline formulas are kept as plain text, so superscripts and subscripts run together (`10^12` reads as `1012`).
* Check each article's `license` before redistributing its text.

## Toolkit Notes

These notes apply to both Europe PMC tools.

* **Requires network access.** Every call is an HTTPS request to the Europe PMC REST API. No API key is needed.
* **Runs in process on CPU.** There is no environment to build and no worker to start. Runtime is dominated by remote retrieval.

> [!TIP]
>
> **Example notebook:** See the [full working example](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/europepmc/examples/example.ipynb) for a copy-paste-ready walkthrough.

## Infrastructure Guides

The following guides cover how to run tools efficiently and at scale.

> [card] [Tool Persistence](https://proto.evodesign.org/docs/tools/guides/tool-persistence.md)
>
> Keep a tool's model warm across calls instead of reloading it every invocation.

> [card] [Device Management](https://proto.evodesign.org/docs/tools/guides/device-management.md)
>
> How GPUs are allocated to tools and how to target specific devices.

> [card] [Parallel Execution](https://proto.evodesign.org/docs/tools/guides/parallel-execution.md)
>
> Fan a batch of inputs out across multiple GPUs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.