lectio
Retrieves arXiv papers by ID, arXiv DOI, or URL, resolving full text through sources such as arxiv.org/html, ar5iv, TeX archives, or PDF and staging math-preserving Markdown/PDF for indexed section reading.
Resolves DOI targets via doi.org, OpenAlex, and optional Unpaywall to obtain verified open-access full text, PDFs, substantive OA HTML, or metadata-only records.
Fetches GitHub files by rewriting GitHub blob URLs to raw content, enabling retrieval of technical documents and repository files for reading.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
adfontes
Full-text academic and technical literature reader CLI and stdio Model Context Protocol (MCP) server for coding agents.
Given a paper identifier (arXiv, DOI, PMCID, PMID), specification (IETF RFC), or URL, adfontes fetches open-access full text, stages it locally, and prints a compact provenance header with a line- or page-indexed Table of Contents. Paywalled works return bibliographic metadata and an abstract without fabricating full text.
Installation
Python (uv)
uv tool install --managed-python adfontesStandalone Binary
Install with cargo-binstall, or compile from crates.io:
cargo binstall adfontes # prebuilt GitHub Release binary
cargo install adfontes --locked # compile from sourceRelated MCP server: paper-search-mcp
Quickstart
Fetch a paper, specification, or web article:
adfontes fetch 2409.13740 # arXiv paper
adfontes fetch 10.1038/s41586-025-10072-4 # DOI
adfontes fetch PMC11456789 # PubMed Central (or PMID:38123456)
adfontes fetch "RFC 9110" # IETF RFC
adfontes fetch https://example.org/article # web page, Markdown, GitHub blob, or PDF
adfontes fetch 2409.13740 -o /tmp/lit # custom staging directoryExtract a lossless 1–8-page vector slice from a staged PDF:
adfontes slice-pdf /tmp/adfontes/paper.pdf -p 8-10Start the stdio MCP server:
adfontes mcpRegister adfontes in mcp_config.json to expose the fetch and slice_pdf tools:
{
"mcpServers": {
"adfontes": {
"command": "/absolute/path/to/adfontes",
"args": ["mcp"]
}
}
}Supported Sources
adfontes resolves each target through a keyless open-access waterfall:
Source | Examples | Resolution Order |
arXiv |
|
|
DOI |
| Crossref/OpenAlex/Unpaywall → PMCID/arXiv → open-access PDF/HTML → metadata only |
PMCID / PMID |
| Europe PMC JATS XML → DOI/arXiv fallback → open-access PDF → metadata only |
IETF RFC |
| Datatracker status notes → RFCXML v3 → plain text |
Web / GitHub |
| GitHub raw rewrite → |
Configuration
Configure staging confinement, outbound host rules, and polite-pool metadata access through environment variables:
Variable | Purpose |
| Default staging directory. |
| Additional allowed staging roots ( |
| Additional absolute path prefixes blocked from staging. |
| Comma-separated domain suffixes blocked from outbound HTTP(S). |
| Contact email enabling Unpaywall and OpenAlex polite-pool queries. |
| Truthy value ( |
| Standard HTTP(S) proxy settings (SOCKS proxies are rejected). |
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Papers, SEC filings, Wikipedia, HN and web reading for research agents. 15 tools, x402.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Source-backed prompting and coding-agent guidance with provenance and freshness checks.
SEC filings, Wikipedia, arXiv, US Census and more for AI agents, with every answer source-linked.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLMs to search, download, and read arXiv papers with automatic PDF text extraction and section filtering. Provides AI assistants direct access to scientific literature with local caching for fast re-access.334 PyPI1MIT
- FlicenseAqualityDmaintenanceEnables agents to search papers across Semantic Scholar and arXiv, read and extract text from arXiv PDFs, align records across sources, and produce structured literature-analysis digests.101-
- AlicenseNot gradedqualityBmaintenanceConverts DOIs and arXiv IDs into local PDFs via official open-access APIs, designed as an agent-facing companion for academic paper retrieval.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to retrieve the full text of research articles as downloadable files from DOIs, arXiv, PubMed Central, or OpenReview identifiers, falling back automatically across publisher APIs, open-access aggregators, and polite scraping. It supports single and concurrent batch requests, verifies the returned file matches the requested paper, can include supplementary files, and reports which source produced each result.77 PyPI30BSD 3-Clause