Input Priority
ingest_paper_fulltext accepts any of:
doipaper_urlpdf_urllocal_pdf_path
You must pass at least one.
Local files take priority. Otherwise, ScholarMCP uses pdf_url, an OpenAlex PDF
link resolved from doi, a paper_url whose path ends in .pdf, then PDF links
discovered on the landing page. Direct PDF links skip landing-page discovery.
An unresolved DOI does not substitute a different paper.
Parse Modes
auto(default): tries parser fallback chaingrobid: tries GROBID first, then falls back to the simple parsersimple: uses only the localpdf-parseparser
In auto mode, ScholarMCP now attempts grobid -> simple.
Set RESEARCH_GROBID_URL to use GROBID. It receives the PDF file for parsing.
Without it, ScholarMCP uses pdf-parse locally. ocr_enabled is reserved;
neither mode currently performs OCR. Image-only scanned PDFs need OCR before
ingestion.
Limits and job lifetime
- PDF files and GROBID responses are limited to 50 MiB; landing pages to 2 MiB.
- Downloads, landing-page discovery, and GROBID calls use
RESEARCH_TIMEOUT_MS, which defaults to 20 seconds per request. - Jobs and parsed documents live in process memory. Poll until
succeededorfailed, and extract or save results before restarting the server. - Extraction uses local text patterns. Tables, equations, and figures are not extracted, and no cloud LLM is called.
Use HTTP mode only with trusted clients. Local file access and remote URL fetching use the server’s permissions and network access. For remote hosting, configure a bearer API key, host/origin allow-lists, and network isolation; disable local PDF ingestion if clients should not read server files.
Common Failure Cases
- DOI page has no downloadable PDF URL:
- retry with
pdf_urlorlocal_pdf_path
- retry with
- Remote downloads disabled:
- set
RESEARCH_ALLOW_REMOTE_PDFS=true
- set
- Local ingestion disabled:
- set
RESEARCH_ALLOW_LOCAL_PDFS=true
- set
- Throttling or timeout pressure:
- increase
SCHOLAR_REQUEST_DELAY_MSand/orRESEARCH_TIMEOUT_MS
- increase