Open Source Literature MCP
This MCP server discovers, screens, ranks, exports, and reasons over academic literature.
Search literature by topic with
auto_literature_screenor its aliasdiscover_papers, using year filters, preprints, source selection, and screening criteria.Deduplicate, screen, and rank papers internally, returning only final selected papers plus transparency metadata such as source reports, rejection stats, timing, and score breakdowns.
Expand from a Semantic Scholar seed paper to related papers with
expand_related_papers, falling back to OpenAlex related works when needed.Export selected papers to a Zotero user or group library with
export_to_zotero.Generate heuristic research-idea scaffolding and review proposed ideas for novelty, feasibility, and literature fit.
Check server health, build identity, API-key configuration, and live upstream source status with
literature_mcp_health.Benefit from deadline enforcement, cancellation propagation, partial results, rate-limit cooldowns, caching, and structured diagnostics.
Allows searching and retrieving papers from the arXiv preprint repository.
Allows searching and retrieving papers from Semantic Scholar, with optional API key for improved rate limits.
Allows exporting selected papers to a Zotero user or group library.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Open Source Literature MCP screen recent papers on single-cell multi-omics in cancer"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Open Source Literature MCP
An MCP server for automatic literature discovery and screening across OpenAlex, Europe PMC, Semantic Scholar, arXiv, PubMed, and Crossref.
Every search call runs under a hard wall-clock deadline (default 50s, LITERATURE_MCP_DEADLINE_MS or per-call deadlineMs) with MCP cancellation propagated to every request: slow or rate-limited sources are dropped instead of blocking the others, the call returns partial results with per-source status, and a cancelled call stops consuming upstream quota immediately.
The server keeps intermediate raw results, normalized records, and deduped candidates internal. MCP clients receive only the final selected papers plus structured metadata.
Tools
auto_literature_screen: Searches selected sources, dedupes by DOI/arXiv ID/OpenAlex ID/title, screens, ranks, and returns final papers. Acceptsqueries: alternative phrasings of the topic for recall (see below).discover_papers: Alias forauto_literature_screen.expand_related_papers: Expands a Semantic Scholar seed paper with related recommendations, then screens and ranks. If Semantic Scholar rate-limits the request, it degrades to the seed record'srelated_worksfrom OpenAlex.export_to_zotero: Exports final selected papers to a Zotero user or group library.generate_research_ideas: Generates evidence-backed research ideas from a topic and selected papers.review_research_idea: Reviews one proposed idea against selected papers for novelty, feasibility, and evidence fit.literature_mcp_health: Shows server metadata, whether API keys are configured, and live status checks for OpenAlex, Europe PMC, Semantic Scholar, and arXiv.
Related MCP server: Research Gap Analyzer MCP Server
Setup
npm install
npm run build
npm testnpm test covers unit behavior, including the deadline/cancellation
regression suite (test/resilience.test.ts: long Retry-After, stalled body,
stuck backfill, client cancel — each followed by a normal query). To exercise
every MCP tool end-to-end over stdio against the built server (real provider
calls, 62 checks including a same-session resilience phase):
npm run build
npm run verifyOptional environment variables (PowerShell):
$env:SEMANTIC_SCHOLAR_API_KEY = "your_key"
$env:OPENALEX_API_KEY = "your_openalex_key"
$env:OPENALEX_MAILTO = "you@example.com"
$env:EUROPEPMC_EMAIL = "you@example.com"
$env:NCBI_EMAIL = "you@example.com" # PubMed (E-utilities etiquette)
$env:CROSSREF_MAILTO = "you@example.com" # Crossref polite pool
$env:LITERATURE_MCP_CACHE_TTL_MS = "300000"
$env:LITERATURE_MCP_DEADLINE_MS = "50000" # total per-call budget
$env:LITERATURE_MCP_SOURCE_BUDGET_MS = "30000" # per-source paging budget
$env:LITERATURE_MCP_QUIET = "1" # silence stderr diagnosticsOr with bash:
export SEMANTIC_SCHOLAR_API_KEY=your_key
export OPENALEX_API_KEY=your_openalex_key
export OPENALEX_MAILTO=you@example.com
export EUROPEPMC_EMAIL=you@example.com
export NCBI_EMAIL=you@example.com
export CROSSREF_MAILTO=you@example.com
export LITERATURE_MCP_CACHE_TTL_MS=300000
export LITERATURE_MCP_DEADLINE_MS=50000
export LITERATURE_MCP_SOURCE_BUDGET_MS=30000Semantic Scholar works without a key, but a key usually improves rate limits.
OPENALEX_API_KEY is sent to OpenAlex as the api_key query parameter when configured.
OPENALEX_MAILTO opts into OpenAlex's faster "polite pool"; set it to a real contact email.
OpenAlex now requires a free key for cursor paging past the first page, so OPENALEX_API_KEY is effectively required for the automatic backfill; without it the first page still works and the report notes the 401.
LITERATURE_MCP_CACHE_TTL_MS controls the in-process GET response cache. The default is 300000 milliseconds; set it to 0 to disable caching.
MCP Client Config
Use the built server:
{
"mcpServers": {
"opensource-literature": {
"command": "node",
"args": ["D:/demo/opensourse-mcp/dist/index.js"]
}
}
}Zotero Export
Call export_to_zotero with the results array returned by auto_literature_screen.
{
"papers": [],
"zoteroApiKey": "your_zotero_key",
"zoteroUserId": "123456"
}Use zoteroGroupId instead of zoteroUserId for a group library.
Research Ideas
These two tools are heuristic scaffolding, not a language-model judgment. Ideas come from keyword/term overlap and research-gap templates, and the scores are relative heuristics meant to triage, not to rank definitively. The method and gap vocabularies default to a biomedical bias; override them with candidateMethods and focusGaps for other fields.
Use the results array returned by auto_literature_screen as selected_papers.
{
"topic": "single-cell multi-omics integration cancer prognosis",
"selected_papers": [],
"count": 5
}Then review a specific idea:
{
"topic": "single-cell multi-omics integration cancer prognosis",
"idea": "Build a cell-type aware survival prediction benchmark for missing-modality single-cell multi-omics data.",
"selected_papers": []
}For development:
{
"mcpServers": {
"opensource-literature-dev": {
"command": "npm",
"args": ["run", "dev"],
"cwd": "D:/demo/opensourse-mcp"
}
}
}Example Call
{
"topic": "single-cell multi-omics integration cancer prognosis",
"queries": [
"single cell multiomics tumor survival prediction",
"cell-type resolved multi-omic integration prognosis"
],
"yearFrom": 2020,
"limit": 10,
"sources": ["openalex", "europepmc", "semantic_scholar", "arxiv"],
"includePreprints": true,
"includeRetracted": false,
"seedPapers": ["10.1038/s41588-021-00911-1"],
"screeningCriteria": {
"mustInclude": ["single-cell"],
"prefer": ["multi-omics", "cancer prognosis", "survival prediction"],
"exclude": ["review", "editorial", "protocol"],
"minCitations": 5
}
}Transparency fields in the result
sourceReports: per-source coverage —{source, status, available, retrieved, pages, queries, durationMs, note}.statusis the failure taxonomy (ok/timeout/rate_limited/upstream_error/cancelled),queriesnames the variants that source actually ran (Semantic Scholar runs only the primary topic), and a zero result after a successful query isstatus: okwithretrieved: 0.rejectedBy: aggregate rejection statistics, keyed by the ordered exclusion codesyear,min-citations,excluded-term,missing-must,preprint,below-relevance.seedReports: per-seed calibration for the optionalseedPapersparameter —hit(with merged ID and sources),filtered(with exclusion code), ornot-found, telling apart retrieval-layer gaps from screening-layer gaps.candidateLimit: how many screened candidates the response may contain (defaults tolimit). Set it abovelimitonly when you need a wider net to judge yourself;candidatesBeforeLimitreports how many candidates passed screening before that cap was applied, so a truncated response is visible.retrieval:{queries, terms}— the variants actually sent to the providers and the union of terms used for screening, so a thin result set can be attributed to a narrow query rather than to the corpus.timing:{elapsedMs, deadlineMs, expired}— how much of the budget the call used and whether it returned partial results.rejectedDetails(withexplain: true): one line per excluded candidate with the rule that fired and why.every returned paper carries
scoreBreakdown— the exact per-factor contributions (terms / must / prefer / cross / meta / cites / infl / recency) that sum to itsscore.
Query variants (why queries matters)
Provider retrieval is lexical, not semantic: a single query is ANDed word by word, so an
on-topic paper that words the concept differently is invisible no matter how it is ranked
afterwards. A real example: the topic entropy production ecosystem thermodynamics does
not retrieve "Available energy fluxes drive a transition in the diversity, stability, and
functional structure of microbial communities" — the paper never says "entropy", so the
AND fails at the provider. Adding the variant energy flux microbial communities returns
it immediately.
The server implements variants as AND inside a variant, OR across variants:
(entropy production ecosystem thermodynamics) OR (energy flux microbial communities)and screens papers against the union of every variant's terms, so a paper found through alternative vocabulary is not rejected for lacking the primary topic's words. Supply 3–5 variants for any non-trivial search: synonyms, subfield terms, and the wording a paper's title would plausibly use. Semantic Scholar has no boolean query syntax, so it receives the primary topic only.
When only one variant is sent and the candidate pool is thin, the response carries a
Narrow retrieval warning.
Implementation Notes
Query behavior:
Every provider query is built from the plan
(variant 1 terms) OR (variant 2 terms) …, with the words inside each variant ANDed over its first 8 content tokens (all:t1 AND all:t2for arXiv,(TITLE:"t1" OR ABSTRACT:"t1") AND …for Europe PMC,t1[tiab] AND t2[tiab]for PubMed, implicit AND for OpenAlex). Semantic Scholar has no boolean syntax and receives only the primary variant; Crossref is a relevance query (the variants' words are pooled). arXiv error pseudo-entries surface as errors, andopensearch:totalResultsis reported asavailable.PubMed (NCBI E-utilities) reports esearch
countasavailableand leavescitationCountunknown (like arXiv); Crossref reportsis-referenced-by-countand only fetches scholarly types (journal-article, proceedings, book-chapter, posted-content, …).
Reliability:
Deadline: one call shares a single wall-clock budget (default 50s against the client's real 60s
toolCallTimeoutMs), covering queueing, backoff, requests, response-body reads and paging. Per-attempt timeouts are capped by the remaining budget; a response body that stalls after the headers is bounded by the same timer.Cancellation: the MCP
notifications/cancelledsignal propagates through every layer (throttle queue, backoff sleeps, fetch, paging). A cancelled call stops issuing requests immediately and releases its queue slot.Partial results: each source has its own paging budget (default 30s). On deadline expiry the pages already fetched are kept, the source is marked
timeout, and the response sayspartial results returnedwith atimingblock.Cooldowns: a
Retry-Afterlonger than the remaining budget (or 15s) is not slept through — the source returnsrate_limitedat once and a shared per-scope cooldown is recorded; while it lasts, later calls fail fast instead of burning quota. Cooldowns are visible inliterature_mcp_health.Diagnostics: structured JSON logs on stderr (
LITERATURE_MCP_QUIET=1to silence), one line per request with the request id, source, page, queue wait, HTTP status,Retry-Afterand end reason. Error messages carry redacted URLs (origin + path only — query strings can contain API keys).Build identity:
literature_mcp_healthreturnsbuildId(hash of the loadeddistmodules),pid, uptime and node version before probing upstreams, so a GUI holding a stale stdio process is immediately visible. Upstream probes are concurrent with a 4s cap each. arXiv reports no citation counts (citationCountisundefined, not0), and unknown counts passminCitationswith an explicit note.OpenAlex searches
title_and_abstract.searchand pushes constraints server-side: year range,cited_by_count:>N-1,is_retracted:false(default;includeRetracted: trueopts back in), andtype:articlewhen preprints are excluded.meta.countis reported asavailable, responses are field-limited viaselect, andopen_access.oa_urlis exposed asoaUrl.Europe PMC uses
resultType=corewithcursorMarkpagination and indexes preprints (SRC:"PPR") alongside journal articles. (The parameter iscursorMark; a plaincursoris silently ignored and would make every page return page 1 again.)Screening matches terms on token boundaries ("omics" never matches "economics", "graph" never matches "paragraph"), and without
mustIncludeterms a paper must match at least one term of the topic/variant union.Default exclusions (editorial, commentary, erratum, correction, letter to the editor) are suppressed when the topic itself contains the term: "quantum error correction" is a subject, not a correction notice. Caller-supplied
excludeterms always apply — that is an explicit instruction, not a heuristic.A topic made only of stopwords or short tokens ("the of and") is rejected before any provider is queried; searching it would return an arbitrary slice of the index.
Retries honor server
Retry-Afterand keep a 3-second floor for arXiv; transport failures (timeouts, connection resets) are retried with the same backoff instead of dropping a source on the first blip. The response cache is keyed by the full header values (no cross-API-key collisions) and capped at 200 LRU entries.Provider
nullvalues are normalised away, so a returned paper can be passed straight back intogenerate_research_ideas,review_research_idea, orexport_to_zoterowithout tripping input validation.Zotero imports report the real success count parsed from Zotero's
success/failedresponse, with failed items listed for retry.
Scoring combines:
query term overlap in title/abstract
required and preferred phrases
DOI/arXiv metadata quality
cross-source confirmation
citation counts
recency
When screening returns fewer papers than the requested limit, sources are paged again in order (OpenAlex cursor / arXiv start / S2 offset) within hard caps (at most 2 extra pages per source, candidate pool at most 200/100 per source).
Intermediate candidate tables are intentionally not exposed as a workflow step.
Available Tools
7 toolsauto_literature_screenAuto Literature ScreenB
Search OpenAlex, Semantic Scholar, and arXiv, then internally merge, dedupe, screen, and rank papers. Returns only final selected papers.
Inputs: topic (required), yearFrom, yearTo, limit, +5 more.
discover_papersDiscover PapersC
Alias for auto_literature_screen. It keeps raw and deduped candidates internal and returns final selected papers only.
Inputs: topic (required), yearFrom, yearTo, limit, +5 more.
export_to_zoteroExport To ZoteroB
Export selected final papers to a Zotero user or group library. Intended for results from auto_literature_screen.
Inputs: papers (required), zoteroApiKey (required), zoteroUserId, zoteroGroupId.
generate_research_ideasGenerate Research IdeasA
Produce heuristic, keyword-based research-idea scaffolding from a topic and selected papers. Ideas are derived from term overlap and research-gap templates, not from a language model, and scores are relative heuristics. Does not run experiments or execute code.
Inputs: topic (required), selected_papers (required), count, candidateMethods, +1 more.
literature_mcp_healthLiterature MCP HealthA
Return server metadata and configured optional API keys.
Inputs: no named parameters.
review_research_ideaReview Research IdeaA
Heuristically review a proposed research idea against selected papers, scoring novelty, feasibility, and literature support from keyword overlap. Scores are relative heuristics, not a language-model judgment.
Inputs: topic (required), idea (required), selected_papers (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
auto_literature_screen and discover_papers are exact aliases, creating confusion and redundancy. Other tools are distinct but the duplication lowers disambiguation.
Most tools use verb_noun pattern (e.g., export_to_zotero, generate_research_ideas), but auto_literature_screen and literature_mcp_health deviate. The naming is readable but not fully consistent.
7 tools is a reasonable number for a literature MCP. The presence of two aliases slightly inflates the count, but overall it's well-scoped.
Covers search, related-paper expansion, export, and idea generation/review. Missing are operations to view intermediate results, manually curate selections, or import from other sources, which are notable gaps.
Related MCP Connectors
Academic literature search, retrieval, and private library management on top of OpenAlex.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Paper search (free), literature review packs, hallucinated-citation checks, arXiv digests, citations
Audited research digests, full-text Scout screening & arXiv/OpenAlex search for your research focus.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI-powered academic paper discovery, search, and analysis from arXiv with advanced features like semantic search, citation network analysis, and multi-format exports (BibTeX, RIS, JSON, CSV). Provides intelligent research assistance through specialized AI prompts for summarization, trend tracking, and literature review automation.17MIT
- FlicenseNot gradedqualityDmaintenanceAutomates literature review, research gap detection, and novelty evaluation for academic research, providing tools to search, summarize, find gaps, generate ideas, and evaluate novelty.-
- AlicenseAqualityDmaintenanceEnables searching scholarly literature across CrossRef, ERIC, Semantic Scholar, and OpenAlex, and retrieving open-access PDFs via Unpaywall.9MIT
- AlicenseAqualityCmaintenanceEnables keyless, read-only literature research by searching OpenAlex, Crossref, Europe PMC, PubMed and arXiv at once, merging and ranking results, following citations, retrieving open-access full text, looking up clinical trials, verifying citations, and exporting BibTeX, RIS or CSL-JSON without any accounts or API keys.102MIT