arxiv-query-mcp
This MCP server lets AI assistants search arXiv, browse categories, read paper text, and discover related work.
Search arXiv with full query syntax, field prefixes, boolean operators, date filters, sorting, pagination, and markdown/JSON output.
Retrieve complete metadata for any paper by ID, including version, authors, abstract, categories, DOI, and links.
List recent papers by arXiv subject category with date filters and pagination.
Read paper text page by page from HTML or PDF fallback, continuing via character offsets.
Find similar papers, references, or citing papers via Semantic Scholar.
Use built-in caching, request spacing, concurrency limits, retries, and configurable settings.
Search and retrieve papers from arXiv, including metadata (abstract, authors, categories, DOI, links), browse by category, and fetch paper text.
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., "@arxiv-query-mcp search for papers on reinforcement learning"
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.
arxiv-query-mcp
An MCP (Model Context Protocol) server that gives AI assistants direct access to arXiv. Search papers, retrieve full metadata, browse categories, and read paper text.
Table of Contents
Related MCP server: arXiv MCP Server
Features
Search arXiv — Full query syntax support with title, author, abstract, and category filters
Get paper metadata — Retrieve complete details for any paper by ID (abstract, authors, categories, DOI, links)
Browse by category — List recent papers in specific subject areas (ML, AI, NLP, Computer Vision, etc.)
Read paper text — Read a whole paper page by page, from its HTML version or, for older papers, from the PDF; headings, paragraphs and LaTeX math are kept
Date filters — Restrict searches and category listings to a submission-date range
Related papers — Find similar papers, a paper's references, or the papers citing it (via Semantic Scholar)
Flexible formatting — Response support for both markdown (human-readable) and JSON (programmatic)
Pagination — Handle large result sets with configurable limits and offsets
Caching — Two-tier cache (in-memory plus on-disk) so repeated queries and paper texts are served without hitting arXiv
Polite to arXiv — Cross-process request spacing, a concurrency cap, and automatic retries with back-off on
429/5xxresponses
Installation
Prerequisites
Python 3.12or laterDependencies
mcp[cli]>=2.3.0,httpx>=0.27.0,pydantic>=2.0.0,tenacity>=9.0,diskcache>=5.6,platformdirs>=4.0,pypdf>=5.0(see pyproject.toml) (project usespoetryfor dependency management)
Upgrading to 4.0: failures (bad query, unknown paper, rate limit, …) are now returned as MCP tool errors (
isError) instead of normal text starting withError:, and a version suffix such as1706.03762v2now selects that version instead of being ignored. Tool names and existing parameters are unchanged.
Upgrading from 1.x: the server now requires the MCP Python SDK 2.x (
FastMCPwas renamed toMCPServer). The tool names and parameters are unchanged; only environments that pinmcp<2need to upgrade.
Recommended: uv + one-command setup
uv tool install arxiv-query-mcp
arxiv-query-mcp setupsetup registers the server with Claude Desktop (claude_desktop_config.json) and Claude Code (claude mcp add --scope user), plus Cursor (~/.cursor/mcp.json), Windsurf and Gemini CLI when installed, and downloads the agent skill into ~/.claude/skills/arxiv-query-mcp/. Existing entries in your config are preserved, including the env block of an existing arxiv entry. Skip parts with --no-claude-desktop, --no-claude-code or --no-skill. Restart your client afterwards.
Try it without installing: uvx arxiv-query-mcp setup (this registers a temporary path, so use uv tool install for a lasting setup).
Command | Purpose |
| Run the MCP server over stdio |
| Configure clients and install the skill |
| Download the skill into every detected agent in the project (falls back to the bundled copy offline) |
install-skill detects which agents the current project uses and writes to each; name targets explicitly with --target. It never overwrites a differing file without --force, and only edits the marked block in shared files.
Target | Detected by | Writes |
| always |
|
|
|
|
|
|
|
|
|
|
|
| pointer block in |
|
| pointer block in |
Codex stores MCP servers in TOML (~/.codex/config.toml), which setup does not edit; its skill is covered by the agents target.
Install from PyPI
pip install arxiv-query-mcp
arxiv-query-mcp setup # optional: configure clients and install the skillBuild from Source
git clone https://github.com/LWaetzig/arxiv-query-mcp.git
cd arxiv-query-mcp
pip install -e .Usage
Detailed documentation about single tools can be found here
Integration with Claude Desktop
arxiv-query-mcp setup does this for you. To configure it by hand, add the server to your Claude Desktop configuration:
Platform | Path |
macOS |
|
Windows |
|
Add the arxiv entry under mcpServers, replacing the path with the absolute path to your clone:
{
"mcpServers": {
"arxiv": {
"command": "arxiv-query-mcp"
}
}
}Restart Claude Desktop. You should see the arxiv tools available in the tool picker.
Integration with Other MCP Clients
Any MCP client (e.g., Cline, Continue, or custom tools) can use this server. Configure the connection to:
Command: arxiv-query-mcp
Transport: stdioConfiguration
The server works out of the box. Every setting can be overridden with an environment variable, which you can set in the env block of your MCP client configuration:
{
"mcpServers": {
"arxiv": {
"command": "arxiv-query-mcp",
"env": { "ARXIV_MCP_L2_TTL": "86400" }
}
}
}Variable | Default | Description |
|
| arXiv Atom API endpoint |
|
| Seconds before an HTTP request times out |
|
| Maximum characters per page returned by |
|
| Largest PDF parsed when a paper has no HTML version; |
|
|
|
|
| Set to |
| platform cache dir | Directory of the on-disk cache (shared between server processes) |
|
| Seconds an entry stays in the in-memory cache |
|
| Seconds an entry stays in the on-disk cache |
|
| Seconds empty / not-found results are cached |
|
| Maximum entries in the in-memory cache (LRU) |
|
| Set to |
|
| Minimum seconds between arXiv requests, across all server processes |
|
| Maximum simultaneous in-flight requests per process |
|
| Attempts per request before giving up |
|
| Initial retry back-off in seconds (doubles per attempt) |
|
| Upper bound for a single retry wait, including |
| GitHub raw URL of | URL advertised to agents in the server instructions and used by |
| (empty) | Semantic Scholar API key for |
|
| Minimum seconds between Semantic Scholar requests, across all server processes |
|
| Semantic Scholar API base URL |
Invalid numeric values stop the server at startup with an error naming the variable.
Agent skill
The package ships an agent skill, SKILL.md, that explains when and how to use the tools (query syntax, search strategy, pagination, error handling). The server advertises its URL in the MCP server instructions, which clients show to the agent when it connects, so agents that support skills or can fetch URLs can pick it up automatically. arxiv-query-mcp setup (or install-skill) downloads it from ARXIV_MCP_SKILL_URL into ~/.claude/skills/arxiv-query-mcp/, falling back to the bundled copy if the download fails.
Related papers and Semantic Scholar
arxiv_related_papers gets its data from the Semantic Scholar API, since arXiv has no citation or similarity data. It works without an account, but unauthenticated requests share a public quota and are throttled more often; request a free API key and set ARXIV_MCP_S2_API_KEY to get your own.
How caching and rate limiting work
Lookups check memory first, then disk, and only then call arXiv. Concurrent identical requests share a single fetch.
Empty results use the shorter
ARXIV_MCP_NEGATIVE_TTLso a transient miss doesn't stick around.Failed requests are never cached.
Retries happen on timeouts, transport errors and
429/500/502/503/504. A numericRetry-Afterheader is honoured (up toARXIV_MCP_BACKOFF_MAX). Every attempt, including retries, respects the request spacing.arXiv asks clients to make at most one request every 3 seconds; lowering
ARXIV_MCP_RATE_LIMIT_PERIODbelow that is not recommended.
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch (
git checkout -b feature/your-feature)Commit your changes with clear messages
Push to your fork
Open a pull request
Support
For issues, questions, or feature requests, please open an issue on GitHub.
License
Available Tools
5 toolsarxiv_fetch_paper_textRead arXiv paper textARead-onlyIdempotent
Fetch the readable text content of an arXiv paper.
First tries the HTML version of the paper (available for most papers submitted after ~2023 with LaTeX source). Without one, the text is extracted from the PDF instead. Only if neither works does it return the full abstract and metadata.
Use arxiv_get_paper first to find the paper ID, then call this tool to read the paper's content.
Args: params (FetchPaperTextInput): - paper_id (str): arXiv paper ID, e.g. '2303.08774'; add a version suffix ('2303.08774v1') to read that version instead of the latest - offset (int): Character offset to start from (default 0) - response_format (str): markdown | json
Returns: str: One page of extracted paper text (about 10,000 characters) or the full abstract with links when no text can be extracted. Long papers span several pages: when more text remains, the response reports the next offset; call again with that offset to continue.
JSON schema when response_format='json' (text available):
{ "id", "source", "format" ("html" | "pdf"), "total_chars", "offset", "count", "has_more",
"next_offset", "text" }
Inputs: params (required). Returns: result
arxiv_get_paperGet arXiv paper metadataARead-onlyIdempotent
Retrieve full metadata for a specific arXiv paper by its ID.
Returns complete information: title, all authors, full abstract, categories, dates, journal reference, DOI, and direct links to abstract, PDF, and HTML.
Args: params (GetPaperInput): - paper_id (str): arXiv ID, e.g. '2303.08774', '1706.03762v2', or old-style 'hep-th/9901001'. A version suffix selects that version; without one the latest version is returned. - response_format (str): markdown | json
Returns: str: Full paper metadata.
JSON schema when response_format='json':
{ "id", "version", "title", "authors", "abstract", "published",
"updated", "primary_category", "categories", "abstract_url", "pdf_url",
"html_url", "comment", "journal_ref", "doi" }Examples: - Attention Is All You Need: paper_id='1706.03762' - GPT-4 technical report: paper_id='2303.08774' - AlphaFold: paper_id='2108.10991'
Inputs: params (required). Returns: result
arxiv_list_by_categoryList arXiv papers by categoryARead-onlyIdempotent
List recent papers in a specific arXiv subject category.
Retrieves papers filtered to one category, sorted by submission date by default. Useful for monitoring a research area's latest preprints.
Args: params (ListByCategoryInput): - category (str): arXiv category code, e.g. 'cs.LG', 'math.CO' - max_results (int): Results per page (1 - 50, default 20) - start (int): Pagination offset - sort_by (str): relevance | lastUpdatedDate | submittedDate - sort_order (str): descending | ascending - date_from (str): Only papers submitted on/after YYYY-MM-DD - date_to (str): Only papers submitted on/before YYYY-MM-DD - response_format (str): markdown | json
Returns: str: Paginated list of papers in the category.
Common category codes: cs.LG — Machine Learning cs.AI — Artificial Intelligence cs.CL — Computation & Language cs.CV — Computer Vision cs.CR — Cryptography cs.RO — Robotics cs.NE — Neural & Evolutionary math.CO — Combinatorics math.ST — Statistics Theory physics.quant-ph — Quantum Physics stat.ML — Statistics / ML econ.GN — General Economics q-bio.NC — Neurons & Cognition
Inputs: params (required). Returns: result
arxiv_searchSearch arXivARead-onlyIdempotent
Search arXiv for academic papers using full query syntax.
Supports field-specific search and boolean operators. Returns paginated results with title, authors, abstract snippet, and direct links.
Args: params (SearchInput): - query (str): Query string, e.g. 'ti:attention AND cat:cs.LG' - max_results (int): Results per page (1 - 50, default 10) - start (int): Pagination offset (default 0) - sort_by (str): relevance | lastUpdatedDate | submittedDate - sort_order (str): descending | ascending - date_from (str): Only papers submitted on/after YYYY-MM-DD - date_to (str): Only papers submitted on/before YYYY-MM-DD - response_format (str): markdown | json
Returns: str: Paginated list of matching papers with metadata and links.
JSON schema when response_format='json':
{
"total": int,
"count": int,
"start": int,
"has_more": bool,
"next_start": int | null,
"papers": [{ "id", "version", "title", "authors", "abstract", "published",
"updated", "primary_category", "categories",
"abstract_url", "pdf_url", "html_url",
"comment", "journal_ref", "doi" }]
}Examples: - 'ti:large language model AND cat:cs.LG' — LLM papers in ML - 'au:lecun AND cat:cs.CV' — LeCun's vision papers - 'abs:diffusion AND abs:image generation' — diffusion image gen - 'ti:attention is all you need' — search by title phrase - query='abs:agents', date_from='2026-10-01' — recent papers only
Inputs: params (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct primary purpose: search, metadata retrieval, category listing, full-text reading, and related-paper discovery. The main overlap is between arxiv_search and arxiv_list_by_category, since category queries can also be expressed through search syntax, but the descriptions make the intended use cases reasonably clear.
All tool names use a consistent arxiv_ prefix and snake_case formatting. Most follow a verb_noun pattern, though arxiv_related_papers is a noun phrase rather than a verb-led name, which is a minor deviation.
Five tools is well-scoped for an arXiv query server, covering discovery, metadata, full text, and citation relationships without redundancy. Each tool earns its place.
The surface covers the core arXiv research workflow: search, paper lookup, category monitoring, reading full text, and exploring related/citing work. Minor conveniences like citation formatting are absent, but no critical gaps exist for the stated purpose.
Maintenance
Related MCP Connectors
Search arXiv, fetch paper metadata, and read full-text content.
Find research papers and arXiv preprints, and get an abstract and free full text from a DOI or id.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Search arXiv and ACL Anthology, retrieve citations and references, and browse web sources to accel…
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables AI assistants to search and retrieve academic papers from arXiv through MCP tools, supporting search by various criteria, detailed paper information, category browsing, and PDF content extraction.4102 npm2-
- AlicenseBqualityBmaintenanceEnables searching and retrieving academic papers from arXiv with support for advanced filtering by author, category, and date, plus full paper content extraction.1216MIT
- AlicenseNot gradedqualityDmaintenanceEnables agents to search, analyze, and explore arXiv academic papers with advanced multi-field search, author lookup, category browsing, citation extraction, and bibliography export.46 npmApache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to discover and manage arXiv papers by searching for papers, extracting metadata, and browsing saved collections, all within the conversation.1MIT