Proto is not affiliated with GXL. 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.
Background
Paperclip is built by GXL to make the biomedical literature searchable and readable by researchers and AI agents. It indexes full-text papers from PubMed Central together with preprints from bioRxiv, medRxiv, and arXiv, plus a separate abstract-level index spanning all of these sources. Searches combine keyword matching with matching by meaning, so a relevant passage can be found even when it is worded differently from the query. Every paper has a stable identifier, such asPMC11754230, and its full text is served with numbered lines, which makes it easy to cite the exact lines that support a claim.
GXL recommends finding papers first, then reading only the parts that matter. Search returns the most relevant papers for a topic, lookup resolves an identifier you already have, and grep finds every paper that mentions an exact term such as a gene name or accession. Reading a paper then means fetching a range of lines or the lines that match a pattern, rather than the whole text. All four tools query the live Paperclip service, so results reflect the literature at the time of the request. Each result also records where and when it was retrieved, so the same record can be traced back and checked later.
Learning Resources
- Paperclip documentation (GXL) - official guide to the corpora, search options, and the command-line client.
- Paperclip install guide (GXL) - connecting Paperclip’s MCP server to Claude Code, Claude Desktop, Codex, Cursor, and other agents.
Tools
Paperclip Literature Search (paperclip-literature-search)
Finds papers by topic. Each hit carries its citation details, abstract, matched passage, and citation URL (source_url).API Reference
Config: PaperclipSearchConfig
Config: PaperclipSearchConfig
True is coerced to 1 and False to 0.None waits indefinitely.BaseToolOutput.approx_equal), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.Output: PaperclipSearchOutput
Output: PaperclipSearchOutput
Applications
Use search to find natural sequences, experimental context, and design methods relevant to a biological objective.Usage Tips
- For general biomedical literature, search
pmc, the default. Usepapersto cover PMC, bioRxiv, medRxiv, and arXiv together. - Narrow results with
year,journal,author, orarticle_typerather than adding those words to the query. - Set
include_abstracts=Falsefor a compact hit list to triage, then read the promising papers withpaperclip-literature-document. - Up to 100 hits, a smaller
limitreturns a prefix of a larger one, as long as the Paperclip index has not been updated in between.
Paperclip Literature Lookup (paperclip-literature-lookup)
Finds papers by one metadata field: DOI, PMID, PMC ID, arXiv ID, title, author, journal, or year.API Reference
Config: PaperclipLookupConfig
Config: PaperclipLookupConfig
True is coerced to 1 and False to 0.None waits indefinitely.BaseToolOutput.approx_equal), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.Output: PaperclipLookupOutput
Output: PaperclipLookupOutput
Applications
Use lookup to open a paper that another tool already identified, such as a PMID from NCBI or a DOI from a UniProt reference.Usage Tips
- Pass the returned
document_idtopaperclip-literature-documentto read the paper.
Paperclip Literature Grep (paperclip-literature-grep)
Searches the full text of every paper for a regular expression and returns each matching paragraph with the paper and corpus it came from.API Reference
Config: PaperclipGrepConfig
Config: PaperclipGrepConfig
True is coerced to 1 and False to 0.None waits indefinitely.BaseToolOutput.approx_equal), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.Output: PaperclipGrepOutput
Output: PaperclipGrepOutput
Applications
Use grep to find every paper that mentions an exact gene, protein, dataset, or accession, including mentions in methods or data-availability sections that search can rank low.Usage Tips
- Corpus-wide grep is time-bounded, so repeated calls can return a different set or order of matches.
- If a rare pattern returns nothing, retry with
exhaustive=Trueto give the scan more time.
Paperclip Literature Document (paperclip-literature-document)
Reads one paper’s metadata plus a range of lines, the lines matching a pattern, or its full text. Every line is numbered, so evidence can be cited by line.API Reference
Config: PaperclipDocumentConfig
Config: PaperclipDocumentConfig
True is coerced to 1 and False to 0.None waits indefinitely.BaseToolOutput.approx_equal), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.Applications
Use these tools to collect source-backed design evidence and natural examples before applying sequence, structure, or mechanistic scoring tools.Usage Tips
document_idtakes a Paperclip id (PMC11754230,bio_29a07e4e799b,arx_2605.11347) or one as copied: lowercasepmc..., a PMC or Paperclip article link, or an arXiv id or link. Find a paper by DOI or PMID withpaperclip-literature-lookupfirst.- The paper’s citation details come back typed in
document.paper, the same fields a search hit carries. - Prefer
read="lines"(the default, first 100 lines) orread="grep"with apattern.max_matches(20 by default) caps how many matching lines a grep returns. GXL advises against reading whole papers. read="full_text"returns the complete paper ascontent, which can be long.- Set
PAPERCLIP_API_KEYbefore retrieval, orPAPERCLIP_TOKENfor a bearer token. The config fieldspaperclip_api_keyandpaperclip_tokentake precedence. The tools do not read credentials saved by an interactivepaperclip login. - Without a key,
europepmc-searchandeuropepmc-fulltextsearch and read open-access PMC articles and preprints through Europe PMC’s public API, without line numbers. PAPERCLIP_BASE_URLpoints the tools at a different Paperclip deployment.- Treat literature as evidence for candidate generation, not functional validation.
Toolkit Notes
These notes apply to all four Paperclip tools.- For interactive or agentic work, use the Paperclip MCP server. See the Paperclip install guide to connect it to your agent. These tools are for calling Paperclip from Python programs.
- Requires authenticated network access. No literature database is bundled or synchronized locally; every call is an HTTPS request to the Paperclip service.
- Runs in process on CPU. There is no environment to build and no worker to start; runtime is dominated by remote retrieval.
