arxiv-mcpserver
Provides tools for searching and retrieving papers from arXiv.org: general keyword search, advanced field/Boolean queries, author and category searches, latest-paper listings, retrieval by arXiv ID with full metadata, direct PDF URL lookup, and browsing of the complete arXiv subject taxonomy.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
arxiv-mcpserver
An MCP (Model Context Protocol) server that provides tools for searching and retrieving academic papers from arXiv.org.
What it does
This server gives AI agents access to arXiv through 8 specialized tools:
arxiv_search - General keyword search
arxiv_search_advanced - Advanced queries with Boolean operators and field prefixes
arxiv_search_by_author - Find papers by specific author
arxiv_search_by_category - Browse papers by subject category
arxiv_get_paper - Retrieve papers by arXiv ID
arxiv_get_latest - Get newest papers in a category
arxiv_get_pdf_url - Get direct PDF download link
arxiv_list_categories - Browse the complete arXiv subject taxonomy
All tools support dual output formats (JSON for machines, Markdown for humans) and include proper input validation, rate limiting, and caching.
Related MCP server: ArXiv Paper MCP
Installation
# Clone the repository
git clone https://github.com/rivaldofwijaya/arxiv-mcpserver.git
cd arxiv-mcpserver
# Install the package
pip install .Or with a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e ".[dev]" # editable install with the dev toolsInstalling the package puts an arxiv-mcpserver command on your PATH. If you
would rather not install anything, pip install -r requirements.txt and run the
server with PYTHONPATH=src python -m arxiv_mcp.
Usage with AI Agents
Claude Desktop
Add this to your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"arxiv-mcpserver": {
"command": "arxiv-mcpserver"
}
}
}If you did not install the package, point at the module instead:
{
"mcpServers": {
"arxiv-mcpserver": {
"command": "python",
"args": ["-m", "arxiv_mcp"],
"env": {"PYTHONPATH": "/absolute/path/to/arxiv-mcp/src"}
}
}
}Claude Code / OpenCode / OpenClaw
Add the same configuration to your MCP settings:
{
"mcpServers": {
"arxiv-mcpserver": {
"command": "arxiv-mcpserver"
}
}
}If you did not install the package, point at the module instead:
{
"mcpServers": {
"arxiv-mcpserver": {
"command": "python",
"args": ["-m", "arxiv_mcp"],
"env": {"PYTHONPATH": "/absolute/path/to/arxiv-mcp/src"}
}
}
}Codex
Configure your Codex MCP settings to include the arXiv server:
{
"mcpServers": {
"arxiv-mcpserver": {
"command": "arxiv-mcpserver"
}
}
}Testing with MCP Inspector
For development and testing, you can use the MCP Inspector:
npx @modelcontextprotocol/inspector arxiv-mcpserverFeatures
Rate Limiting: Automatically enforces arXiv's 3-second request interval
Caching: 24-hour cache to reduce redundant API calls
Dual Formats: JSON (complete data) and Markdown (human-readable)
Validation: Pydantic models validate all inputs
Error Handling: Clear, actionable error messages
Example Usage
Once connected to your AI agent, you can:
Search for "transformer attention mechanism" papers
Find papers by Geoffrey Hinton
Get the latest papers in cs.LG
Retrieve paper 1706.03762 with full metadata
List all available arXiv categoriesConfiguration
Optional environment variables:
export ARXIV_RATE_LIMIT_DELAY=3.0 # Override rate limit (seconds)
export ARXIV_CACHE_EXPIRY=86400 # Override cache duration (seconds)Available Tools
1. arxiv_search
General search across all arXiv fields.
{"query": "neural networks", "max_results": 10}2. arxiv_search_advanced
Use Boolean operators and field prefixes.
{
"query": "au:\"Geoffrey Hinton\" AND cat:stat.ML",
"max_results": 20
}Supported prefixes: ti (title), au (author), abs (abstract), cat (category), all (allfields)
Boolean operators: AND, OR, ANDNOT
3. arxiv_search_by_author
Find papers by author with optional filters.
{
"author_name": "Geoffrey Hinton",
"category": "stat.ML",
"start_date": "202001010000",
"end_date": "202212312359",
"max_results": 15
}4. arxiv_search_by_category
Browse papers in a category.
{"category": "cs.AI", "max_results": 20}5. arxiv_get_paper
Retrieve papers by arXiv ID.
{"id_list": ["1706.03762", "1810.04805v1"]}6. arxiv_get_latest
Get newest papers in a category.
{"category": "cs.LG", "max_results": 10}7. arxiv_get_pdf_url
Get PDF download link.
{"paper_id": "1706.03762"}8. arxiv_list_categories
Get complete arXiv taxonomy.
{}Pagination
For many results, use pagination:
// First page
{"query": "machine learning", "start": 0, "max_results": 10}
// Second page
{"query": "machine learning", "start": 10, "max_results": 10}Date Filtering
Use format YYYYMMDDHHMM (24-hour time, GMT):
{
"query": "quantum computing",
"start_date": "202301010000",
"end_date": "202312312359"
}arXiv only supports bounded submittedDate ranges, so start_date and
end_date must be supplied together. Passing just one (or a start_date later
than end_date) is rejected with a validation error rather than silently
returning unfiltered results.
Response Formats
All tools support either json (complete data) or markdown (human-readable).
{"query": "transformer", "response_format": "json"}
{"query": "transformer", "response_format": "markdown"}Output Fields
Each paper includes: ID, title, summary/abstract, authors, published date, updated date, primary category, all categories, journal reference (if published), DOI (if available), and URLs for abstract and PDF pages.
Testing
Run the test suite (exits non-zero on failure, so it is safe to gate CI on):
python dev/tests/test_server_local.pyOr through pytest, which picks up src/ from pyproject.toml:
pytestLint and type-check the same way CI does:
ruff check src dev/tests dev/scripts
black --check src dev/tests dev/scripts
mypy srcThese currently report pre-existing formatting and typing issues, so CI runs them as advisory steps rather than gates.
Run the evaluation harness against a model via OpenRouter:
pip install -r dev/scripts/requirements.txt
# stdio transport
python dev/scripts/evaluation.py dev/scripts/example_evaluation.xml \
-m anthropic/claude-sonnet-4.5 -c arxiv-mcpserver
# sse / http transports
python dev/scripts/evaluation.py dev/scripts/example_evaluation.xml \
-m anthropic/claude-sonnet-4.5 -t http -u https://your-server/mcp -H "Authorization=Bearer TOKEN"Each task is bounded by --max-tool-rounds (default 10) and --task-timeout
seconds (default 300); exceeding either records the task as failed instead of
looping indefinitely.
Rate Limiting & Caching
Rate Limiting: Enforces arXiv's 3-second delay between requests
Caching: 24-hour cache reduces redundant API calls
Freshness:
arxiv_get_latestaccepts cached results only if under 5 minutes old, so it never replays a day-old view of a categoryCompliance: Uses HTTPS endpoint and respects arXiv Terms of Use
Project Structure
arxiv-mcp/
├── src/
│ └── arxiv_mcp/
│ ├── __init__.py # Public API re-exports
│ ├── __main__.py # `python -m arxiv_mcp`
│ └── server.py # Main MCP server
├── dev/ # Everything that is not shipped
│ ├── tests/
│ │ └── test_server_local.py # Test suite
│ ├── scripts/
│ │ ├── evaluation.py # Evaluation harness
│ │ ├── connections.py # MCP utilities
│ │ ├── requirements.txt # Harness dependencies
│ │ └── example_evaluation.xml # Example tests
│ ├── docs/ # Long-form documentation
│ ├── examples/ # Usage examples
│ ├── tools/ # Developer tooling
│ └── reports/ # Generated reports (evaluation output)
├── .github/ # CI, security, issue and PR templates
├── pyproject.toml # Project metadata and tool config
├── requirements.txt # Runtime dependencies
├── SECURITY.md # Security policy
├── LICENSE # MIT License
└── README.md # This fileDependencies
Core: mcp[cli] (2.x), httpx, pydantic, feedparser
For evaluation: openai, mcp (see dev/scripts/requirements.txt)
Built on the mcp 2.x MCPServer API (mcp.server.mcpserver). mcp 1.x is not
supported, since it predates that module.
Known Issues
Author name matching: Results may vary depending on name format. Try variations:
Full name: "Geoffrey Hinton"
With initials: "G. Hinton"
Last name only: "Hinton"
Contributing
Issue and pull request templates live in .github/. CI runs ruff, black, mypy,
a build check, and the test suite on Python 3.9-3.13.
Fork the repository
Create a feature branch (
git checkout -b feature/name)Commit changes (
git commit -m 'Add feature')Push to branch (
git push origin feature/name)Open a Pull Request
License
MIT License - see LICENSE for details. To report a security issue, see SECURITY.md.
When using this server with arXiv data, also comply with:
arXiv API Terms of Use
CC BY-SA 4.0 License (for arXiv content)
Resources
Created by rivaldofwijaya
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Queries ArXiv for AI/CS/math papers and returns structured abstracts, authors, PDF links, and BibT
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
arXiv and OpenAlex/Crossref paper search (an open Google Scholar alternative) as agent tools.
Queries ArXiv for AI/CS/math papers and returns structured abstracts, authors, PDF links, and Bib.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables interaction with arXiv.org to search scholarly articles, retrieve metadata, download PDFs, and load article content directly into LLM context for analysis.53MIT
- AlicenseBqualityDmaintenanceEnables searching, retrieving, and parsing academic papers from arXiv, including keyword search, PDF downloads, content extraction from HTML/PDF formats, and accessing the latest AI research papers.4MIT
- 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.63 npmApache 2.0