Skip to main content
Glama
academic-paper-mcp

academic-paper-mcp

by rico192

academic-paper-mcp (Part of DPM Research)

Repository Part of DPM Research

An open, high-performance Model Context Protocol (MCP) server that empowers AI Agents (Antigravity, Claude Code, Claude Desktop, Cursor, Windsurf, Zed, etc.) to search, fetch, rank, cite, and download academic papers across major scholarly databases:

  • 🟒 arXiv (Free, no API key required)

  • 🟒 OpenAlex (Free, 250M+ scholarly works, no API key required)

  • 🟒 Crossref (Free, official DOI metadata repository, no API key required)

  • 🟑 Semantic Scholar (AI2 graph search, free API key optional/recommended)

  • πŸ”΅ Scopus (Elsevier) (Curated peer-reviewed index, requires API Key)


✨ Features

  • πŸ” Multi-Database Search: Queries arXiv, OpenAlex, Crossref, Semantic Scholar, and Scopus (Elsevier) concurrently in real time.

  • 🧹 Automatic Deduplication: Merges duplicate records by DOI, arXiv ID, or title similarity so your AI context isn't cluttered.

  • 🎯 Relevance & Recency Ranking: Scores papers based on query term overlap (weighted on title and abstract), citation count (logarithmic), recency, and open access availability.

  • πŸ“ Auto BibTeX Generation: Instantly produces valid, formatted BibTeX citations ready for LaTeX or Word documents.

  • πŸ“₯ Direct PDF Downloader: Downloads open-access paper PDFs directly to your workspace for immediate agent reading and analysis.

  • ⚑ Zero Setup Required for Open Databases: Searches across arXiv, OpenAlex, and Crossref work out-of-the-box immediately without needing any API keys; simply add SCOPUS_API_KEY and SEMANTIC_SCHOLAR_API_KEY to unlock Scopus and Semantic Scholar indexing.


Related MCP server: Research MCP

πŸ”‘ Database Sources & API Key Requirements

Source

Default Status Without Keys

API Key Required?

Environment Variable

Function & Benefits

🟒 arXiv

βœ… Active

❌ No

None needed

Free open-access archive for CS, Math, and Physics.

🟒 OpenAlex

βœ… Active

❌ No

Optional: OPENALEX_EMAIL

250M+ scholarly records worldwide.

🟒 Crossref

βœ… Active

❌ No

Optional: CROSSREF_EMAIL

Official global DOI registry and metadata.

🟑 Semantic Scholar

⏸️ Skipped if no key

πŸ”‘ YES (Required)

SEMANTIC_SCHOLAR_API_KEY

Unlocks AI-powered citation graphs, TLDR summaries, and full abstracts (prevents 429 rate limits).

πŸ”΅ Scopus (Elsevier)

⏸️ Skipped if no key

πŸ”‘ YES (Required)

SCOPUS_API_KEY (+ opt SCOPUS_INST_TOKEN)

Unlocks premier curated peer-reviewed Q1-Q4 index.

⚠️ CRITICAL FOR AI AGENTS & USERS:

  • Both Scopus AND Semantic Scholar are SKIPPED by default unless their respective API keys are provided in the MCP env configuration!

  • To get the full power of all 5 academic databases, always include both SCOPUS_API_KEY and SEMANTIC_SCHOLAR_API_KEY in your MCP settings.


πŸ› οΈ Tools Exposed to AI Agents

Tool

Description

search_papers

Concurrent multi-database search across all databases with deduplication, ranking, year filtering, and BibTeX generation. Flexible limits (e.g. 10, 30, 50+ papers).

get_paper_details

Retrieve deep metadata, complete abstract, links, and BibTeX for a specific paper by DOI or arXiv ID.

get_bibtex

Generate formatted BibTeX citation for a DOI, arXiv ID, or title.

download_paper_pdf

Download academic paper PDF by DOI, arXiv ID, or URL. Automatically resolves legal open-access PDFs across Unpaywall, OpenAlex, and Europe PMC. If strictly paywalled, provides institutional EZproxy UNS access link.

list_sources

Inspect available academic search engines and their configuration status.


πŸš€ Quick Start & Installation

You can run this MCP server via uvx directly from Git, or locally with python / uv.

1. Claude Code CLI

Add the MCP server directly using claude mcp add:

# Option A: Run directly from GitHub repository via uvx (Recommended)
claude mcp add academic-paper-mcp -s user \
  -e SCOPUS_API_KEY=your_scopus_api_key \
  -e SEMANTIC_SCHOLAR_API_KEY=your_s2_api_key \
  -- uvx --from git+https://github.com/rico192/academic-paper-mcp academic-paper-mcp

# Option B: Run from local directory using uv
claude mcp add academic-paper-mcp -s user -- uv --directory /path/to/academic-paper-mcp run academic-paper-mcp

# Option C: Run with local Python environment
claude mcp add academic-paper-mcp -s user -- python -m academic_paper_mcp.server

2. Google Antigravity & Gemini CLI

In your workspace or global Antigravity settings (mcp_servers.json or Antigravity Settings UI):

{
  "mcpServers": {
    "academic-paper-mcp": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/rico192/academic-paper-mcp", "academic-paper-mcp"],
      "env": {
        "SCOPUS_API_KEY": "",
        "SEMANTIC_SCHOLAR_API_KEY": ""
      }
    }
  }
}

Or for a local checkout:

{
  "mcpServers": {
    "academic-paper-mcp": {
      "command": "python",
      "args": ["-m", "academic_paper_mcp.server"],
      "cwd": "C:/path/to/academic-paper-mcp",
      "env": {
        "PYTHONPATH": "src"
      }
    }
  }
}

3. Claude Desktop

Edit your Claude Desktop configuration file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "academic-paper-mcp": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/rico192/academic-paper-mcp", "academic-paper-mcp"],
      "env": {
        "SCOPUS_API_KEY": "",
        "SEMANTIC_SCHOLAR_API_KEY": ""
      }
    }
  }
}

4. Cursor / Windsurf / Zed

In your MCP configuration file (e.g. .cursor/mcp.json or Zed settings):

{
  "mcpServers": {
    "academic-paper-mcp": {
      "command": "uv",
      "args": ["--directory", "/path/to/academic-paper-mcp", "run", "academic-paper-mcp"],
      "env": {
        "SCOPUS_API_KEY": "",
        "SEMANTIC_SCHOLAR_API_KEY": ""
      }
    }
  }
}

βš™οΈ Environment Variables Reference

Create a .env file in the project folder or configure environment variables in your MCP client:

# Elsevier Scopus API Key (Get free key at: https://dev.elsevier.com)
SCOPUS_API_KEY=
# Optional: Elsevier Institutional Token for off-campus/remote access
SCOPUS_INST_TOKEN=

# Semantic Scholar API Key (Free key at: https://www.semanticscholar.org/product/api)
SEMANTIC_SCHOLAR_API_KEY=

# Polite pool identification for OpenAlex & Crossref (Recommended for faster response times)
OPENALEX_EMAIL=your-email@example.com
CROSSREF_EMAIL=your-email@example.com

Note: If no API keys are provided, arXiv, OpenAlex, and Crossref will continue to work normally with 100% free public access. Provide SCOPUS_API_KEY and SEMANTIC_SCHOLAR_API_KEY to activate Scopus and Semantic Scholar.


πŸ’» Local Development & Testing

# Clone the repository
git clone https://github.com/rico192/academic-paper-mcp.git
cd academic-paper-mcp

# Install dependencies with uv or pip
pip install -e .

# Run test query
python -m academic_paper_mcp.server

πŸ“„ License

MIT License. Feel free to use, modify, and distribute.

Available Tools

5 tools
download_paper_pdfA

Download an academic paper PDF to a local directory for reading/inspection.

Accepts a DOI (e.g. '10.1371/journal.pone.0000001'), arXiv ID (e.g. '1706.03762'), or direct PDF URL. Uses Unpaywall, OpenAlex, and Europe PMC to resolve open-access PDFs for paywalled DOIs. If the paper is strictly paywalled, returns the institutional EZproxy UNS URL for authenticated campus access.

Args: identifier_or_url: Paper DOI (e.g. '10.1016/j...'), arXiv ID (e.g. '1706.03762'), or direct PDF URL. save_directory: Local directory where the PDF should be saved (default: './downloads'). custom_filename: Optional custom file name (e.g. 'paper_attention.pdf').

Inputs: identifier_or_url (required), save_directory, custom_filename. Returns: result

get_bibtexB

Generate a clean and valid BibTeX citation entry for a paper by DOI, arXiv ID, or title.

Args: identifier: DOI (e.g. '10.1038/nature14539'), arXiv ID (e.g. '1706.03762'), or title.

Inputs: identifier (required). Returns: result

get_paper_detailsA

Retrieve detailed metadata, abstract, open-access PDF link, and BibTeX citation for a specific paper.

Args: identifier: DOI (e.g. '10.1145/3318464.3389700'), arXiv ID (e.g. '1706.03762' or 'arxiv:1706.03762'), or paper title.

Inputs: identifier (required). Returns: result

list_sourcesA

List all supported academic sources and their configuration status (arXiv, OpenAlex, Crossref, Semantic Scholar, Scopus). Shows which sources are active and which need an API key.

Inputs: no named parameters. Returns: result

search_papersA

Search academic papers across multiple databases (arXiv, OpenAlex, Crossref, Semantic Scholar, Scopus).

Returns deduplicated, relevance-ranked papers with verified metadata (title, authors, year, venue, DOI, abstract, citations, open-access link, and BibTeX citation).

API Key Notes:

  • arXiv, OpenAlex, Crossref: 100% active out-of-the-box (no API key needed).

  • Scopus: requires 'SCOPUS_API_KEY' in env. If not configured, Scopus is skipped.

  • Semantic Scholar: requires 'SEMANTIC_SCHOLAR_API_KEY' in env. If not configured, Semantic Scholar is skipped.

Args: query: Academic topic or keywords (e.g. 'deep reinforcement learning robotics', 'electro-hydrostatic actuator PID'). sources: Optional list of sources to search. Options: ['arxiv', 'openalex', 'crossref', 'semantic_scholar', 'scopus']. Default: all configured sources. limit_per_source: Number of papers to fetch per database (default 10, no artificial limit). year_min: Filter papers published in or after this year (e.g. 2021). year_max: Filter papers published in or before this year.

Inputs: query (required), sources, year_max, year_min, +1 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation4/5

    The five tools mostly target distinct actions: listing sources, searching, fetching details, generating BibTeX, and downloading PDFs. However, get_paper_details already returns abstract, PDF link, and BibTeX, so its boundary with get_bibtex and download_paper_pdf overlaps somewhat, though descriptions clarify intent.

    Naming Consistency5/5

    All names follow a consistent snake_case verb_noun pattern (list_sources, search_papers, get_paper_details, get_bibtex, download_paper_pdf). No mixed conventions or vague verbs.

    Tool Count5/5

    Five tools is well-scoped for a research/citation workflow, covering discovery, metadata retrieval, citation, and PDF access. Each tool earns its place with no redundancy at the count level.

    Completeness4/5

    The surface covers the core lifecycle: source discovery, search, detail retrieval, citation generation, and PDF download. Minor gaps exist around local library/collection management or batch citation export, but core research workflows are fully supported.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to search across multiple academic databases (PubMed, arXiv, bioRxiv, medRxiv, Semantic Scholar) through a unified interface. Supports advanced filtering, metadata retrieval, PDF downloads, and comprehensive research workflows with citation analysis.
      5
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to search, analyze, and summarize academic research papers in real-time from arXiv, Semantic Scholar, and PubMed. Provides automatic deduplication, citation analysis, and BibTeX generation across multiple research databases.
      20 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables LLM agents to search academic literature across multiple sources (IEEE, arXiv, ACM, Semantic Scholar, CORE, Scite, Consensus) and index/search local PDFs.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to search and retrieve academic papers from arXiv and PubMed with citation-grade extraction, providing clean citations and summaries.
      -