Skip to main content
Glama
arXiv MCP Server

arXiv MCP Server

by MaksPyn

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_FILENoAlso append logs to this file.
LOG_LEVELNoLog level: debug, info, warn, error or silent. Logs go to stderr. Default: info.
STORAGE_DIRNoAlias for ARXIV_STORAGE_DIR. Where PDFs and extracted text are stored.
PROMPTS_FILENoJSON file with extra or overriding analysis prompts.
MAX_PDF_SIZE_MBNoRefuse larger PDFs, in megabytes (0 = no limit). Default: 50.
ARXIV_STORAGE_DIRNoWhere PDFs and extracted text are stored. Alias: STORAGE_DIR.
ARXIV_MCP_ENV_FILENoPath to a .env file to load. Highest priority among .env file locations.
REQUEST_TIMEOUT_MSNoPer-request timeout for API calls, in milliseconds. Default: 20000.
MAX_STORAGE_SIZE_MBNoRefuse downloads once storage exceeds this size, in megabytes (0 = no limit). Default: 0.
RATE_LIMIT_DELAY_MSNoMinimum gap between requests to arXiv, in milliseconds. Default: 3000.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools for arXiv. Typical workflow: search_papers (or get_recent_papers) to find papers → get_papers for full metadata → read_paper to read the full text (it downloads the PDF automatically) → search_in_paper to find specific passages. Use list_categories to find valid category codes such as cs.AI or math.CO.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_papersA

Search arXiv papers. Combine any of: free text (all), title, author, abstract, categories and a submission-date range; all given criteria must match. Multi-word title/abstract/all searches match papers containing every word; wrap words in double quotes for an exact phrase. For advanced use, query accepts raw arXiv syntax (prefixes ti: au: abs: co: jr: cat: all:, operators AND OR ANDNOT).

get_papersA

Get full metadata (all authors, affiliations, complete abstract, comments, journal reference, DOI, links) for one or more papers. Accepts IDs like 2301.00001, 2301.00001v2, hep-th/9901001, or arxiv.org URLs.

get_recent_papersB

List the most recently submitted papers in one or more arXiv categories (e.g. cs.AI, astro-ph.CO, or a whole archive like math).

list_categoriesA

List official arXiv subject categories (e.g. cs.AI, math.CO, q-bio.NC) with their names and descriptions. Filter by group (cs, econ, eess, math, physics, q-bio, q-fin, stat, or a physics archive such as astro-ph / cond-mat) and/or search text. Use the codes with search_papers and get_recent_papers.

download_paperA

Download a paper's PDF into local storage (/root/.arxiv-mcp-server/papers). Not required before read_paper, which downloads automatically.

list_downloaded_papersA

List papers stored locally, with storage usage and the storage directory in use.

delete_paperA

Delete a paper (PDF and cached text) from local storage.

read_paperA

Read the full text of a paper, extracted from its PDF (downloaded automatically if needed). Long papers are returned in chunks: use offset to continue, or section to jump to a section such as "Introduction", "3", "3.2" or "conclusion". The first call lists the detected sections.

search_in_paperA

Find every occurrence of a word or phrase in a paper's full text (downloaded automatically if needed), with surrounding context and the section it appears in. Plain-text match, not regex.

analyze_paperA

Get a structured research-analysis brief for a paper (summary, key findings, methodology critique, literature-review entry, research gaps, etc.) filled with the paper's metadata. Omit promptId to list the available analyses. The same templates are also exposed as MCP prompts.

Prompts

Interactive templates invoked by user choice

NameDescription
summaryGenerate a comprehensive summary of the paper
key_findingsExtract and highlight the key findings from the paper
methodology_analysisAnalyze the research methodology used in the paper
literature_reviewHelp create a literature review entry for this paper
research_gapsIdentify research gaps and future directions suggested by the paper
technical_deep_diveProvide a detailed technical analysis of the paper
comparisonCompare this paper with related work
practical_applicationsIdentify practical applications and real-world impact

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 10 tools

Disambiguation4/5

Most tools target clearly distinct operations: arXiv search, recent listings, metadata retrieval, category lookup, local storage management, full-text reading, in-paper search, and analysis. The only overlaps are search_papers vs get_recent_papers (recent listing achievable via date-bounded search) and download_paper vs read_paper (which auto-downloads), but the descriptions explicitly clarify these boundaries.

Naming Consistency5/5

All ten tools follow a clean verb_noun snake_case pattern (list_*, search_*, get_*, download_paper, delete_paper, read_paper, analyze_paper) with no camelCase or stylistic deviations. The prefix semantics are also consistent: get_ for metadata, list_ for enumerations, and action verbs for local operations.

Tool Count5/5

Ten tools is well within the ideal range and each earns its place: discovery (search, recent, categories), retrieval (get_papers), local lifecycle (download, delete, list_downloaded), reading (read, search_in), and analysis. Nothing feels redundant or padded.

Completeness4/5

Coverage is strong end-to-end: discovery, metadata, PDF download/read, in-paper search, local storage lifecycle, and analysis briefs. Minor gaps remain—no cross-paper full-text search over the local library, no local-library tagging/organization, and no citation/reference traversal—but agents can work around these with existing tools.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues