Skip to main content
Glama
scholarfetch

scholarfetch

by laibniz

ScholarFetch

ScholarFetch Logo

ScholarFetch is a multi-engine academic research environment for:

  • terminal-first literature exploration

  • MCP-powered agent workflows

  • building curated reading lists and exportable research corpora

It combines:

  • a rich interactive CLI for humans

  • a classic MCP server (stdio)

  • a FastMCP server (stdio, sse, streamable-http)

The core idea is simple: start from keywords, DOI, or authors, traverse papers and references, inspect abstracts and full text, save what matters, then export a compact corpus for synthesis.

What ScholarFetch Does

  • Searches across multiple scholarly engines in parallel

  • Resolves ambiguous author identities and expands author paper lists

  • Traverses references as first-class research nodes

  • Retrieves abstracts and machine-readable full text when available

  • Tracks a saved paper set during an interactive research session

  • Exports citations, abstracts, BibTeX, or full-text corpora

  • Exposes the same research workflow to MCP agents

  • Maintains stateful saved-paper collections inside one MCP session

Related MCP server: Academic Paper Search MCP Server

Engines

  • Elsevier (Scopus / Abstract / Article retrieval)

  • OpenAlex

  • Crossref

  • arXiv

  • Europe PMC

  • Springer Nature (metadata + open access)

  • Semantic Scholar (DOI enrichment path)

Installation

git clone https://github.com/laibniz/scholarfetch.git
cd scholarfetch
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
scholarfetch

Console scripts:

  • scholarfetch

  • scholarfetch-mcp

  • scholarfetch-fastmcp

Alternative:

python3 scholarfetch.py

Credentials

ScholarFetch loads provider credentials server-side / client-side from environment.

Default env file:

  • .scholarfetch.env

Typical variables:

ELSEVIER_API_KEY=...
ELSEVIER_INSTTOKEN=...
SPRINGER_META_API_KEY=...
SPRINGER_OPENACCESS_API_KEY=...

Notes:

  • ELSEVIER_INSTTOKEN is optional

  • provider entitlements and rate limits still apply

  • MCP tools do not accept API keys in tool arguments

CLI Research Workflow

ScholarFetch CLI is designed for research traversal.

Typical flow:

  1. Start from a topic, DOI, or author.

  2. Inspect papers.

  3. Read abstracts or full text.

  4. Expand references.

  5. Jump to related authors.

  6. Save promising papers.

  7. Export a corpus for downstream work.

Example:

/search graph neural networks
/author Albert Einstein
/papers 1 has:abstract
/article 1
/refs 1
/saved
/export fulltext dummy corpus.txt

CLI Features

  • Interactive picker with tree navigation

  • Breadcrumbs for current research position

  • Action bar for OPEN, ABSTRACT, TEXT, REFS, and AUTHOR

  • Backspace to go to parent node

  • Esc to return to prompt

  • S to save a paper from paper lists or reference lists

  • X to remove from the saved list

  • AUTHOR action from a paper now lets you select:

    • a single author

    • ALL AUTHORS

  • Reference lists behave like paper lists:

    • open

    • abstract

    • text

    • refs

    • author

  • Automatic paper availability hints:

    • abstract availability

    • full-text availability

  • Progress feedback for expensive transitions

  • Interruptible reference preview building with partial results kept

Core CLI Commands

  • /search <keywords|doi|person name>

  • /author <name>

  • /papers <author name|index> [filters]

  • /doi <doi>

  • /open <index>

  • /abstract <doi|index>

  • /article <doi|index>

  • /refs <doi|index>

  • /ref <index>

  • /saved

  • /export [format style path ...]

  • /import [path]

  • /pick [mode]

  • /config

  • /engines

  • /help

Paper Filters

Use with /papers:

  • year>=YYYY, year<=YYYY, year=YYYY

  • has:abstract, has:doi, has:pdf, has:fulltext

  • venue:<text>, title:<text>, doi:<text>

Examples:

/papers 1 year>=2020 has:abstract
/papers 1 has:fulltext
/papers andrea de mauro venue:marketing

Export Modes

ScholarFetch supports four export modes from the saved paper set.

  • bib

    • BibTeX for citation managers and bibliographic tooling

  • citations

    • citation-only export in harvard, apa, or ieee

  • abstracts

    • metadata + abstract for each saved paper

  • fulltext

    • metadata + abstract + full text when available

    • optional inclusion of references

This makes ScholarFetch useful as a corpus builder for downstream synthesis agents.

MCP Server

ScholarFetch exposes the same research model through MCP.

Modes:

  • Classic MCP (stdio): python3 scholarfetch_mcp.py

  • FastMCP stdio: python3 scholarfetch_fastmcp.py --transport stdio

  • FastMCP SSE: python3 scholarfetch_fastmcp.py --transport sse --host 127.0.0.1 --port 8000

  • FastMCP streamable HTTP: python3 scholarfetch_fastmcp.py --transport streamable-http --host 127.0.0.1 --port 8000 --http-path /mcp

Validation:

python3 scholarfetch_mcp.py --self-test
python3 scholarfetch_fastmcp.py --self-test

Public demo endpoints:

MCP Research Model

The MCP server is designed for agent workflows, not only one-off calls.

An agent can:

  1. Search papers

  2. Resolve authors

  3. Expand to author papers

  4. Read abstracts / full text

  5. Expand references

  6. Save promising papers into a named in-memory reading list

  7. Export the reading list as:

    • citations

    • abstracts

    • BibTeX

    • full-text corpus

This lets an agent build a focused research set inside one MCP session and then hand off an export artifact to another synthesis step.

See MCP_SERVER.md for the detailed tool model.

Repository Files

  • scholarfetch.py: CLI entrypoint

  • scholarfetch_cli.py: core CLI + retrieval logic

  • scholarfetch_mcp.py: classic MCP server

  • scholarfetch_fastmcp.py: FastMCP server

  • MCP_SERVER.md: MCP usage guide

  • AGENTS.md: agent-facing workflow guide

  • SKILL.md: structured research skill guide

  • SKILLS.md: index for agent-facing skill docs

  • CONTRIBUTING.md: contributor notes

For Agents

If you are running ScholarFetch from an MCP-compatible system, read:

These documents explain how to use ScholarFetch as a literature-research environment rather than as a flat search API.

Contributing

See CONTRIBUTING.md.

Security

See SECURITY.md.

License

MIT License. See LICENSE.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    • Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.

      https://latex-tools.online/mcp
    • Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.

      https://mcp.jmrp.io/libgen
    • Rivul is a free, read-only remote MCP server for searching scholarly literature. It runs semantic search over more than 300 million paper records from a dated OpenAlex snapshot, so an agent can find papers by meaning rather than exact keywords, then open the full record for any result. Tools: - search_papers: semantic search with optional filters for publication year range, minimum citation count, open access only, topic and field. Sort by relevance, most cited, newest or oldest. - get_paper_details: the full record for one work by its OpenAlex ID: title, every author, venue, work type, topic, field, publication date, citation count, DOI and open-access links. - usage_status: the workspace's MCP usage for the current day. Results come only from the index, never from a model. Each result carries a stable OpenAlex ID so the source can be checked, and every response states the snapshot date. Useful for literature reviews, scoping reviews, finding highly cited or open-access papers on a topic, citation chasing, and checking that a cited paper exists. Free for every account, with no plans or payment. Sign in with Google through OAuth 2.1 (PKCE, dynamic client registration), or use an MCP key from rivul.ai. Endpoint: https://rivul.ai/mcp (Streamable HTTP). Setup and docs: https://rivul.ai/features/atlas

      https://rivul.ai/mcp
    • Academic literature search, retrieval, and private library management on top of OpenAlex.

      https://app.papertext.app/mcp

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables LLMs to search academic literature in real time across Semantic Scholar and Crossref, and to retrieve paper metadata, abstracts, TL;DR summaries, and full-text content when available. It exposes these capabilities as MCP tools for clients such as Claude Desktop, returning structured responses per the MCP specification.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables LLMs to search for academic papers and retrieve detailed metadata, abstracts, and full-text content from Semantic Scholar and Crossref. Supports keyword queries, topic searches with date filters, and lookups by DOI or paper ID through MCP tools.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables LLMs and compatible clients to search academic papers, retrieve detailed metadata and abstracts, access full-text content when available, and perform topic searches with optional date filters via MCP tools.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables users to search academic papers, analyze citation networks, retrieve author details and publication histories, and get paper recommendations through a unified MCP interface.
      -