arxiv-query-mcp

Getting Started

  • Installation
    • Prerequisites
    • Recommended: uv and one-command setup
    • Install from PyPI
    • Install with Poetry (recommended)
    • Build from Source
    • MCP Client Setup
      • Claude Desktop
      • Other MCP Clients
    • Building the Docs
  • Quickstart
    • Search by Topic
    • Search by Author
    • Look Up a Specific Paper
    • Browse a Category
    • Read a Paper’s Text
    • Query Syntax Reference

Tool Reference

  • Tool Reference
    • arxiv_search
      • Parameters
      • Query Syntax
      • Examples
      • JSON Response Schema
    • arxiv_get_paper
      • Parameters
      • Paper ID Formats
      • Examples
      • Well-Known Papers
      • JSON Response Schema
    • arxiv_list_by_category
      • Parameters
      • Category Codes
      • Examples
    • arxiv_fetch_paper_text
      • Parameters
      • Return Values
      • Examples
      • HTML Availability
    • arxiv_related_papers
      • Parameters
      • Return Values
      • Examples
      • Rate Limits
    • Common Parameters
      • response_format
      • sort_by / sort_order

Configuration

  • Configuration
    • Setting environment variables
    • Connection and output
    • Caching
    • Rate limiting and retries
    • Agent skill
    • Programmatic configuration
  • Caching and Rate Limiting
    • Two-tier cache
    • Rate limiting
    • Retries
    • Turning it off

API Reference

  • API Reference
    • server
      • main()
    • cli
      • setup()
      • main()
      • clients
      • targets
      • skill
    • models
      • SortBy
      • SortOrder
      • Relation
      • ResponseFormat
      • SearchInput
      • GetPaperInput
      • ListByCategoryInput
      • FetchPaperTextInput
      • RelatedPapersInput
    • config
    • cache
      • TwoTierCache
    • ratelimit
      • RateLimiter
      • resilient_get()
    • semantic_scholar
      • PaperNotIndexedError
      • fetch_related()
      • related_error_message()
      • format_related()
    • utils
arxiv-query-mcp
  • Tool Reference
  • arxiv_search
  • Edit on GitHub

arxiv_search

Search arXiv for academic papers using the full arXiv query syntax.

Returns a paginated list of matching papers with title, authors, abstract snippet, primary category, and direct links to the abstract, PDF, and HTML-rendered page.

Parameters

Parameter

Type

Default

Description

query

str

(required)

arXiv query string. Supports field prefixes (ti:, au:, abs:, cat:, all:) and boolean operators (AND, OR, ANDNOT). Max 500 characters.

max_results

int

10

Number of results to return. Range: 1 – 50.

start

int

0

Zero-based pagination offset.

sort_by

str

relevance

Sort criterion: relevance · lastUpdatedDate · submittedDate

sort_order

str

descending

Sort direction: descending · ascending

date_from

str

(none)

Only papers submitted on or after this date (YYYY-MM-DD, UTC).

date_to

str

(none)

Only papers submitted on or before this date (YYYY-MM-DD, UTC).

response_format

str

markdown

Output format: markdown · json

Query Syntax

Field prefixes narrow the search to a specific metadata field:

ti:attention            ← title contains "attention"
au:vaswani              ← author surname "vaswani"
abs:contrastive         ← abstract contains "contrastive"
cat:cs.LG               ← papers in the cs.LG category
all:vision transformer  ← any field

Combine with boolean operators:

ti:transformer AND cat:cs.LG
au:lecun AND (cat:cs.CV OR cat:cs.LG)
abs:diffusion ANDNOT abs:audio

Examples

Keyword search:

{
  "query": "ti:large language model AND cat:cs.LG",
  "max_results": 10,
  "sort_by": "submittedDate"
}

Author search:

{
  "query": "au:lecun AND cat:cs.CV",
  "sort_by": "submittedDate",
  "sort_order": "descending"
}

Paginating results:

{ "query": "abs:diffusion model", "max_results": 10, "start": 10 }

JSON Response Schema

When response_format is "json":

{
  "total": 1234,
  "count": 10,
  "start": 0,
  "has_more": true,
  "next_start": 10,
  "papers": [
    {
      "id": "2303.08774",
      "title": "GPT-4 Technical Report",
      "authors": ["OpenAI"],
      "abstract": "...",
      "published": "2023-03-15T00:00:00Z",
      "updated": "2024-03-04T00:00:00Z",
      "primary_category": "cs.CL",
      "categories": ["cs.CL", "cs.AI"],
      "abstract_url": "https://arxiv.org/abs/2303.08774",
      "pdf_url": "https://arxiv.org/pdf/2303.08774",
      "html_url": "https://arxiv.org/html/2303.08774",
      "comment": "",
      "journal_ref": "",
      "doi": ""
    }
  ]
}
Previous Next

© Copyright 2026, Lucas Waetzig.

Built with Sphinx using a theme provided by Read the Docs.