arxiv-mcp
Provides tools for searching and retrieving academic papers from arXiv, including paper search with flexible queries, detailed metadata retrieval, advanced query construction, and category browsing.
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-mcp search for recent papers on large language models"
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.
Access the world's largest repository of academic papers through the Model Context Protocol
A streamlined Model Context Protocol server that connects AI assistants to arXiv's vast collection of academic papers. Search, analyze, and download research papers directly from your AI workflow.
๐ Quick Start
Prerequisites
Python 3.12+
uv package manager
Installation
Option 1: Docker (Recommended)
# Pull and run the Docker image
docker run --rm -it ghcr.io/tejas242/arxiv-mcp:latest
# Or using docker-compose
git clone https://github.com/tejas242/arxiv-mcp.git
cd arxiv-mcp
docker compose upOption 2: Local Development
# Clone and setup
git clone https://github.com/tejas242/arxiv-mcp.git
cd arxiv-mcp
uv sync
# Test the server
uv run main.pyRelated MCP server: arXiv Research Assistant MCP Server
๐ ๏ธ Available Functions
Function | Status | Description | Parameters |
| โ Working | Search arXiv papers with flexible query syntax |
|
| โ Working | Retrieve complete metadata for any arXiv paper |
|
| โ Working | Construct complex search queries with multiple fields |
|
| โ Working | List all available arXiv subject categories | None |
| โ ๏ธ Limited | Find papers by specific author (use search_papers instead) |
|
| โ ๏ธ Limited | Browse papers by category (use search_papers instead) |
|
| ๐ง Needs Fix | Download paper PDFs (redirect handling issue) |
|
Function Details
โ Fully Working Functions
search_papers - The primary search function
Supports full arXiv query syntax
Handles keywords, authors, categories, titles
Configurable sorting and pagination
Returns formatted results with abstracts and links
get_paper_details - Detailed paper information
Complete metadata extraction
Author information with affiliations
Category classifications and links
Publication dates and updates
build_advanced_query - Query construction helper
Combines multiple search criteria
Supports title, author, category, and abstract searches
Returns properly formatted query strings
get_arxiv_categories - Category reference
Complete list of arXiv subject categories
Descriptions for each category
Helpful for constructing targeted searches
โ ๏ธ Limited Functions (Workarounds Available)
search_by_author - Use search_papers('au:"Author Name"') instead
search_by_category - Use search_papers('cat:category_code') instead
๐ง Functions Needing Fixes
download_paper_pdf - HTTP redirect handling needs improvement
Currently fails due to HTTPS/HTTP redirect issues
PDFs can be accessed directly via the links provided in search results
โ๏ธ Configuration
Claude Desktop Setup
For Local Installation:
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"arxiv-mcp": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/arxiv-mcp",
"run",
"main.py"
]
}
}
}For Docker Installation:
{
"mcpServers": {
"arxiv-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"ghcr.io/tejas242/arxiv-mcp:latest"
]
}
}
}VS Code MCP Extension
{
"mcp": {
"servers": {
"arxiv-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/arxiv-mcp", "run", "main.py"]
}
}
}
}๐ก Usage Examples
Core Search Operations
# Search for papers about transformers
search_papers("transformer architecture")
# Advanced query with specific fields
search_papers('ti:"attention mechanism" AND cat:cs.LG')
# Author-specific search (recommended approach)
search_papers('au:"Geoffrey Hinton"')
# Category browsing (recommended approach)
search_papers('cat:cs.AI')Research Workflow
# 1. Find the famous "Attention" paper
search_papers('ti:"Attention Is All You Need"')
get_paper_details("1706.03762")
# 2. Explore related work
search_papers("transformer neural networks")
# 3. Build complex queries
query = build_advanced_query(
title_keywords="few-shot learning",
author_name="Tom Brown",
category="cs.LG"
)
search_papers(query)๐ arXiv Categories Reference
Code | Description | Example Topics |
| Artificial Intelligence | Machine learning, neural networks, AI theory |
| Machine Learning | Deep learning, reinforcement learning, statistical learning |
| Computer Vision | Image processing, object detection, visual recognition |
| Computation and Language | NLP, language models, text processing |
| Cryptography and Security | Security protocols, encryption, privacy |
| Machine Learning (Statistics) | Statistical learning theory, Bayesian methods |
| General Physics | Theoretical physics, quantum mechanics |
| Numerical Analysis | Computational mathematics, algorithms |
| Quantitative Biology | Neuroscience, computational biology |
Use get_arxiv_categories() for the complete list of available categories.
๐งช Testing Results
Based on comprehensive testing of all functions:
โ Reliable Functions
Paper search with keywords, authors, categories: 100% success rate
Paper detail retrieval: Complete metadata extraction working
Query construction: All syntax combinations supported
Category listing: All arXiv categories accessible
โ ๏ธ Alternative Approaches Recommended
Author search: Use
search_papers('au:"Author Name"')instead ofsearch_by_author()Category browsing: Use
search_papers('cat:category')instead ofsearch_by_category()
๐ง Known Issues
PDF downloads: Redirect handling needs improvement (PDFs accessible via direct links)
๐ง Development
Project Structure
arxiv-mcp/
โโโ src/arxiv_mcp/ # Main package
โ โโโ server.py # MCP server implementation
โ โโโ arxiv_client.py # arXiv API wrapper
โ โโโ models.py # Pydantic data models
โ โโโ utils.py # Helper functions
โโโ tests/ # Test suite
โโโ main.py # Entry point
โโโ pyproject.toml # Project configRunning Tests
uv run pytest tests/ -vDebug Mode
# Enable detailed logging
PYTHONPATH=src uv run python -c "
import logging
logging.basicConfig(level=logging.DEBUG)
from arxiv_mcp.server import main
main()
"โ ๏ธ Troubleshooting
Server Not Detected
โ Verify absolute paths in MCP config
โ Test server runs:
uv run main.pyโ Restart Claude Desktop after config changes
Search Issues
โ Use arXiv query syntax (see examples above)
โ Check category names:
get_arxiv_categories()โ Try broader search terms
โ Use
search_papers()instead of specific search functions
PDF Download Failures
โ Access PDFs via links in search results
โ Check internet connection
โ Verify arXiv ID format (e.g., "1706.03762")
๐ Acknowledgments
Made with โก by screenager
Available Tools
7 toolsbuild_advanced_queryA
Build an advanced search query using multiple fields.
Args:
title_keywords: Keywords to search in paper titles
author_name: Author name to search for
abstract_keywords: Keywords to search in abstracts
category: arXiv category to filter by
all_fields: Keywords to search across all fields
Returns:
The constructed query string that can be used with search_papers
Inputs: title_keywords, author_name, abstract_keywords, category, +1 more.
download_paper_pdfA
Download the PDF of an arXiv paper.
Args:
arxiv_id: The arXiv identifier
save_path: Optional path to save the PDF (if not provided, saves to temp directory)
Returns:
Path to the downloaded PDF file
Inputs: arxiv_id (required), save_path.
get_arxiv_categoriesA
Get a list of available arXiv subject categories.
Returns:
List of arXiv categories with descriptions
Inputs: no named parameters.
get_paper_detailsA
Get detailed information about a specific arXiv paper.
Args:
arxiv_id: The arXiv identifier (e.g., "2301.00001" or "cs.AI/0601001")
Returns:
Detailed paper information including abstract, authors, categories, etc.
Inputs: arxiv_id (required).
search_by_authorA
Search for papers by a specific author.
Args:
author_name: Name of the author to search for
max_results: Maximum number of results to return (1-50)
Returns:
List of papers by the specified author
Inputs: author_name (required), max_results.
search_by_categoryA
Search for recent papers in a specific arXiv category.
Args:
category: arXiv category (e.g., 'cs.AI', 'physics.gen-ph', 'math.AG')
max_results: Maximum number of results to return (1-50)
Returns:
List of recent papers in the specified category
Inputs: category (required), max_results.
search_papersA
Search for academic papers on arXiv.
Args:
query: Search query. Can use arXiv query syntax (e.g., "ti:machine learning", "au:Smith", "cat:cs.AI")
max_results: Maximum number of results to return (1-100)
sort_by: Sort by 'relevance', 'lastUpdatedDate', or 'submittedDate'
sort_order: Sort order 'ascending' or 'descending'
Returns:
Formatted list of papers matching the search criteria
Inputs: query (required), max_results, sort_by, sort_order.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 7 tools
Most tools have distinct purposes, but search_by_author and search_by_category are subsets of search_papers, which could cause ambiguity. However, they serve as convenient shortcuts and are clearly named.
Naming conventions vary: some use 'search_by_*' while others use 'get_*' or 'download_*'. This mix of verb_noun and verb_preposition_noun patterns is mostly readable but lacks full consistency.
Seven tools is appropriate for an arXiv client, covering search, details, download, and category browsing without being excessive or insufficient.
The tool set covers core arXiv operations: searching, retrieving details, downloading papers, and listing categories. Minor gaps exist, like merging multiple search results, but agents can work around them using the general search tool.
Related MCP Connectors
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Academic research MCP server for paper search, citation checks, graphs, and deep research.
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- AlicenseAqualityAmaintenanceThe ArXiv MCP Server bridges the gap between AI models and academic research by providing a sophisticated interface to arXiv's extensive research repository. This server enables AI assistants to perform precise paper searches and access full paper content, enhancing their ability to engage with scientific literature.1910,735 PyPI3,276Apache 2.0
- AlicenseBqualityDmaintenanceAn MCP server that allows Claude AI to search, explore, and compare arXiv papers efficiently through a custom-built local server.419MIT
- AlicenseNot gradedqualityDmaintenanceThis MCP server enables users to search for scientific papers on arXiv and retrieve detailed metadata for specific papers. It provides tools to perform search queries and fetch in-depth information using paper IDs.30 PyPI3Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets LLMs search, verify, and read papers from arXiv, preventing hallucinated academic references.MIT