scipdf-mcp
MCP server for downloading academic papers from DOI or title, resolving references, and generating citations. Supports batch downloads, multiple mirrors, and optional Unpaywall integration.
README
scipdf-mcp
一键安装的 学术论文 PDF 下载 工具:MCP Server + Skill + CLI(v0.2)。
用户要论文 → 解析 DOI(Crossref/OpenAlex)→ 下载 → 返回本地 path + 引用
合规提示:请自行确认当地法规与机构政策。本工具仅供个人科研学习自用。
仓库: https://github.com/gjjisadog/scipdf-mcp
给 AI / 一键安装
请按仓库 AGENTS.md 安装 scipdf-mcp:
git clone https://github.com/gjjisadog/scipdf-mcp.git
cd scipdf-mcp && bash install.sh
重启客户端后用 /scipdf 测试。更新:bash install.sh --update
git clone https://github.com/gjjisadog/scipdf-mcp.git
cd scipdf-mcp
bash install.sh
# 更新
bash install.sh --update
要求:Node.js ≥ 20。安装后会注册 MCP + Skill,并做 CLI 自检。
使用
Agent: /scipdf 下载:Nanometre-scale thermometry in a living cell
CLI:
node dist/index.js download 10.1038/nature12373
node dist/index.js download --title "Nanometre-scale thermometry in a living cell"
node dist/index.js batch 10.a/b 10.c/d
node dist/index.js resolve "some title"
node dist/index.js parse refs.bib
node dist/index.js list
node dist/index.js check-mirrors
无参数启动 = MCP stdio 服务。
MCP Tools / Resources / Prompts
| Tool | 说明 |
|---|---|
download_paper |
单篇;返回 path、cached、citation、错误 code |
download_papers |
批量去重 + scipdf-manifest.json |
resolve_doi |
Crossref + OpenAlex |
parse_references |
bib/ris/粘贴列表抽 DOI |
list_mirrors / check_mirrors |
配置与健康缓存探测 |
list_papers |
已下载列表 |
open_paper |
系统默认打开 PDF |
format_citation |
APA / GB/T / BibTeX |
reload_config |
热加载配置 |
- Resource:
papers://list - Prompt:
download_papers_batch
错误码:DOI_NOT_FOUND / AMBIGUOUS_DOI / MIRROR_BLOCKED / ALL_SOURCES_FAILED / PDF_NOT_IN_DB 等。
环境变量(节选)
| 变量 | 含义 | 默认 |
|---|---|---|
SCIPDF_DOWNLOAD_DIR |
保存目录 | ~/Documents/Papers |
SCIPDF_UNPAYWALL_EMAIL |
可选,Unpaywall 真实邮箱 | 未设 = 不用 OA |
SCIPDF_PREFER_OA |
为 true 时才在 Sci-Hub 前试 OA | false(默认 Sci-Hub) |
SCIPDF_ALLOW_SCIHUB |
是否允许 Sci-Hub(主路径) | true |
SCIPDF_FILENAME_STYLE |
doi 或 author_year_title |
doi |
SCIPDF_PDF_HOSTS |
直连 PDF 主机 | sci.bban.top/pdf/ |
SCIPDF_MIRRORS |
HTML 镜像列表 | 内置 |
SCIPDF_DEBUG=1 |
调试日志 | off |
SCIPDF_HEALTH_TTL_MS |
镜像健康缓存 | 15min |
Unpaywall(可选,非强制)
默认只走 Sci-Hub,无需任何邮箱。
若要优先合法 OA,需同时配置:
export SCIPDF_UNPAYWALL_EMAIL="你的真实邮箱@gmail.com"
export SCIPDF_PREFER_OA=true
Unpaywall 要求真实邮箱(统计用量,不收费)。example.com 无效。
| 配置 | 行为 |
|---|---|
| 默认(无邮箱 / 无 PREFER_OA) | 只走 Sci-Hub |
| 只设邮箱 | 仍默认 Sci-Hub(可用 unpaywall 命令单独查询) |
邮箱 + PREFER_OA=true |
先 OA,失败再 Sci-Hub |
ALLOW_SCIHUB=false + 邮箱 + PREFER_OA |
仅 OA |
Grok 示例(可选 OA):
[mcp_servers.scipdf]
command = "node"
args = ["/path/to/scipdf-mcp/dist/index.js"]
env = {
SCIPDF_DOWNLOAD_DIR = "/Users/you/Documents/Papers",
SCIPDF_UNPAYWALL_EMAIL = "you@gmail.com",
SCIPDF_PREFER_OA = "true"
}
见 config.example.json。
开发
npm install && npm run build && npm test
npm run install:all
CI:GitHub Actions 上 Node 20/22 build + test。
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.