Quickstart
Once the server is configured in your MCP client you can start querying arXiv immediately. Below are example prompts and the tool calls they map to.
Search by Topic
Ask your assistant:
“Find the most relevant papers on diffusion models for image generation.”
The assistant calls arxiv_search with:
{
"query": "abs:diffusion model AND abs:image generation",
"max_results": 10,
"sort_by": "relevance"
}
Look Up a Specific Paper
“Get the full details for the Attention Is All You Need paper.”
The assistant calls arxiv_get_paper with:
{
"paper_id": "1706.03762"
}
Browse a Category
“Show me the latest preprints in machine learning from the past few days.”
The assistant calls arxiv_list_by_category with:
{
"category": "cs.LG",
"max_results": 20,
"sort_by": "submittedDate"
}
Common category codes:
Code |
Subject |
Code |
Subject |
|---|---|---|---|
|
Machine Learning |
|
Artificial Intelligence |
|
Computation & Language (NLP) |
|
Computer Vision |
|
Cryptography & Security |
|
Robotics |
|
Statistics — Machine Learning |
|
Combinatorics |
|
Quantum Physics |
|
Neurons & Cognition |
Read a Paper’s Text
“Read the introduction of the GPT-4 technical report.”
{
"paper_id": "2303.08774"
}
The tool fetches the HTML-rendered version of the paper (or, when there is
none, extracts the text from the PDF) and
returns up to 10,000 characters of extracted text per call; pass the reported
offset to read the next page.
Query Syntax Reference
The arXiv query language supports field prefixes and boolean operators:
Prefix |
Searches |
Example |
|---|---|---|
|
Title |
|
|
Author |
|
|
Abstract |
|
|
Category |
|
|
All fields |
|
Combine terms with AND, OR, and ANDNOT:
ti:large language model AND cat:cs.LG
au:lecun AND (cat:cs.CV OR cat:cs.LG)
abs:diffusion ANDNOT abs:audio