Skip to main content
Glama
scholar-mcp

scholar-mcp

by pvliesdonk

Scholar MCP

CI Quality Gate Status Coverage Reliability Rating Security Rating PyPI Python License Docker Docs llms.txt Template

Scholarly papers, patents, books, standards and PDF conversion

Documentation | Config wizard | PyPI | Docker

30 tools, organised by scholarly source type.

Source domains

  • Papers: full-text search with year/venue/field/citation filters; single-paper lookup by DOI, S2 ID, arXiv ID, ACM ID, or PubMed ID; author profile and name search; forward citations, backward references, BFS graph traversal, shortest-path bridge discovery; recommendations from positive/negative examples; BibTeX/CSL-JSON/RIS citation generation with OpenAlex venue enrichment.

  • Patents: search across 100+ patent offices via EPO OPS with CPC/applicant/inventor/jurisdiction filters; bibliographic, claims, description, family, legal, and citations sections, with claims and description as Markdown and the description paged; NPL-to-paper resolution via Semantic Scholar (by DOI or arXiv ID, with unconfirmed title-matched candidates for the rest) and NPL-to-book resolution by ISBN via Open Library and paper-to-patent citation discovery. Patents cite like papers: generate_citations emits biblatex @patent, CSL-JSON patent and RIS PAT entries. EPO credentials are optional; other domains work without them.

  • Books: Open Library search by title/author/keywords, no API key required; lookup by ISBN-10/13 or by Open Library work/edition ID; subject-based recommendations sorted by popularity; Google Books excerpts and preview links; WorldCat permalinks for library discovery; cover image caching. Papers with an ISBN in externalIds are automatically enriched with publisher, edition, cover URL, and subject data from Open Library.

  • Standards: identifier resolution, search, and metadata retrieval for NIST, IETF, W3C, and ETSI standards, with optional full-text fetch and Markdown conversion via docling. Tier 2 ISO, IEC, IEEE, Common Criteria (CC), and CEN/CENELEC metadata (including ISO/IEC/IEEE joint standards and the CC ↔ ISO/IEC 15408 cross-link) is synced locally via sync-standards. ISO, IEC, IEEE have a live-fetch fallback for unsynced identifiers; CC and CEN have no live API and require a sync first. Citations matching standards patterns (RFC, ISO, NIST SP, IEEE, EN, CC) are automatically enriched with structured standard_metadata including identifier, title, body, status, and full-text URL when available (see docs/use/standards.md).

Cross-cutting

  • Enrichment pipeline: phased enrichment from multiple sources: OpenAlex (OA status, affiliations, funders, concepts), CrossRef (publisher, page ranges, container titles, and chapter metadata with the parent book's title and editors for book chapters), Google Books (preview links, excerpts), and Open Library (book metadata). Runs automatically on paper and book results.

  • PDF conversion: download open-access PDFs and convert to Markdown via docling-serve, with optional VLM enrichment for formulas and figures; automatic fallback to ArXiv, PubMed Central, and Unpaywall when Semantic Scholar has no OA link; direct URL download for PDFs found elsewhere; converted text is paged so large documents fit in MCP responses.

  • Uploads: a one-time upload link brings a PDF you downloaded yourself into the server's cache over HTTP.

  • Intelligent caching: SQLite-backed cache with per-table TTLs (30 days for papers/authors, 7 days for citations/references) and identifier aliasing.

Coverage by domain

Per-domain depth is uneven. Papers currently have the richest tool surface (citation graph, recommendations, cross-referencing to all three other domains); standards are the leanest. That reflects public data availability, not a value hierarchy: writing a paper typically needs all four source types for citations and prior art. Parity work is tracked in GitHub issues and milestones; the roadmap shows intent, not a completeness commitment.

Does it fit?

What the server can reach, what it changes and who gets in is set out in the security model; the block below says who it serves and where it stops.

With this server mounted in an MCP client (Claude, etc.), you can:

  • Survey a field: "Find the 20 most-cited papers on graph neural networks from 2020 to 2024 and draft a literature review outline." Composes search_papers + get_citations + enrich_paper.

  • Trace a citation path: "What's the shortest citation path from 'Attention is All You Need' to 'RLHF for dialogue agents'?" Uses find_bridge_papers + get_citation_graph.

  • Cross-reference prior art: "For this patent family, list academic papers it cites and any books or standards that show up in the description." Composes get_patent + batch_resolve + standards/book enrichment.

  • Generate a bibliography: "Emit BibTeX for these 30 DOIs with OpenAlex venue data." Uses generate_citations.

  • Look up a standard: "What's the latest status of RFC 9000, and fetch the Markdown full text." Uses resolve_standard_identifier + get_standard.

It reaches public scholarly metadata and open-access full text; it doesn't get past paywalls, and paywalled standards (ISO, IEC, IEEE) come back as metadata only. Patent tools need your own EPO OPS credentials.

Related MCP server: Academic Paper MCP HTTP/SSE Server

Quick start

Pick the client you use. Each line installs the released version; the Get started tutorials carry on from there.

Claude Desktop. Download the .mcpb bundle from the releases page and open it with Claude Desktop (or Settings › Extensions › Advanced settings › Install Extension…). Claude Desktop asks for the required settings itself. Tutorial.

Claude Code. Two commands inside Claude Code; the second asks for a scope. Tutorial.

/plugin marketplace add pvliesdonk/claude-plugins
/plugin install scholar-mcp@pvliesdonk

A client that runs a command (stdio). To register it in Claude Code, see the Claude Code tutorial.

uv tool install "pvliesdonk-scholar-mcp"
scholar-mcp serve

A server for remote clients (streamable HTTP). A remote server connects the clients.

docker run --rm -p 8000:8000 --env-file .env ghcr.io/pvliesdonk/scholar-mcp:latest

A compose.yml ships at the repository root and runs as-is: copy .env.example to .env, then docker compose up -d. Deploy covers authentication, OIDC, a reverse proxy and system packages (.deb/.rpm on the releases page). The server answers /health and /health/ready outside the MCP mount, and its get_server_info tool reports the running version.

  • [all]: every production feature in one extra; the Linux packages and the Claude Desktop bundle install it.

  • [debug]: adds the remote debugger (debugpy); see Remote debugging.

The base package already carries FastMCP through fastmcp-pvl-core, so pip install pvliesdonk-scholar-mcp is enough to run scholar-mcp serve. The older [mcp] extra is kept so existing install commands keep working; it adds nothing beyond the base package.

Configuration

Everything is configured through environment variables with the SCHOLAR_MCP_ prefix. The ones most installs set:

Variable

Default

Required

Description

SCHOLAR_MCP_READ_ONLY

true

No

When true, write-tagged tools (PDF download and conversion cache writes) are hidden. Set false to enable them.

SCHOLAR_MCP_S2_API_KEY

(none)

No

Semantic Scholar API key. Optional but strongly recommended: a key has an introductory 1 req/s allowance; anonymous users share capacity and may be throttled. Request one at https://www.semanticscholar.org/product/api#api-key-form.

SCHOLAR_MCP_DOCLING_URL

(none)

No

Base URL of a running docling-serve instance for PDF conversion (such as http://localhost:5001). When unset, PDF conversion tools return an error.

SCHOLAR_MCP_CACHE_DIR

/data/scholar-mcp

No

Directory for the SQLite cache database (cache.db) and downloaded PDFs (pdfs/, md/).

SCHOLAR_MCP_CONTACT_EMAIL

(none)

No

Contact email for the OpenAlex polite pool (improves rate limits). Also enables Unpaywall lookups as a PDF fallback source.

SCHOLAR_MCP_OPENALEX_API_KEY

(none)

No

OpenAlex API key, sent as a Bearer token to OpenAlex only. Optional. Without a key, OpenAlex allows a smaller daily budget and fewer requests per second. Create one at https://openalex.org/settings/api-key.

Every variable the server reads, the shared ones included, is in the configuration reference; .env.example lists the same surface in copy-paste form, and the config wizard writes one for your deployment.

Documentation

  • Security model: what the server can reach, what it changes and who gets in.

  • Get started: a first success with your client.

  • Deploy: Docker, authentication, OIDC, reverse proxy.

  • Use: the features, for real tasks.

  • Reference: configuration, tools, resources, prompts, command line.

  • Upgrade: release channels, and what an upgrade changes for your clients and your data.

  • Contribute: local development, secrets, where a fix belongs; CONTRIBUTING.md and SECURITY.md at the root.

Design decisions

  • Domain logic apart from the MCP layer. The upstream clients (Semantic Scholar, OpenAlex, EPO, Open Library, standards bodies), the enrichment pipeline and the cache don't import FastMCP; the tool modules are thin wrappers over them.

  • Async clients, blocking libraries off the event loop. The HTTP clients and the SQLite cache are async. The blocking pieces (the python-epo-ops-client library, file I/O around PDF download and conversion, the Relaton sync) run through asyncio.to_thread().

  • SQLite cache with per-table TTLs and identifier aliases. Papers / authors last 30 days, citations / references 7 days. DOI ↔ S2 ID ↔ arXiv ID aliasing survives across cache clears so repeated enrichment hits the same row.

  • Read-only by default. Write-tagged tools (PDF download/convert, patent PDF) are hidden unless SCHOLAR_MCP_READ_ONLY=false. Safer default for first-run.

  • Slow work becomes a background job. Every tool whose work can run long uses the fastmcp-pvl-core jobs layer. A call that beats SCHOLAR_MCP_JOBS_SOFT_DEADLINE_S returns its result directly; a slower one returns a handle to poll with get_job_result. S2-backed tools also return a reasoned handle as soon as Semantic Scholar throttles them. The work continues from where it paused, and a cache hit still answers directly.

  • EPO throttling is waited out, not queued. The traffic light is consulted before every request and cached for a minute, so a retry sooner than that would re-read the cache rather than ask again. Each backoff outlasts the cache; an exhausted daily quota is reported immediately instead, since it will not clear today.

  • Tier 2 standards sync out-of-band. ISO/IEC/IEEE/CC/CEN catalogues come from community Relaton dumps via scholar-mcp sync-standards, not live at runtime, which avoids paywalled-HTML scraping and keeps tool calls fast.

Available Tools

21 tools
batch_resolveBatch Resolve IdentifiersA
Read-only

Resolve a list of paper, patent, or book identifiers to full records.

Uses the S2 batch endpoint for paper IDs/DOIs, with OpenAlex fallback. An OpenAlex-sourced paper ("source": "openalex") has the same keys as an S2 one for the requested fields, with paperId null. Patent numbers (such as EP1234567A1) are auto-detected and resolved via the EPO OPS API when configured. ISBNs (prefixed ISBN:) are resolved via Open Library.

Identifiers fan out across three upstream sources, so a large batch runs long and is then handed back as a job handle to poll with get_job_result rather than the records themselves.

Inputs: identifiers (required), fields. Returns: object

enrich_paperEnrich PaperA
Read-only

Fetch OpenAlex metadata to supplement Semantic Scholar data.

Resolves the paper's DOI from S2, then queries OpenAlex for the requested enrichment fields. Results are cached for 30 days.

A cached record answers immediately. Should the lookup run long it continues in the background and returns a job handle to poll with get_job_result.

Inputs: fields (required), identifier (required). Returns: object

find_bridge_papersFind Bridge PapersA
Read-only

Find the shortest citation path between two papers.

Uses BFS over the citation/reference graph. Uses cached citation and reference lists to minimise API calls.

The search walks outward one rate-limited request per node, so it commonly runs long and returns a job handle to poll with get_job_result rather than the path itself.

A Semantic Scholar throttle defers the same search. Poll the job handle; the resumed search does not mark the throttled request as partial.

A failed upstream request does not abort the search. When one happens, partial is true, failed_requests counts them, and a warning key explains what was not fetched. A partial {"found": false} is not evidence that no path exists, and a partial {"found": true} path is not guaranteed to be the shortest one.

Inputs: source_id (required), target_id (required), direction, max_depth. Returns: object

generate_citationsGenerate CitationsA
Read-only

Generate formatted citations for papers and patents.

Papers are resolved through Semantic Scholar and can be enriched with OpenAlex metadata. Patent numbers such as EP1234567A1 may be mixed into paper_ids; they are resolved through EPO and come out as patent entries. Entries keep the order of paper_ids. The output is BibTeX, CSL-JSON or RIS.

Enrichment fans out per paper, so a large batch can take a while; such a call answers with a job handle to poll using get_job_result instead of the citations themselves.

Inputs: paper_ids (required), enrich, citation_format. Returns: object

get_authorGet AuthorA
Read-only

Fetch author profile and publications, or search by name.

If identifier looks like a numeric S2 author ID, fetches the author directly. Otherwise performs a name search and returns up to 5 candidates for disambiguation.

A direct lookup returns one page of publications, limit long from offset; next_offset is present when more follow. Semantic Scholar can list fewer publications than paperCount, so the last page may end short of that count.

Answers directly in normal use. Should the call run long it continues in the background and returns a job handle to poll with get_job_result.

Inputs: identifier (required), limit, offset. Returns: object

get_bookGet BookA
Read-only

Fetch book metadata by ISBN or Open Library ID.

Open Library is politeness-rate-limited, so a busy moment may answer with a job handle to poll using get_job_result instead of the record itself.

Inputs: identifier (required), cover_size, download_cover. Returns: object

get_book_excerptGet Book ExcerptA
Read-only

Get a book excerpt and preview info from Google Books.

Returns the publisher description, text snippet, and a link to the Google Books preview page. Google Books does not expose full chapter text through its API; the excerpt is a publisher-provided summary and/or search snippet.

An error of not_found means Google Books answered and has no such volume: stop asking about that ISBN. A lookup that never got an answer says so instead, as rate_limited (with retryable) or upstream_error, and is worth retrying: the book may well exist.

Inputs: isbn (required). Returns: object

get_citation_graphGet Citation GraphA
Read-only

Traverse the citation graph from one or more seed papers.

Performs BFS up to depth hops. Returns nodes (paper records) and directed edges. Hard-caps at max_nodes to prevent runaway expansion.

Traversal makes one rate-limited request per node, so anything past a shallow, narrow graph runs long: expect a job handle to poll with get_job_result rather than the graph itself.

A Semantic Scholar throttle defers the same walk. Poll the job handle; the resumed graph does not mark the throttled request as partial.

A failed upstream request does not abort the walk. When one happens, stats.partial is true, stats.failed_requests counts them, and a warning key explains what was not fetched. Treat such a graph as incomplete: a missing node or edge is unknown, not absent. This is distinct from stats.truncated, which means max_nodes stopped an otherwise successful walk.

Inputs: seed_ids (required), depth, year_end, direction, +4 more. Returns: object

get_citationsGet CitationsA
Read-only

Fetch papers that cite the given paper (forward citations).

Returns at most 1000 citing papers per call; a larger limit is capped at 1000, so page further with offset.

Paging deeply to satisfy min_citations can run long; such a call continues in the background and returns a job handle to poll with get_job_result.

Inputs: identifier (required), limit, fields, offset, +4 more. Returns: object

get_job_resultGet Job ResultA
Read-only

Get the status of a background job started by a long-running tool on this server; returns status (working, completed or failed) with the result or error once it finishes. Job records expire, so fetch a finished job's result promptly. Scholar MCP promotes slow work to a background job. PDF download and docling conversion usually take 1-5 minutes, a busy EPO traffic light is waited out, citation formatting enriches one paper after another, and graph traversal makes one rate-limited request per node. Semantic Scholar throttling defers the same work immediately and adds a reason to the handle. Those calls commonly answer with a job_id rather than a result; a cache hit answers inline, with no job.

Inputs: job_id (required). Returns: object

get_paperGet PaperA
Read-only

Fetch full metadata for a single paper.

A cached paper answers immediately. Otherwise the record is fetched and enriched; should that run long it continues in the background and returns a job handle to poll with get_job_result.

Inputs: identifier (required). Returns: object

get_referencesGet ReferencesA
Read-only

Fetch papers referenced by the given paper (backward references).

Returns at most 1000 references per call; a larger limit is capped at 1000, so page further with offset.

Should the call run long it continues in the background and returns a job handle to poll with get_job_result.

Inputs: identifier (required), limit, fields, offset. Returns: object

get_server_infoServer InfoA
Read-only

Report the version information of scholar-mcp; returns server_name, server_version, core_version, the MCP protocol revisions supported and the revision and client of this connection, and, when configured, the upstream service's version. Use it when asked which version or build is running or which protocol revision is in use.

Inputs: no named parameters. Returns: object

get_standardGet StandardA
Read-only

Retrieve a standard by identifier (canonical or fuzzy).

Resolves fuzzy inputs (such as rfc9000 or nist 800-53 rev 5) to their canonical form before fetching. With fetch_full_text=True and docling configured, downloads and converts the full text.

With fetch_full_text=True the docling conversion takes minutes, so such a call returns a job handle to poll with get_job_result rather than the record itself. Without it, and on a cache hit, the record comes back directly.

A conversion that fails still returns the record, with the reason in full_text_error; full_text_url is there to fetch by hand. No full_text and no full_text_error means none was on offer, or docling is not configured. Neither is worth retrying.

not_found means the source answered and holds no such standard: stop asking about that identifier. A lookup that never got an answer says so instead, as rate_limited (with retryable) or upstream_error with the status and what went wrong. Both are worth retrying: the standard may well exist.

Full text is returned in pages of at most 20,000 characters. When next_offset is present, call this tool again with that value as text_offset. The cached conversion makes later pages inexpensive. Set max_chars to null only when the client can accept the complete document in one response.

Inputs: identifier (required), max_chars, text_offset, fetch_full_text. Returns: object

get_sync_statusGet Sync StatusA
Read-only

Report the last standards sync run for each standards body. Returns {"runs": [...]}, one row per body with body, upstream_ref, added, updated, unchanged, withdrawn, errors (non-fatal error strings from the latest run; empty on success), started_at and finished_at (Unix seconds). runs is empty when no sync has run yet.

Inputs: no named parameters. Returns: object

recommend_booksRecommend BooksA
Read-only

Recommend books for a subject via Open Library.

Uses the Open Library subject API to find popular books on a topic, sorted by edition count (a proxy for popularity).

Inputs: subject (required), limit. Returns: object

recommend_papersRecommend PapersA
Read-only

Recommend papers based on positive (and optionally negative) examples.

Returns at most 500 recommendations; a larger limit is capped at 500.

Answers directly in normal use. Should the call run long it continues in the background and returns a job handle to poll with get_job_result.

Inputs: positive_ids (required), limit, fields, negative_ids. Returns: object

resolve_standard_identifierResolve Standard IdentifierA
Read-only

Normalise a messy standard citation string to its canonical form.

Tries local patterns first, which is fast and offline. Falls back to querying source APIs when local patterns don't match. Returns all candidates when the input is ambiguous.

A cold catalogue makes this slow: the first call after a fresh install or a cleared cache downloads and parses each body's index, which runs well past the soft deadline. Such a call returns a job handle to poll with get_job_result rather than the result itself.

A warning beside a null record means the source never answered, so the standard may well exist and the canonical form is still usable. Only a null record with no warning means the sources looked and found nothing.

Inputs: raw (required). Returns: object

search_booksSearch BooksA
Read-only

Search for books by title, author, or free text.

Uses Open Library. Prefer title and author over query: they use dedicated indexes and return far better results.

Open Library is politeness-rate-limited, so a busy moment may answer with a job handle to poll using get_job_result instead of the results themselves.

Inputs: limit, query, title, author. Returns: object

search_papersSearch PapersA
Read-only

Search Semantic Scholar for papers matching a query.

Usually completes in a few seconds. Returns at most 100 papers per call; a larger limit is capped at 100, so page further with offset.

Answers directly in normal use. Should the call run long it continues in the background and returns a job handle to poll with get_job_result.

Inputs: query (required), sort, limit, venue, +6 more. Returns: object

search_standardsSearch StandardsA
Read-only

Search technical standards by identifier, title, or free text.

Searches NIST, IETF, W3C, and ETSI. Use body to restrict to one source body.

Results come ranked with the current edition first. An identifier equal to the query leads. The standard's own editions precede other documents whose number contains the query. Title-only matches come last.

A cold catalogue makes this slow: the first call after a fresh install or a cleared cache downloads and parses each body's index, which runs well past the soft deadline. Such a call returns a job handle to poll with get_job_result rather than the result itself.

Every answer states its own completeness. partial is always present, and when it is true failed_bodies names each source that did not answer and warning describes it. A partial answer is deliberately not an error: the results that did arrive are usable, and the bodies in failed_bodies may still hold matches worth asking for again.

Inputs: query (required), body, limit. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 21 tools

    Disambiguation4/5

    Most tools map cleanly to one resource or action, and the citation tools separate direction, traversal, and bridge-finding well. There is minor overlap among get_paper, enrich_paper, and batch_resolve, and between the graph-oriented tools, but the descriptions provide enough cues to choose.

    Naming Consistency5/5

    All names are lowercase snake_case and mostly follow predictable verb-led patterns such as get_, search_, recommend_, resolve_, and generate_. batch_resolve is a slight ordering deviation, but overall the naming is highly consistent.

    Tool Count4/5

    21 tools is on the heavy side, but the server spans papers, standards, books, background jobs, and server utilities, so most tools earn a place. There are no obvious duplicate clones, though some consolidation could reduce surface area.

    Completeness4/5

    Coverage is broad across paper search/metadata/citations/recommendations, standards resolution/search/fetch, and book search/metadata/excerpts. Gaps remain for dedicated patent search/retrieval and paper full-text/PDF access, but core research workflows are covered.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A MCP server for academic literature retrieval, aggregating multiple data sources like arXiv, Crossref, OpenAlex, PubMed, and Semantic Scholar to provide search, details, citations, trends, and recommendations.
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for AI-assisted research: paper ingestion, semantic search, citation graph traversal, cross-domain knowledge synthesis, and workflow automation.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A unified MCP server for academic paper discovery, citation exploration, and research intelligence workflows over multiple scientific knowledge sources.
      7
      1
      MIT