mcpField
πŸ“š
πŸ“š arXiv MCP Server

πŸ“š arXiv MCP Server

Local
github.com/Tejas242Data & Analytics1Updated 54w ago

About πŸ“š arXiv MCP Server

πŸ“š arXiv MCP Server brings arXiv paper search into AI assistant workflows for people exploring academic research. It supports advanced query building and metadata lookup; PDF downloads currently have a redirect issue.

Key features

  1. 01Search papers by keywords and fields
  2. 02Retrieve complete paper metadata
  3. 03Build multi-field advanced queries
  4. 04List arXiv subject categories

Use cases

  1. 01Find papers on a topic or by author
  2. 02Filter research by category
  3. 03Review authors, abstracts, and publication details

MCP support

This MCP server provides clients with tools for paper search, detail lookup, advanced query construction, and category listing. Search results include abstracts and links.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

arXiv MCP Server

Python MCP Compatible arXiv API License Code Quality CI/CD Docker

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 up
Option 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.py

πŸ› οΈ Available Functions

FunctionStatusDescriptionParameters
search_papersβœ… WorkingSearch arXiv papers with flexible query syntaxquery, max_results, sort_by, sort_order
get_paper_detailsβœ… WorkingRetrieve complete metadata for any arXiv paperarxiv_id
build_advanced_queryβœ… WorkingConstruct complex search queries with multiple fieldstitle_keywords, author_name, category, abstract_keywords
get_arxiv_categoriesβœ… WorkingList all available arXiv subject categoriesNone
search_by_author⚠️ LimitedFind papers by specific author (use search_papers instead)author_name, max_results
search_by_category⚠️ LimitedBrowse papers by category (use search_papers instead)category, max_results
download_paper_pdfπŸ”§ Needs FixDownload paper PDFs (redirect handling issue)arxiv_id, save_path
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
Configuration Instructions

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
VS Code Configuration
{
  "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

Popular Categories
CodeDescriptionExample Topics
cs.AIArtificial IntelligenceMachine learning, neural networks, AI theory
cs.LGMachine LearningDeep learning, reinforcement learning, statistical learning
cs.CVComputer VisionImage processing, object detection, visual recognition
cs.CLComputation and LanguageNLP, language models, text processing
cs.CRCryptography and SecuritySecurity protocols, encryption, privacy
stat.MLMachine Learning (Statistics)Statistical learning theory, Bayesian methods
physics.gen-phGeneral PhysicsTheoretical physics, quantum mechanics
math.NANumerical AnalysisComputational mathematics, algorithms
q-bio.NCQuantitative BiologyNeuroscience, computational biology

Use get_arxiv_categories() for the complete list of available categories.

πŸ§ͺ Testing Results

Based on comprehensive testing of all functions:

Working Functions Limited Functions Needs Fix

βœ… 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 of search_by_author()
  • Category browsing: Use search_papers('cat:category') instead of search_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 config
Running Tests
uv run pytest tests/ -v
Debug 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

Common Issues & Solutions
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


GitHub Issues Contribute



Made with ⚑ by screenager

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.