Labsco
openags logo

Paper Search MCP

β˜… 2,000

from openags

Search and download academic papers from sources like arXiv, PubMed, and Google Scholar.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredNeeds API keys

Paper Search MCP

A Model Context Protocol (MCP) server for searching and downloading academic papers from multiple sources. The project follows a free-first strategy: prioritize open and public data sources, support optional API keys when they improve stability or coverage, and keep source-specific connectors extensible for advanced users.

Table of Contents

  • Overview

  • Project Principles

  • Features

  • Source Strategy

  • Sci-Hub Notice

  • Installation

  • Claude Code (Skill)

  • Method 1 β€” Smithery

  • Method 2 β€” uvx

  • Method 3 β€” uv

  • Method 4 β€” pip

  • Method 5 β€” npx

  • Method 6 β€” Docker

  • Method 7 β€” Clone & run from source

  • Environment Variables

  • Contributing

  • Demo

  • Star History

  • License

  • TODO

Overview

paper-search-mcp is a Python-based tool for searching and downloading academic papers from various platforms. It provides tools for searching papers, downloading PDFs, and extracting text, making it ideal for researchers and AI-driven workflows. It can be used as an MCP server (for Claude Desktop and other MCP clients) or as a Claude Code skill with a CLI interface.

Project Principles

  • Free-First: Public and open sources are the default roadmap. Paid or restricted sources are not the core direction of this project.

  • Optional API Keys: API keys are supported only when they improve stability, rate limits, or metadata quality. The MCP should still be usable without them whenever possible.

  • LLM-Friendly Retrieval: Search results should be standardized, deduplicated, and as complete as possible for downstream LLM workflows.

  • Source Transparency: Different sources have different strengths. The MCP should make those tradeoffs explicit instead of pretending every source supports full-text retrieval.

Features

  • Two-Layer Architecture:

  • Layer 1 (Unified Tooling): High-level search_papers for multi-source concurrent search & deduplication, and download_with_fallback relying on publisher open access links with sequential fallbacks.

  • Layer 2 (Platform Connectors): Modular connectors for specific academic platforms (arXiv, PubMed, bioRxiv, Semantic Scholar, etc.) equipped with intelligent DOI extraction via regex text analysis or API fields.

  • Multi-Source Support: Search and download papers from arXiv, PubMed, bioRxiv, medRxiv, Google Scholar, IACR ePrint Archive, Semantic Scholar, Crossref, OpenAlex, PubMed Central (PMC), CORE, Europe PMC, dblp, OpenAIRE, CiteSeerX, DOAJ, BASE, Zenodo, HAL, SSRN, Unpaywall (DOI lookup), and optional Sci-Hub workflows.

  • Standardized Output: Papers are returned in a consistent dictionary format via the Paper class.

  • Free-First Design: Open and public sources are prioritized before any optional commercial or restricted integrations.

  • Optional API-Key Enhancement: Sources like Semantic Scholar can work better with a user-provided API key, but are not intended to force paid usage.

  • Discovery + Retrieval Workflow: Google Scholar and Crossref can be used for discovery and DOI backfilling, while open repositories and publisher links are used for lawful full-text resolution where available.

  • OA-First Fallback Chain: download_with_fallback now follows source-native download β†’ OpenAIRE/CORE/Europe PMC/PMC discovery β†’ Unpaywall DOI resolution β†’ optional Sci-Hub.

  • MCP Integration: Compatible with MCP clients for LLM context enhancement.

  • Extensible Design: Easily add new academic platforms by extending the academic_platforms module.

Source Strategy

The long-term goal is not to depend on a single search engine, but to combine multiple free and public sources with clear roles:

  • Open metadata backbone: Crossref, OpenAlex, Semantic Scholar, dblp, CiteSeerX, SSRN, Unpaywall (DOI-centric OA metadata).

  • Discipline-specific sources: arXiv, PubMed, PubMed Central, Europe PMC, IACR.

  • Open-access full-text sources: arXiv, PMC, CORE, OpenAIRE, DOAJ, BASE, Zenodo, HAL, publisher open-access links.

  • Discovery and DOI recovery: Google Scholar can be useful for finding titles, versions, and DOI clues when other public metadata sources are incomplete.

Recommended free-first roadmap:

  • Keep current public sources stable.

  • Add OpenAlex as a broad free metadata source.

  • Add PubMed Central and Europe PMC for stronger biomedical full-text access.

  • Add CORE and OpenAIRE for repository-based open-access retrieval.

  • Use Google Scholar mainly as a discovery fallback, not as the primary canonical source.

Platform Capability Matrix

This matrix reflects verified live-integration results from functional and end-to-end regression tests in this repository. Columns show the highest capability level observed under normal conditions.

Platform Search Download Read Notes arXiv βœ… βœ… βœ… Open API; reliable PubMed βœ… ❌ ⚠️ info-only Open API; reliable bioRxiv βœ… βœ… βœ… Open API; reliable medRxiv βœ… βœ… βœ… Open API; reliable Google Scholar ⚠️ ❌ ❌ Bot-detection active; set PAPER_SEARCH_MCP_GOOGLE_SCHOLAR_PROXY_URL IACR βœ… βœ… βœ… Open API; reliable Semantic Scholar βœ… βœ… (OA) βœ… (OA) Works without key (rate-limited); key improves limits; key rejection (403) retried automatically without key Crossref βœ… ❌ ⚠️ info-only Open API; reliable OpenAlex βœ… ❌ ⚠️ info-only Open API; reliable PMC βœ… βœ… (OA only) βœ… (OA only) OA PDFs only; direct download may be blocked by some proxy environments CORE βœ… βœ… (record-dependent) βœ… (record-dependent) Free key recommended; connector retries with backoff and falls back to key-less on 401/403 Europe PMC βœ… βœ… (OA) βœ… (OA) OA PDFs only; direct download may be blocked by some proxy environments dblp βœ… ❌ ⚠️ info-only Open API; reliable OpenAIRE βœ… ❌ ❌ Open API; retries 3Γ— with escalating request profiles on transient 403 CiteSeerX ⚠️ βœ… (record-dependent) ⚠️ API endpoint intermittently unavailable / redirects to web archive DOAJ βœ… ⚠️ (URL-dependent) ⚠️ (URL-dependent) PDF availability varies by article; free key raises rate limits BASE ⚠️ βœ… (record-dependent) βœ… (record-dependent) OAI-PMH endpoint requires institutional IP registration; returns empty gracefully otherwise Zenodo βœ… βœ… (record-dependent) βœ… (record-dependent) Open API; reliable HAL βœ… βœ… (record-dependent) βœ… (record-dependent) Open API; reliable SSRN ⚠️ ⚠️ best-effort ⚠️ best-effort 403 bot-detection active; public PDF only Unpaywall βœ… (DOI lookup) ❌ ❌ Requires PAPER_SEARCH_MCP_UNPAYWALL_EMAIL Sci-Hub (optional) ⚠️ fallback-only βœ… ❌ Optional; unstable mirrors; user responsibility IEEE Xplore πŸ”‘ 🚧 skeleton 🚧 skeleton 🚧 skeleton Requires PAPER_SEARCH_MCP_IEEE_API_KEY to activate ACM DL πŸ”‘ 🚧 skeleton 🚧 skeleton 🚧 skeleton Requires PAPER_SEARCH_MCP_ACM_API_KEY to activate

βœ… = reliable in live tests. ⚠️ = works but subject to upstream instability or access restrictions. ❌ = not supported. πŸ”‘ = key required. 🚧 = skeleton only.

Optional Paid Platform Connectors (Phase 3)

IEEE Xplore and ACM Digital Library connectors are included as opt-in skeletons. They are disabled by default β€” no API calls are made unless you explicitly configure the corresponding keys.

Platform Env Var Status IEEE Xplore PAPER_SEARCH_MCP_IEEE_API_KEY 🚧 skeleton β€” search registered, download/read raise NotImplementedError ACM Digital Library PAPER_SEARCH_MCP_ACM_API_KEY 🚧 skeleton β€” search registered, download/read raise NotImplementedError

How to enable:

Copy & paste β€” that's it
export PAPER_SEARCH_MCP_IEEE_API_KEY= # free key at https://developer.ieee.org/
export PAPER_SEARCH_MCP_ACM_API_KEY= # see https://libraries.acm.org/digital-library

Once a key is set, the corresponding source is automatically added to ALL_SOURCES and its MCP tools (search_ieee / search_acm, download_ieee / download_acm, read_ieee_paper / read_acm_paper) are registered at server startup.

Without a key the connectors log a startup warning only β€” the rest of the server is unaffected.

Free Source Expansion (Phase 4)

Three additional free-source connectors are now integrated into the MCP server:

  • zenodo: Official Zenodo REST API connector (search + record-dependent PDF/read support).

  • hal: HAL public API connector (search + record-dependent PDF/read support).

  • ssrn: Discovery-first connector with hardened parser and best-effort download/read when a direct public PDF link is available.

  • unpaywall: DOI-centric OA metadata source for standalone lookup (search_unpaywall) and fallback URL resolution.

SSRN integration remains compliance-first: it only attempts direct public PDF links exposed by SSRN pages. If login/restricted delivery is required, the connector returns a clear message instead of bypassing access controls.

Sci-Hub Notice

Sci-Hub support can remain available as an optional connector for users who explicitly choose to enable it, but it should not be treated as the default or recommended full-text path.

  • Availability is unstable and mirrors change frequently.

  • Legal and policy risks vary by jurisdiction.

  • README and tool descriptions should clearly state that users are responsible for enabling and using it.

  • Open-access and publisher-permitted sources should be tried first whenever possible.

Contributing

We welcome contributions! Here's how to get started:

Fork the Repository: Click "Fork" on GitHub.

Clone and Set Up:

Copy & paste β€” that's it
git clone https://github.com/yourusername/paper-search-mcp.git
cd paper-search-mcp
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"

Make Changes:

  • Add new platforms in academic_platforms/.

  • Update tests in tests/.

Submit a Pull Request: Push changes and create a PR on GitHub.

Demo

TODO

Planned Academic Platforms

  • [√] arXiv

  • [√] PubMed

  • [√] bioRxiv

  • [√] medRxiv

  • [√] Google Scholar

  • [√] IACR ePrint Archive

  • [√] Semantic Scholar

  • [√] Crossref

  • [√] PubMed Central (PMC)

  • [√] CORE

  • [√] Europe PMC

  • [√] Sci-Hub warning and enablement docs

Development Tasks

  • [√] Fix Async search bugs and ensure reliable fast MCP events

  • [√] End-to-End full pipeline testing script (search, parse, download)

  • [√] Establish two-layer federated architecture (Layer 1 tool: search_papers)

  • [√] Ensure pervasive DOI extraction across metadata fields & abstract fallbacks

  • Citation graph & Paper relation context feature

  • [√] Expand full-stack OpenAlex provider

Priority Free and Open Sources

  • [√] PubMed Central (PMC)

  • [√] CORE

  • [√] OpenAlex

  • [√] Europe PMC

  • [√] OpenAIRE

  • [√] dblp

  • [√] CiteSeerX

  • [√] DOAJ

  • [√] BASE

  • [√] Zenodo

  • [√] HAL

  • [√] SSRN (discovery + best-effort full-text)

  • [√] Unpaywall (standalone DOI search source)

Optional and Non-Core Integrations

  • ResearchGate

  • JSTOR

  • ScienceDirect

  • Springer Link

  • [√] IEEE Xplore (optional skeleton β€” activate with IEEE_API_KEY)

  • [√] ACM Digital Library (optional skeleton β€” activate with ACM_API_KEY)

  • Web of Science

  • Scopus

Star History

License

This project is licensed under the MIT License. See the LICENSE file for details.

Happy researching with paper-search-mcp! If you encounter issues, open a GitHub issue.