arXiv Search MCP Server
An MCP (Model Context Protocol) server that provides search functionality for arXiv.org papers using the official arXiv API.
Features
- Search by terms: Search papers by keywords in titles, abstracts, and content
- Subject filtering: Filter results by arXiv subject categories (physics, cs, math, etc.)
- Date range filtering: Filter papers by submission date range
- Configurable results: Control the number of results returned (max 2000)
- PDF URLs included: Direct links to paper PDFs for easy access
- Comprehensive metadata: Author names, abstracts, categories, publication dates, and more
Installation
From PyPI (Recommended)
pip install arxiv-search-mcp-server
From Source
- Clone the repository:
git clone https://github.com/gavinHuang/arxiv-search-mcp.git
cd arxiv-search-mcp
- Install the package:
pip install -e .
Usage
Running the Server
As a CLI command (after pip install)
arxiv-search-mcp
As a Python module
python -m arxiv_search_mcp.server
From source
python src/arxiv_search_mcp/server.py
Available Tools
1. search_arxiv_papers
Search for papers on arXiv with various filtering options.
Parameters:
terms(required): Search terms to look for in paper titles, abstracts, and contentsubject(optional): Subject category to filter by (see available categories below)start_date(optional): Start date for filtering papers in YYYY-MM-DD formatend_date(optional): End date for filtering papers in YYYY-MM-DD formatmax_results(optional): Maximum number of results to return (default: 10, max: 2000)
Example:
search_arxiv_papers(
terms="quantum computing",
subject="quant-ph",
start_date="2023-01-01",
end_date="2023-12-31",
max_results=20
)
2. get_subject_categories
Get a list of available subject categories for filtering.
Returns: Dictionary of category codes and their descriptions.
Available Subject Categories
physics- Physics (general)astro-ph- Astrophysicscond-mat- Condensed Matter Physicsgr-qc- General Relativity and Quantum Cosmologyhep-ex- High Energy Physics - Experimenthep-lat- High Energy Physics - Latticehep-ph- High Energy Physics - Phenomenologyhep-th- High Energy Physics - Theorymath-ph- Mathematical Physicsnlin- Nonlinear Sciencesnucl-ex- Nuclear Experimentnucl-th- Nuclear Theoryquant-ph- Quantum Physicsmath- Mathematicscs- Computer Scienceecon- Economicseess- Electrical Engineering and Systems Sciencestat- Statisticsq-bio- Quantitative Biologyq-fin- Quantitative Finance
Response Format
Search results include the following information for each paper:
{
"arxiv_id": "2301.12345",
"title": "Paper Title",
"authors": ["Author 1", "Author 2"],
"abstract": "Paper abstract...",
"categories": ["cs.LG", "cs.AI"],
"published_date": "2023-01-15",
"pdf_url": "http://arxiv.org/pdf/2301.12345v1",
"arxiv_url": "http://arxiv.org/abs/2301.12345",
"comment": "Author comments",
"journal_ref": "Journal reference if available",
"doi": "DOI if available"
}
API Limits
- Maximum 2000 results per request (arXiv API limitation)
- Rate limiting: Please be respectful with API calls (arXiv recommends 3-second delays between requests for bulk operations)
- Results are returned by relevance by default
Error Handling
The server handles various error conditions:
- Invalid search parameters
- Network connectivity issues
- arXiv API errors
- Malformed responses
Errors are returned in a structured format with descriptive messages.
Dependencies
fastmcp- MCP server frameworkrequests- HTTP client for arXiv API callsfeedparser- Atom/RSS feed parsingurllib3- URL handling utilities
License
This project follows the arXiv API Terms of Use. Please respect arXiv's resources and use the API responsibly.
Metadata
Release files for arxiv-search-mcp-server 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arxiv_search_mcp_server-0.1.2.tar.gz | 15.4 kB | Without provenance | Details for arxiv_search_mcp_server-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arxiv_search_mcp_server-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for arxiv_search_mcp_server-0.1.2-py3-none-any.whl |
Total release size: 24.5 kB
Release files / arxiv_search_mcp_server-0.1.2.tar.gz
| Download URL | arxiv_search_mcp_server-0.1.2.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d01febff284214041a178d9fd6e600a4162dca46b169e8d94ff21ffac185b2b5
|
|
BLAKE2b-256 checksum How to use checksums |
c06f8b027fedecca600991177923636ef760ac51ccf3af4c5df9462cc7d35357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.9
|
Release files / arxiv_search_mcp_server-0.1.2-py3-none-any.whl
| Download URL | arxiv_search_mcp_server-0.1.2-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3e6230fe1a629de2af5e9d4dfde7efa2574d4349fc2b75f4564e30fb592f0cd
|
|
BLAKE2b-256 checksum How to use checksums |
fb65c0b124ece52d5160e96a08ab216ce7252a5764d14d945548a51c9625c6d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.9
|
Security for arxiv-search-mcp-server 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.