arxiv-mcp-server

v0.8.2
io.github.blazickjp/arxiv-mcp-server Checked 3 days ago Published 1 month ago

Search arXiv papers, download full text, semantic search, citation graphs, and alerts via MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_papers

Search arXiv by query with optional categories, date range, sort, and pagination. Query: prefer quoted phrases; ti:/au:/abs:/cat:; AND/OR/ANDNOT. Unprefixed terms match title+abstract (not authors). Use categories (cs.AI, cs.LG, cs.CL, cs.CV, cs.MA, cs.RO, stat.ML, quant-ph). Catalog/examples: README 'search_papers query guide'. Dates YYYY-MM-DD (date_from/date_to). sort_by relevance|date. max_results default 5 (cap 50). abstract_mode none|snippet|full (default snippet). start default 0; response: total_results, returned, has_more, next_start, abstract_mode. Pass next_start with same abstrac…

ParameterTypeDescription
query *stringarXiv query string. Prefer quoted phrases and ti:/au:/abs:/cat: field prefixes; AND/OR/ANDNOT supported.
abstract_modestringAbstract projection (default snippet ~280 chars, marked if truncated; full=complete; none=omit).
categoriesarrayarXiv category filters (e.g. ['cs.LG', 'cs.AI']). Strongly improves relevance.
date_fromstringInclusive start date (YYYY-MM-DD).
date_tostringInclusive end date (YYYY-MM-DD).
max_resultsintegerMaximum results to return (default: 5, max: 50).
sort_bystringSort by 'relevance' (default) or 'date' (newest first).
startintegerZero-based result offset (default: 0). Pass next_start from a previous response to fetch the next page.

download_paper

Download a paper from arXiv and return its text content. Tries the HTML version first for clean extraction; falls back to PDF conversion if HTML is unavailable. Stores the paper locally. Returned text is bounded to roughly 12,000 characters by default so one call cannot return an unbounded paper body. When is_truncated is true, call again with start=next_start (see next_retrieval) to continue, or pass return_full_text=true for the entire remaining paper. Set force=true to re-fetch and overwrite a cached paper (required to replace a newer stored arXiv version with an older one).

ParameterTypeDescription
paper_id *stringThe arXiv ID of the paper to download (e.g. '2103.12345')
forcebooleanIf true, re-download and overwrite the local markdown and metadata sidecar even if the paper is already cached, including when replacing a newer stored arXiv version with an older one. Default false.
max_charsintegerMaximum raw paper characters to return from start; omit for the bounded default (12,000 chars)
return_full_textbooleanSet true to opt out of the bounded default and return the entire remaining paper from start in one call
startintegerZero-based character offset for returning large papers in chunks; pass next_start from a prior truncated response to continue

list_papers

List all papers that have been downloaded and stored locally via download_paper. Returns id, title, authors, published, and arxiv_version/versioned_id from local metadata — no live re-fetch. Set compact=true to return arXiv IDs only. Returns an empty list if no papers have been downloaded yet. Workflow: search_papers -> download_paper -> list_papers -> read_paper.

ParameterTypeDescription
compactbooleanIf true, return arXiv IDs only. Default is full local metadata (id, title, authors, published, arxiv_version, versioned_id).

read_paper

Read the text content of a paper that was previously downloaded via download_paper. Returns the paper in markdown format, bounded to roughly 12,000 characters by default so one call cannot return an unbounded paper body. When is_truncated is true, call again with start=next_start (see next_retrieval) to continue, or pass return_full_text=true for the entire remaining paper. Will fail with a clear error if the paper has not been downloaded yet — call download_paper first. Workflow: search_papers -> download_paper -> read_paper.

ParameterTypeDescription
paper_id *stringThe arXiv ID of the paper to read
max_charsintegerMaximum raw paper characters to return from start; omit for the bounded default (12,000 chars)
return_full_textbooleanSet true to opt out of the bounded default and return the entire remaining paper from start in one call
startintegerZero-based character offset for reading large papers in chunks; pass next_start from a prior truncated response to continue

get_abstract

Fetch abstract and metadata by arXiv ID without downloading the paper. Use before download_paper to assess relevance. Returns title, authors, abstract, categories, published date, and PDF URL. After compact search, use for one full abstract; skip if search used abstract_mode=full.

ParameterTypeDescription
paper_id *stringThe arXiv paper ID (e.g. '2401.12345' or '2404.19756')

reindex

Rebuild the local semantic index for downloaded papers.

ParameterTypeDescription
clear_existingbooleanIf true, clear the existing index before rebuilding.

citation_graph

Return papers citing an arXiv paper and papers that it references using Semantic Scholar's citation graph. Results are bounded (default 50) to stay within the unauthenticated quota. Graphs are cached on disk to reduce repeated API calls. Under load, a free Semantic Scholar API key (https://www.semanticscholar.org/product/api#api-key) makes this reliable; without a key, persistent rate limits return status=rate_limited with an unmistakable warning instead of failing hard.

ParameterTypeDescription
paper_id *stringarXiv ID (for example: 2401.12345).
max_citationsintegerMaximum citations and references to return (default 50).

export_citations

Export BibTeX citations for one or more arXiv papers using authoritative arXiv metadata (title, authors, year, primary category), never model-generated fields. Version suffixes (e.g. '2401.12345v2') are preserved and citation keys are deterministic. Returns the rendered BibTeX plus per-paper status/error. BibTeX only; RIS/CSL-JSON are not yet supported.

ParameterTypeDescription
paper_ids *arrayarXiv IDs, new-style ('2401.12345', optionally versioned '2401.12345v2') or legacy ('hep-ph/9901234').

watch_topic

Save or update a persistent research topic watch. When checked via check_alerts, returns only papers published since the last check — acting as a standing alert for new work on a topic. New watches seed last_checked to creation time so the first check does not dump historical matches. The topic string uses the same query syntax as search_papers (quoted phrases, field specifiers, boolean operators). Examples: '"diffusion models" AND ti:"video generation"', 'au:"LeCun" AND cs.LG'. Calling watch_topic with the same topic string updates the existing watch rather than creating a duplicate. On upd…

ParameterTypeDescription
topic *stringQuery string to monitor. Uses arXiv search syntax — quoted phrases for exact matches, field specifiers (ti:, au:, abs:), and boolean operators (AND, OR, ANDNOT). Example: '"reinforcement learning" A…
categoriesarrayOptional arXiv category filter (e.g. ['cs.LG', 'cs.AI']). Narrows results to specific fields. On update, omit this field to preserve existing categories; pass an empty array [] to clear them.
max_resultsintegerMaximum papers to return per alert check (default: 10).

check_alerts

Check all saved topic watches for newly published papers since the last check. Omitting the topic parameter runs ALL saved watches and returns new papers for each. Passing a topic string checks only that specific watch. Advances each watch's drain cursor after running: when a page is truncated by max_results, has_more=true and check_start advances so later calls return the next papers in the same window (Atom date bounds alone are day-granular and would otherwise re-hit the boundary); last_checked tracks the newest returned paper. When the page is not full, last_checked becomes now and the dra…

ParameterTypeDescription
topicstringOptional: check only this specific watched topic (must match the topic string used in watch_topic exactly). Omit to check all saved watches.

list_watches

List all saved topic watches without checking for new papers. Returns each watch's topic, categories, last_checked timestamp, and other stored fields. Does not update last_checked — use this to inspect what is saved. Use unwatch_topic to remove a watch, or check_alerts to poll for new papers.

unwatch_topic

Delete a saved topic watch by exact topic string. The topic must match the stored watch_topic value exactly. Returns a clear not-found error if no matching watch exists. Use list_watches to inspect saved watches before deleting.

ParameterTypeDescription
topic *stringExact topic string of the watch to remove. Must match the topic used in watch_topic.

get_paper_latex

Download, safely process, cache, and return bounded original LaTeX source. Use section tools for targeted reading.

ParameterTypeDescription
paper_id *stringValidated modern or legacy arXiv paper ID
max_charsintegerMaximum source characters to return (default 12000)
return_full_textbooleanSet true to opt out of the bounded default and return the entire remaining source or section from start in one call
startintegerZero-based character offset within this source or section

list_paper_latex_sections

Return a compact outline of headings from original LaTeX source.

ParameterTypeDescription
paper_id *stringValidated modern or legacy arXiv paper ID
max_sectionsintegerMaximum headings to return (default 100)
startintegerZero-based section index (default 0)

get_paper_latex_section

Return one bounded LaTeX section by outline ID or title (whitespace/case normalized; macros expanded).

ParameterTypeDescription
paper_id *stringValidated modern or legacy arXiv paper ID
section_id *stringSection ID from list_paper_latex_sections or section title
max_charsintegerMaximum source characters to return (default 12000)
return_full_textbooleanSet true to opt out of the bounded default and return the entire remaining source or section from start in one call
startintegerZero-based character offset within this source or section

get_paper_outline

Return a paginated heading outline for a downloaded paper (markdown). Stable hierarchical section IDs; use read_paper_section to fetch one.

ParameterTypeDescription
paper_id *stringValidated modern or legacy arXiv paper ID
max_sectionsintegerMaximum headings to return (default 100)
startintegerZero-based section index (default 0)

read_paper_section

Return one bounded markdown section by outline ID (or unique title). Does not include sibling or parent sections.

ParameterTypeDescription
paper_id *stringValidated modern or legacy arXiv paper ID
section_id *stringSection ID from get_paper_outline, or unique title
max_charsintegerMaximum section characters to return (default 12,000)
return_full_textbooleanIf true, return the entire remaining section from start
startintegerZero-based character offset within this section

search_paper_text

Search a downloaded paper for bounded matching passages with section/source offsets. Suppresses high-overlap near-duplicates and prefers section-diverse hits. Lightweight substring search; no Torch.

ParameterTypeDescription
paper_id *stringValidated modern or legacy arXiv paper ID
query *stringCase-insensitive substring to find
max_passagesintegerMaximum passages to return (default 8)
passage_charsintegerMax characters per excerpt (default 800)