snu-library
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
grounded-lineage
Literature research for Claude Code, Codex and claude.ai that traces how a field developed, grounds every claim in full text you can check down to the page, and draws the figures a reader actually asks for. Subscription papers are read through the SNU library.
Logical prior-work and research-flow investigation. Citation data from OpenAlex finds the candidates (seed, references, citing papers, reference-year spectroscopy, coupling clusters, main path); reading decides the branches. The result is a
lineage.jsonflow, organised by the questions that split a method or, for a topic, by the reader's questions.Claims grounded in full text, traceable to the page. Each paper read becomes an evidence record with its access level, locators and
results[]numbers.evidence lintchecks the records,evidence labelsderives the read-depth label (it is never typed by hand),report traceties every cited key and number back to a record, andevidence verifyre-reads the PDF page.Visualization that answers the reader's questions. An interactive research flow map whose boxes open an evidence panel (version read, label, judgments with locators, results), plus figures planned per report question in
figs/figures.jsonand drawn byviz figurefrom evidence numbers only.
Existing users: only the display name and repository changed (formerly
snu-research-agent). The CLIscholarly-access-agent, the Python modulescholarly_access_agent, the MCP serversnu-libraryand all skill names are unchanged.
What it looks like
Each investigation lives in its own folder under the research root (SNU_RESEARCH_ROOT), e.g. <root>/LES-lineage/. It holds README.md (the report source) and <Topic>.html, a standalone report page with the research flow map embedded as an auto-sized iframe and the per-question Vega-Lite figures placed in the sections they answer; evidence/ with one JSON record per paper; figs/ (figure specs and pages); data/ (OpenAlex corpus, analysis.txt, query and search logs); run.jsonl (the pilot's run log); and, after topic recommendation, ideas/ with the gap matrix, question cards, novelty checks and a recommendation report.
Related MCP server: Academic Paper Search MCP Server
Quick start
One command (needs only git; installs uv, which brings Python 3.12):
# Windows (PowerShell)
irm https://raw.githubusercontent.com/SleepingDawn/grounded-lineage/main/install.ps1 | iex# macOS / Linux
curl -LsSf https://raw.githubusercontent.com/SleepingDawn/grounded-lineage/main/install.sh | shIt clones into ~/.local/share/research-tools/grounded-lineage (GL_ROOT or --root to change; from a clone, install.ps1 / sh install.sh use that clone), then:
builds the venv, installs the package and Playwright Chromium, and installs the four skills;
installs a portable Quarto for HTML reports if none is found (release hash checked;
QUARTO_PATHsaved on Windows);optionally sets up ReadCube filing (below);
registers the
snu-library(andreadcube) MCP servers in~/.claude.json, and in~/.codex/config.tomlwhen Codex is installed, backing up a config before changing it;asks for an optional OpenAlex API key (hidden input; Windows user variable, or your shell rc on macOS/Linux);
opens the SNU sign-in window when there is no session (you sign in yourself; on Windows an installed Chrome/Edge is used first) and checks one subscription PDF download;
signs in to ReadCube and verifies its writes, if set up.
On Linux, Korean reports need a Korean font (e.g. sudo apt install fonts-noto-cjk), and headless Chromium may need sudo .venv/bin/python -m playwright install-deps chromium; the installer warns when Chromium does not start. Signing in to SNU needs a desktop session.
Every step checks before acting, so rerun the same command after a session expires or to repair an install. Options (after install.ps1, in $env:GL_INSTALL_ARGS for the irm | iex form, or after sh -s --): --readcube / --no-readcube, --non-interactive (install and check only), --update (also update readcube-mcp), --no-register (leave skills and client configs alone).
ReadCube filing (optional). Uses the unofficial Zhilin0001/readcube-mcp, pinned to a reviewed commit, with its own venv in <root>/readcube-mcp. It needs a ReadCube email + password account (no SSO/MFA); its sign-in prompts are in Chinese (邮箱 email, 密码 password). Its write tools only work after a session-bound verification: the installer offers to run it in a private test collection grounded-lineage verify <date> and empties it afterwards; delete the empty collection in the ReadCube app. Signing in again voids the verification (rerun the installer). Do not run login_local.py --check by hand: it saves rotated cookies, which also voids it.
Manual install:
git clone https://github.com/SleepingDawn/grounded-lineage.git
cd grounded-lineage
python3 -m venv .venv
.venv/bin/python -m pip install -e .
.venv/bin/python -m playwright install chromium
.venv/bin/scholarly-access-agent setup # installs the skills for Codex and Claude Code
.venv/bin/scholarly-access-agent doctorOn Windows the executables are in .venv\Scripts\; set PYTHONUTF8=1. Run lineage query-test and lineage collect --query from Bash (Git Bash): Windows PowerShell 5.1 drops the double quotes inside a quoted query and splits it into words (in PowerShell, write each inner quote as \"). Both commands refuse a query with unbalanced parentheses or quotes, which is the usual sign of such a split.
Register the MCP server (setup installs skills only, not the MCP entry). Templates: examples/claude-mcp.json, examples/codex-mcp.toml; replace the executable path.
Client | How |
Claude Code |
|
Codex | Copy the |
claude.ai | Upload the four ZIPs in |
Restart clients after changing tools.
HTML reports need Quarto (bundles Pandoc and Typst; set QUARTO_PATH if it is not on PATH). Without it, render-report falls back to a built-in reportlab PDF and reports quarto_unavailable.
SNU sign-in: rerun the installer, or run scripts/서울대 로그인.command (macOS) for user-assisted sign-in. On Windows, if the visible window does not open with the bundled Chromium (application control can block it), add --browser-channel chrome (or msedge) to scholarly-access-agent open-url <URL> --wait-for-login --headless false. Passwords are never loaded or auto-entered; session files stay outside the repo, owner-only and unencrypted. Routine research is headless; only session renewal opens a window. When doctor, download_pdf or discover_pdfs finds the session expired, you get a desktop notification (Windows toast, macOS Notification Center, Linux notify-send; at most once per 30 min, SNU_LOGIN_ALERT_INTERVAL in seconds, SNU_LOGIN_ALERT=0 to turn off) and the result carries user_action_required with the re-login command, which the agent passes on at once. Optional: OPENALEX_API_KEY raises the OpenAlex quota (read from the environment and the Windows user variable, never printed).
Skills
Skill | Use it when | What it produces |
| Any paper search or literature review; the base for every other skill (access rules, version priority, evidence format, report) | Evidence records in |
| Where a method or concept came from, how it branched, what is mainstream now ( |
|
| Recommending topics, gaps or next projects from an existing review folder; novelty checks |
|
| Running review or topic recommendation end to end with little supervision, a dry run of the cost, or resuming a run | Routes to a playbook ( |
The calculation playbook turns a card or a paper's method into a calculation plan; nothing is submitted without the user's go-ahead. Settings and the user profile (compute, data, direction, horizon, exclusions) live in <research root>/research-pilot.md.
How a run works
Search. Native web/academic search finds candidates; queries and sources are logged. Every review except a quick search then runs
lineage expandon 3–5 central seeds: one hop of their references and citing papers, ranked by how many seeds each connects to, so papers the search missed are screened too. The expansion is saved as a small corpus, so plain reviews also test their main queries for precision, recall on a frozen gold set, novelty and anchor blocks (lineage query-test --drop-blocks) and check the era balance of what was read (evidence coverage). Lineage runs collect the larger OpenAlex neighbourhood and do the same on it.Resolve versions.
resolve <DOI>gives the Crossref record, Unpaywall open copies and ranked reading routes. Journal version first; preprint only as a labelled fallback.Read. Text first:
read_urlfor open-access HTML (outline, then terms, then sections);download_pdf+read_pdffor paywalled papers, page citations or figures. More than ~15 papers go to parallel reader sub-agents whose briefs open with the byte-identical reader pack (pack reader); readers write records to files and return at most 10 lines (file handback).Evidence records. One record per paper:
access(fulltext_pdf,fulltext_html,excerpts,secondary,abstract_only,unavailable), version read, criteria with locators, and every reportable number inresults[](value, range, unit, condition, page;source_filefor local PDFs).Lint and labels.
evidence lintmust pass;evidence labelsderives 본문 확인 / 발췌 확인 / 인용 맥락만 / 초록만 확인 / 미확인.refs checkcompares records with Crossref by DOI and flags retracted papers and unverified journals (OpenAlex).Report with citation keys. The report cites
[@larkin2014, p.9]or[@liang2023#k350]; rendering turns them into "(Larkin 외, 2014 [5], p.9)" and fills a reference table with the version read and the derived label.Trace and verify.
report traceflags unknown keys, missing locators, numbers not in the cited records and uncited numbers in the summary;evidence verify --writere-reads each result's PDF page and recordsverified_by.Figures planned per question. For each section (reader question) decide figure, table or neither in
figs/figures.json; writefigs/<name>.fig.jsonspecs whose rows name evidence records, and draw them withviz figure. Literal numbers and mixed units are rejected; read depth shows in the marks, the page in the tooltip.Render — one page per topic folder.
report combine <Topic> --rendermerges every report the run wrote (review, topic recommendations, novelty reports, calculation plans) into<Topic>.mdand renders the one<Topic>.htmlthe user receives (a lone review is rendered as it is;render-report/ MCPrender_report_pdfrenders any single Markdown file);embeds the flow map or a chart. Checkmissing_glyphsandwarnings, then open it.
CLI reference
All commands are scholarly-access-agent <command>; <command> -h lists options.
Area | Command | Purpose |
Setup |
| Install the skills for the current Codex and Claude Code user |
| Runtime and session presence; | |
| Start the MCP server ( | |
| Add a domain to the SNU proxy list | |
Access & reading |
| Proxy support check, proxied URL, open in the persistent profile |
| DOI → Crossref record, open copies, ranked reading routes | |
| Text-first reading of open repositories (arXiv, PMC, Europe PMC, chemRxiv, bioRxiv, medRxiv; engineering: engrXiv, HAL, OSTI, NASA NTRS, ACL Anthology, CVF) | |
| Find PDF links; download one, or a JSONL batch in one browser context | |
| Page-grounded excerpts by | |
| Print the reader pack byte for byte ( | |
Evidence & reports |
| Check records, derive read-depth labels, re-check results on the PDF page, summarise the measured search and the era balance of what was read |
| Compare records with Crossref by DOI (only DOIs are sent) | |
| Trace citation keys and numbers back to records | |
| Flag Markdown that Pandoc prints as text (table, list, heading or quote with no blank line before it; rows with more cells than the header); | |
| Merge a topic folder's reports ( | |
| Markdown report → standalone HTML ( | |
Lineage |
| Create the topic folder ( |
| One-hop snowballing for a plain review: references and citing papers of a few seeds, ranked by seed links, screened papers hidden; saves them as | |
| Seed candidates, citation neighbourhood, RPYS / clusters / SPC main path | |
| Build and test search vocabulary, freeze a gold set, log outside searches, count mentions and forward-only adoption | |
| Journal-first links, source quality of the boxes (retracted, not peer-reviewed, unverified journal, off-field, where each was found), validation and layout warnings, interactive page ( | |
Figures |
| A figure from an agent-written spec; every number from evidence results |
| Forest plot of results, adoption share by year, citations and RPYS spectrum | |
Cost |
| Dry-run estimate under a cap, ledger of measured stages, estimate vs measured with calibration |
MCP tools (snu-library, same implementation as the CLI; downloads always run headless):
Tool | Purpose |
| Installation and session presence; |
| Proxy support and |
| Open-access HTML as outline, term excerpts or whole sections |
| PDF candidates; open-repository PDFs directly, publisher PDFs through the SNU session |
| Page-grounded text by |
| Finished Markdown → HTML page (PDF on request); reads only local files in the report folder |
| Proxy domain list; only on explicit user request |
Per-publisher retrieval routes: skills/snu-library-scholarly-access/references/publisher-routes.md. Report layout and checks: references/report-pdf.md in the same skill.
A spent OpenAlex daily quota stops a lineage command with exit code 3; caches are kept, so rerunning resumes.
Evidence honesty rules
Journal first. Read the version of record before the arXiv/preprint; label every record with the version actually read and why a preprint was used.
Never bypass bot checks. Publisher challenges are reported as
status: "blocked",reason: "bot_challenge", separately fromlogin_required; they are never solved or bypassed. Unchecked PDF endpoints are still tried.Subscription access is not AI permission. Elsevier (ScienceDirect) and Springer Nature subscription text must not be sent to an external AI even when the SNU session serves it: use an open copy or report the limitation. See the SNU TDM page.
Labels are derived, not typed. The read-depth label comes from
accessandread_modeviaevidence labels. Introduction or reference-list mentions never establish that a study used a method; retrieval failure never implies irrelevance; model-written web summaries are locators, not evidence.Source quality is visible. Records carry
venue_type,indexingandevidence_role; verdicts rest on peer-reviewed full text, and conference abstracts, preprints and abstract-only items are shown as preliminary evidence (예비 근거).Korean settings. Questions about Korea add a KCI / RISS / DBpia / ScienceON route, KCI-listed journals first; authors in Hangul with the paper's romanisation.
Scanned PDFs need OCR or visual review.
pages_scannedreports search coverage, not pages fully reviewed.
Models and cost
Every sub-agent gets its role's model and effort explicitly, from skills/snu-library-scholarly-access/references/research-models.md (overridable in research-pilot.md).
Role | Does | Claude Code | Effort (Default / Deep) |
| plan, screen, choose versions, gap matrix, synthesize | the session (Opus recommended) |
|
| Tier 2–3 full-text reading, closest prior work |
|
|
| cards, novelty verdicts, feasibility, critique, inclusion |
|
|
| report from checked records |
|
|
| find candidates, fetch pages, check empty cells |
|
|
Codex sets only reasoning_effort per role. Small fast models are never used for reading or judgments that enter a report.
Cost. cost estimate gives tokens per stage and role for a playbook and preset, with the reduced counts that fit a cap; cost record appends measured stage tokens to <research root>/.cost/ledger.jsonl; cost report compares estimate and measurement and shows the calibration later estimates use.
Prompt caching. Caching matches identical prefixes only, so every reader brief opens with the unchanged output of pack reader. Launch order is staggered: send the first batch, wait for its first tool call, then launch the rest so they read the cache. Results come back through files, not the main context. Because every main-agent call re-reads the whole session, start runs in a fresh session; the pilot offers a handoff when the context passes ~100k tokens.
Verify
.venv/bin/python -m unittest discover -s tests -v
.venv/bin/python -m pip checkCI uses synthetic fixtures and needs no SNU credentials. Before a GitHub upload, inspect staged files and history; exclude sessions, credentials, PDFs, reports and generated packages. Runtime data stays local even when the source repository is private.
Provenance and licence
Based on https://github.com/onetwothr1/SNU-library-scholarly-access-skill at cad5e9a5e9ab259642b5dee13d6022427e56bd03. The upstream README declares MIT. The original MIT notice, including its copyright attribution, is retained in LICENSE, recovered verbatim from upstream commit b5d7927 (it was absent at the review revision). No ownership claim is made over upstream code.
Adapted designs (MIT):
research-topic-scoutcard fields and the readiness-gate idea: Galaxy-Dawn/claude-scholarresearch-ideation.research-pilotstructure (entry skill, playbooks ending in a required-reply list, shared worker rules, one model sheet): michael-denyer/pstack-claude.
Bot-check detection markers are adapted from SleepingDawn/paper_download.
Design references (consulted 2026-11-17):
https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/literature-review
https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/research-lookup
https://github.com/anthropics/skills/tree/main/skills/pdf (consulted 2026-11-18; reportlab Platypus rendering, sub/superscript markup rule)
https://github.com/anthropics/skills/tree/main/skills/theme-factory (consulted 2026-11-18; one palette and font pairing, contrast first)
Their workflow and rendering patterns informed original code and instructions here; their code and text were not vendored.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Legitimate full-text access to scholarly articles for your AI, by DOI, with provenance.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Academic literature search, retrieval, and private library management on top of OpenAlex.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables searching for scientific papers across OpenAlex, CrossRef, and Unpaywall, and downloading open-access PDFs directly through Claude Desktop.51MIT
- FlicenseNot gradedqualityAmaintenanceEnables Claude and other MCP-compatible clients to query Semantic Scholar and Crossref for scholarly works, retrieving metadata, abstracts, TL;DR summaries, and full-text links when available.-
- FlicenseNot gradedqualityAmaintenanceEnables Claude and other MCP-compatible clients to search for academic papers and fetch detailed metadata, abstracts, and available full text from Semantic Scholar and Crossref.-
- FlicenseNot gradedqualityAmaintenanceEnables Claude Desktop and compatible AI clients to search academic papers and retrieve metadata, abstracts, and available full text from Semantic Scholar and Crossref.-