Skip to main content
Glama
Scholar MCP Server
by 45645678a

Scholar MCP Server

Local academic paper tool MCP server — 9-source search, multi-source download, AI-powered analysis, citation graph, code-based paper recommendation.

PyPI Python Tests License

Quick Install

pip install scholar-mcp-server[all]
scholar-mcp-install --all

That's it. Restart your IDE and start using it.

Related MCP server: Paper Distill MCP Server

Features

Tool

Description

paper_search

9-source concurrent search with relevance scoring (Semantic Scholar, OpenAlex, Crossref, PubMed, arXiv, CORE, Europe PMC, DOAJ, dblp)

paper_download

Multi-source PDF download: Unpaywall → Publisher OA → arXiv → Sci-Hub → scidownl

paper_batch_download

Batch download multiple papers by DOI list

paper_ai_analyze

AI analysis — downloads PDF, extracts full text (up to 20 pages / 12k chars), sends to any OpenAI-compatible API

paper_recommend

Scan your workspace code → multi-query auto-recommend related papers

paper_citation_graph

Generate Mermaid citation/reference network visualization

paper_health

Check download source availability

Search Quality

Search results are ranked by a 4-factor composite score:

Factor

Weight

Description

Query relevance

0–40

Title + abstract term matching

Citation impact

0–30

Log-scaled citation count

Source quality

0–10

Data source reliability weighting

Year recency

0–15

Boost for recent publications

Deduplication uses DOI matching + Jaccard title similarity (≥0.7 threshold) across all 9 sources. Each source connector has built-in retry with exponential backoff.

AI Analysis

paper_ai_analyze works with any OpenAI-compatible API. Set AI_API_BASE, AI_API_KEY, and AI_MODEL to point to your preferred provider.

Alternative Install (Git Clone)

git clone https://github.com/45645678a/Scholar-mcp.git
cd Scholar-mcp
pip install -r requirements.txt
python install.py --all

Environment Variables

Variable

Description

Required

AI_API_KEY

API key for AI analysis

For paper_ai_analyze

AI_API_BASE

API base URL (any OpenAI-compatible endpoint)

Optional (default: https://api.deepseek.com)

AI_MODEL

Model name

Optional (default: deepseek-chat)

UNPAYWALL_EMAIL

Email for Unpaywall API

Optional

Supported IDEs

  • Antigravity (Gemini)

  • Cursor

  • Windsurf

  • Claude Code / Claude Desktop

  • VS Code (Copilot)

Search Sources (9)

All free, no API keys required:

Source

Coverage

Semantic Scholar

Broad academic (primary)

OpenAlex

250M+ works, global

Crossref

DOI metadata

PubMed

Biomedical

arXiv

Physics, CS, Math

CORE

Open Access aggregator

Europe PMC

European biomedical

DOAJ

Open Access journals

dblp

Computer Science

Development

pip install .[all] pytest
pytest tests/ -v

40 tests covering search dedup, download chain, keyword extraction, and connector mocking.

⚠️ Disclaimer

This tool includes optional Sci-Hub integration for personal academic use. Sci-Hub may be illegal in some jurisdictions. Users are solely responsible for ensuring compliance with local laws and institutional policies. The authors do not endorse copyright infringement. If you are in a compliance-sensitive environment (university, company, lab), consult your institution's policy before using the Sci-Hub download source.

License

MIT

Available Tools

7 tools
paper_ai_analyzeA

使用 AI 分析论文,返回核心贡献、研究方法、关键发现等。

支持任意 OpenAI 兼容 API(通过 AI_API_BASE / AI_API_KEY / AI_MODEL 环境变量配置)。 如果能下载到 PDF,会提取全文进行深度分析;否则退回到 abstract 分析。

Args: doi: 论文的 DOI,例如 "10.1109/tim.2021.3106677"

Returns: AI 分析结果 JSON

Inputs: doi (required). Returns: result

paper_batch_downloadA

批量下载多篇论文 PDF。

Args: dois: DOI 列表,例如 ["10.1109/tim.2021.3106677", "10.1109/tie.2020.3032868"] output_dir: 保存 PDF 的目录路径,默认为当前目录

Returns: 批量下载结果的 JSON 字符串,包含每篇的状态和汇总统计

Inputs: dois (required), output_dir. Returns: result

paper_citation_graphA

生成论文引用图谱(Mermaid 可视化 + 结构化数据)。

通过 Semantic Scholar API 获取论文的引用(citations)和参考文献(references), 输出 Mermaid 图谱代码(可直接在 Markdown 中渲染)和结构化 JSON。

Args: doi: 论文的 DOI,例如 "10.1109/tim.2021.3106677" depth: 递归深度 (1=直接引用/参考, 2=二层引用),默认 1 max_per_level: 每层最多获取的论文数,默认 10

Returns: 引用图谱 JSON,包含 mermaid (图谱代码), nodes, edges, statistics 等

Inputs: doi (required), depth, max_per_level. Returns: result

paper_downloadA

通过 DOI 下载一篇论文 PDF(本地多源下载:Unpaywall → arXiv → Sci-Hub)。

Args: doi: 论文的 DOI,例如 "10.1109/tim.2021.3106677" output_dir: 保存 PDF 的目录路径,默认为当前目录

Returns: 下载结果的 JSON 字符串,包含 success, doi, path, size_mb, source 等字段

Inputs: doi (required), output_dir. Returns: result

paper_healthA

检查论文下载服务各数据源的可用性(Unpaywall、arXiv、Sci-Hub 镜像)。

Returns: 各数据源健康状态的 JSON 字符串

Inputs: no named parameters. Returns: result

paper_recommendA

分析工作区代码,自动推荐相关学术论文。

扫描指定目录下的源文件(.py, .tex, .md 等),提取 import 库名、算法术语、 LaTeX 标题等特征,映射到学术领域关键词后搜索论文推荐。

Args: workspace_path: 工作区根目录路径,例如 "E:/半导体实验" top_n: 返回推荐论文数量,默认 8

Returns: 推荐结果 JSON,包含检测到的库/术语、搜索查询和推荐论文列表

Inputs: workspace_path (required), top_n. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools have distinct purposes with clear boundaries: paper_ai_analyze focuses on AI analysis, paper_citation_graph on citation visualization, paper_recommend on workspace-based recommendations, and paper_health on service monitoring. However, paper_download and paper_batch_download overlap significantly in functionality, with the batch version essentially being a multi-DOI extension of the single download tool, which could cause confusion about when to use each.

    Naming Consistency5/5

    All tools follow a consistent 'paper_' prefix with descriptive snake_case naming that clearly indicates their function. The pattern is uniform across all seven tools, making them predictable and easy to understand at a glance. No mixing of naming conventions or inconsistent verb styles is present.

    Tool Count5/5

    With 7 tools, this server is well-scoped for academic paper management and analysis. Each tool serves a distinct role in the workflow: searching, downloading, analyzing, visualizing citations, checking service health, and generating recommendations. The count is appropriate for the domain without being overwhelming or insufficient.

    Completeness4/5

    The toolset covers most core academic paper workflows comprehensively: search, download (single and batch), analysis, citation visualization, and recommendation. A minor gap exists in update/management operations (e.g., organizing downloaded papers, managing collections, or tracking reading status), but agents can work effectively with the provided tools for typical research tasks.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      An academic paper management tool that enables multi-source research searching, batch PDF analysis, and the generation of comprehensive, cross-literature reviews. It features intelligent token compression and quality evaluation to streamline the literature review workflow for researchers.
      54 npm
      25
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      An academic research tool that enables users to search across nine major paper sources, rank results with AI-driven criteria, and automate paper notifications to multiple platforms. It streamlines literature management through integrated support for Zotero, Obsidian, and personal library website generation.
      19
      217 PyPI
      66
      AGPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables searching, downloading, and exporting academic papers from 20+ scholarly sources including arXiv, PubMed, and Semantic Scholar. Supports multi-source concurrent search, citation network tracing, and export to CSV, RIS, and BibTeX.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables academic literature collection and full-text downloading from multiple sources (CNKI, Elsevier, OpenAlex, etc.) via natural language commands.
      3
      MIT