Skip to main content
Glama
research-mcp

research-mcp

by 404Simon

Research MCP

用于学术研究的只读 MCP 服务器。让 LLM 代理能够搜索论文、查看元数据、追踪引用图谱、生成 BibTeX,并通过 FastMCP 工具读取开放获取 PDF 的全文。

环境要求

  • Python 3.13+

  • uv

  • 可访问公共 API 的互联网连接(无需 API 密钥)

Related MCP server: Scholar MCP

工作原理

API

作用

Semantic Scholar

主要搜索、元数据、TLDR、引用图谱。优先尝试。

OpenAlex

当 Semantic Scholar 被限流时自动回退,同时用于开放获取 PDF 解析。

arXiv

专用预印本搜索(source="arxiv")、arXiv ID 查询和直接 PDF 下载。最适合按确切名称查找特定的近期论文。

DBLP

会议论文集调查(venue_proceedings)和按会议范围搜索。是“该会议接受什么论文”的权威来源。

Crossref

BibTeX 生成(transform/application/x-bibtex)。

PyMuPDF

PDF 文本提取。

Semantic Scholar 在无密钥使用时会被限流,因此每个请求都会以指数退避方式重试(遵循 Retry-After),然后才回退到 OpenAlex。结果始终会告知代理使用了哪个数据源。arXiv API 强制约 3 秒的间隔规则,服务器会遵守;DBLP 在快速连续请求时会重置连接,因此会议流页面也以 3 秒的礼貌延迟获取。

缓存

所有易失效的 API 响应、搜索结果、会议论文集语料库和 PDF 都缓存在 ~/.cache/research-mcp/ 下的磁盘中(api/ 用于 JSON 响应,pdf/ 用于下载的 PDF):

  • 新鲜的缓存命中会即时返回——重复查询不会访问网络。

  • 会议语料库(从 DBLP 页面组装)整体缓存,因此即使 DBLP 丢失某个页面,重新调查会议议程也能即时完成。

  • 过期回退:如果 API 宕机或限流,仍会提供最后一次缓存的响应,因此代理仍能获得答案。

  • 缓存 TTL:arXiv 和 BibTeX 为 7 天(数据稳定),搜索/元数据和 DBLP 为 24 小时。可通过 RESEARCH_MCP_CACHE_DIR 覆盖缓存位置。

配置

在编码代理的 MCP 配置中注册服务器。例如,在 Opencode 的 opencode.json 中:

{
  "mcp": {
    "research-mcp": {
      "command": [
        "uvx",
        "--from",
        "git+https://github.com/404Simon/research-mcp",
        "research-mcp"
      ],
      "enabled": true,
      "type": "local"
    }
  }
}

环境变量(均为可选)

变量

用途

SEMANTIC_SCHOLAR_API_KEY

设置后可保证 1 RPS 和更高的可靠性(否则回退到 OpenAlex)。

RESEARCH_MCP_CACHE_DIR

API 响应和 PDF 的缓存位置。默认:~/.cache/research-mcp/。

工具

search_papers

按关键词搜索学术论文,可选用会议和年份筛选。返回结构化结果,包含标题、年份、会议、作者、DOI、摘要、引用次数,以及可用的开放获取 PDF 链接。

参数

类型

描述

query

string(必填)

搜索词

venue

string(可选)

按会议筛选,例如 e-Energy、VLDB

year_start

int(可选)

最早出版年份

year_end

int(可选)

最晚出版年份

limit

int(可选)

最大结果数(默认 20)

source

string(可选)

auto(默认)、semanticscholar、openalex 或 arxiv

source="arxiv" 搜索 arXiv 预印本 API,是按确切名称查找特定近期论文的推荐方式,例如 query='ti:"carbon intensity" AND abs:forecast'(arXiv 字段语法原样传递)。所有结果都会缓存,因此重复搜索即时完成。

venue_proceedings

调查某会议的实际论文集(实际发表的内容)。用于检查论文想法是否适合 ACM e-Energy 等会议。

参数

类型

描述

venue

string(必填)

会议名称(例如 e-Energy)或 DBLP 流键(例如 conf/eenergy)

year

int(可选)

仅查看某一年的论文(例如 2024)

query

string(可选)

主题筛选;论文按标题关键词重叠度排序

limit

int(可选)

最大结果数(默认 20)

完整会议语料库从 DBLP 获取(分页超过其 100 条上限),在客户端排序,并整体缓存——重新调查即时完成。

{"results": [
  {"title": "Reinforcement Learning Approach for Optimal Distributed Energy Management in a Microgrid",
   "year": 2018, "venue": "IEEE Transactions on Power Systems",
   "authors": ["Elham Foruzan", "Leen-Kiat Soh", "S. Asgarpoor"],
   "doi": "10.1109/tpwrs.2018.2823641",
   "abstract": "In this paper, a multiagent-based model is used ...",
   "citation_count": 297, "open_access_pdf": null,
   "source": "openalex"}],
 "note": "(Semantic Scholar unavailable — used OpenAlex instead: RequestFailed)",
 "count": 1}

paper_details

论文的完整元数据。接受 DOI(例如 10.1109/tpwrs.2018.2823641)、arXiv ID(例如 2408.03506、arXiv:2408.03506 或 arxiv.org/abs/... URL)或 OpenAlex ID。

参数

类型

描述

doi_or_id

string(必填)

DOI、arXiv ID 或 OpenAlex ID

返回标题、作者、会议、年份、摘要、TLDR、引用次数、DOI 和开放获取 PDF:

get_citation_graph

向前或向后追踪论文的引用,进行滚雪球式搜索。

参数

类型

描述

paper_id

string(必填)

DOI、OpenAlex ID(W...)或 Semantic Scholar 论文 ID

direction

string(可选)

citing(默认,引用此论文的论文)或 referenced(其参考文献)

limit

int(可选)

最大结果数(默认 20)

get_bibtex

为 DOI 生成 BibTeX 条目。使用 Crossref 的原生转换;回退到从 OpenAlex 元数据本地生成(处理 Crossref 不认识的 arXiv DOI)。

参数

类型

描述

doi

string(必填)

DOI

@article{Foruzan_2018, title={Reinforcement Learning Approach for Optimal Distributed Energy Management in a Microgrid}, volume={33}, ..., author={Foruzan, Elham and Soh, Leen-Kiat and Asgarpoor, Sohrab}, year={2018} }

read_paper_full_text

下载开放获取 PDF 并使用 PyMuPDF 提取文本。传入 DOI、arXiv ID(例如 2408.03506)或直接 PDF URL。PDF 缓存在本地(~/.cache/research-mcp/pdf/)。

参数

类型

描述

doi_or_pdf_url

string(必填)

DOI、arXiv ID 或 https://... PDF URL

max_chars

int(可选)

截断返回文本(默认 50000)

cache

bool(可选)

在本地缓存 PDF(默认 true)

返回提取的文本、页数、来源 URL 和缓存路径。如果未找到开放获取副本,代理会收到明确消息,告知其搜索 OA 副本或直接传入 PDF URL。

文件结构

src/
  main.py              # FastMCP server, tool definitions, fallback orchestration
  client.py            # HTTP client with retry/backoff (429/5xx, Retry-After)
  cache.py             # Disk cache (~/.cache/research-mcp/) with stale fallback
  semanticscholar.py   # Semantic Scholar: search, details, citations (optional API key)
  openalex.py          # OpenAlex: search, details, citation graph, OA-PDF resolution
  arxiv.py             # arXiv API: search, ID lookups (3 s politeness, 7-day cache)
  dblp.py              # DBLP: venue proceedings + venue-scoped search (paged corpus cache)
  crossref.py          # Crossref: BibTeX transform + local fallback generator
  pdf.py               # PDF download/validation/caching + PyMuPDF text extraction

无需 API 密钥。运行 uv sync && uv run research-mcp 通过 stdio 启动服务器。

Available Tools

6 tools
get_bibtexA

Generate a BibTeX citation entry for a paper by DOI via Crossref (falls back to local generation from OpenAlex metadata). Result is cached.

Inputs: doi (required). Returns: result

get_citation_graphA

Follow a paper's citation graph. paper_id is a DOI, an OpenAlex ID (W...), or a Semantic Scholar paper ID. direction: "citing" (papers that cite this paper, forward search) or "referenced" (papers this paper cites, backward search). Returns structured results plus the data source used. Results are cached.

Inputs: paper_id (required), limit, direction. Returns: object

paper_detailsA

Get full metadata for a paper. Pass a DOI (e.g. "10.1109/tpwrs.2018.2823641"), an arXiv ID (e.g. "2407.19074", "arXiv:2407.19074", or an arxiv.org/abs/... URL), or an OpenAlex ID (W...). Semantic Scholar first, OpenAlex/Crossref fallback: title, authors, venue, year, abstract, TLDR, citation count, DOI, and open-access PDF.

Inputs: doi_or_id (required). Returns: result

read_paper_full_textA

Read the full text of a paper. Pass a DOI, an arXiv ID (e.g. "2407.19074"), or a direct PDF URL. Resolves the open-access PDF automatically, downloads it (cached locally under ~/.cache/research-mcp/pdf/ by default), extracts the text with PyMuPDF, and returns up to max_chars characters.

Use paper_details or search_papers to find a paper's open_access_pdf first; pass that URL directly if DOI resolution finds no open-access copy.

Inputs: doi_or_pdf_url (required), cache, max_chars. Returns: object

search_papersA

Search academic papers by keyword. Returns structured results: title, year, venue, authors, DOI, abstract, citation count, and an open-access PDF link when available.

source:

  • "auto" (default): Semantic Scholar first, automatic OpenAlex fallback.

  • "semanticscholar" / "openalex": force one engine.

  • "arxiv": search the arXiv preprint API directly — best for finding specific recent papers by exact name. Supports arXiv field syntax in query, e.g. 'ti:"carbon intensity" AND abs:forecast'.

  • "dblp": search DBLP publications (supports venue).

Optionally filter by venue (e.g. "e-Energy"). Venue-scoped queries are routed through DBLP automatically, because OpenAlex has no usable venue filter. All results are cached on disk, so repeat searches are instant even if an API rate-limits.

Inputs: query (required), limit, venue, source, +2 more. Returns: object

venue_proceedingsA

List papers published in a venue's proceedings (via DBLP) — for surveying what a conference like ACM e-Energy actually accepts. Returns title, year, authors, DOI.

venue: a venue name (e.g. "e-Energy") or a DBLP stream key (e.g. "conf/eenergy"). year: optional single year to filter proceedings (e.g. 2024). query: optional keyword to only return papers matching a topic (e.g. "carbon"). Results are cached, so re-surveys are instant.

Inputs: venue (required), year, limit, query. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a clearly distinct research workflow step: keyword search, metadata lookup by ID, citation graph traversal, venue-based survey, BibTeX generation, and full-text extraction. Even where search_papers supports a venue filter, venue_proceedings is clearly positioned as venue-first exploration, so an agent can reliably pick the right tool.

    Naming Consistency3/5

    All names are readable and consistently snake_case, but they mix conventions: search_papers, get_citation_graph, get_bibtex, and read_paper_full_text are verb-led, while paper_details and venue_proceedings are bare noun phrases. This is a mixed pattern rather than a truly consistent verb_noun schema.

    Tool Count5/5

    Six tools is well within the ideal range for a research assistant server. Each tool covers a distinct capability and none feels redundant or unnecessary for the stated domain of academic paper discovery and reading.

    Completeness5/5

    The tool surface covers the core academic research lifecycle: finding papers by keyword or venue, retrieving detailed metadata, exploring citations both forward and backward, reading full text, and generating BibTeX entries. There are no obvious dead ends or missing operations that would prevent an agent from completing a typical literature research workflow.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A comprehensive Model Context Protocol server that provides AI assistants with direct access to Semantic Scholar's academic database, enabling advanced paper discovery, citation analysis, author research, and AI-powered recommendations.
      16
      -
    • F
      license
      A
      quality
      B
      maintenance
      Scholar MCP connects your agent to academic search, citations, primary text and figures, and an optional local research library. Source keys are optional.
      6
      789 PyPI
      11
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Remotely-callable MCP server for academic paper search, full-text retrieval and image to LaTeX conversion across arXiv, Semantic Scholar, and OpenAlex.
      1
      MIT