Skip to main content

Scholar MCP

io.github.pvliesdonk/scholar-mcp

v3.4.0Updated Nov 22, 2026stdio · Dockerstdio · PyPI

Scholarly papers, patents, books, standards and PDF conversion

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add scholar-mcp -e SCHOLAR_MCP_KV_STORE_URL=file:///data/state -e SCHOLAR_MCP_LOG_LEVEL=INFO -e SCHOLAR_MCP_READ_ONLY=true -e SCHOLAR_MCP_VLM_MODEL=gpt-4o -e SCHOLAR_MCP_CACHE_DIR=/data/scholar-mcp -e SCHOLAR_MCP_PDF_FETCH_ALLOW_PRIVATE=false -e SCHOLAR_MCP_JOBS_SOFT_DEADLINE_S=25.0 -e SCHOLAR_MCP_JOBS_RESULT_TTL_S=3600.0 -e SCHOLAR_MCP_JOBS_MAX_PER_SUBJECT=256 -e SCHOLAR_MCP_TRANSFER_TTL_DEFAULT_S=3600.0 -e SCHOLAR_MCP_TRANSFER_TTL_MAX_S=86400.0 -e SCHOLAR_MCP_TRANSFER_GRACE_TTL_S=60.0 -e SCHOLAR_MCP_TRANSFER_LEASE_S=60.0 -e SCHOLAR_MCP_TRANSFER_MAX_UPLOAD_BYTES=104857600 -- uvx pvliesdonk-scholar-mcp==3.4.0

Configuration

53 settings.

  • SCHOLAR_GITHUB_TOKEN
    Env var· optional· secret
    GitHub token used to raise rate limits when fetching standards documents from GitHub. Optional; unauthenticated requests work at reduced limits.
  • SCHOLAR_MCP_S2_API_KEY
    Env var· optional· secret
    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_VLM_API_KEY
    Env var· optional· secret
    API key for the VLM endpoint.
  • SCHOLAR_MCP_OPENALEX_API_KEY
    Env var· optional· secret
    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.
  • SCHOLAR_MCP_EPO_CONSUMER_SECRET
    Env var· optional· secret
    EPO Open Patent Services consumer secret. Optional; patent tools are hidden when unset.
  • SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY
    Env var· optional· secret
    Google Books API key. Optional; book tools work unauthenticated at reduced rate limits.
Show 47 more
  • SCHOLAR_MCP_BEARER_TOKEN
    Env var· optional· secret
    Single shared bearer token; enables bearer auth unless `bearer_tokens_file` is set, which takes precedence.
  • SCHOLAR_MCP_OIDC_CLIENT_SECRET
    Env var· optional· secret
    OIDC client secret registered with the provider.
  • SCHOLAR_MCP_OIDC_JWT_SIGNING_KEY
    Env var· optional· secret
    Signing key for issued tokens; used in oidc-proxy mode only. When unset, the key is derived deterministically from `oidc_client_secret`, so tokens survive a restart. Rotating that secret then invalidates every issued token. Set this explicitly to decouple token validity from secret rotation. Generate with `openssl rand -hex 32`.Default: derived
  • SCHOLAR_MCP_KV_STORE_URL
    Env var· optional
    Persistent-state backend URL shared by every pvl-core subsystem that needs state. `memory://` is in-process and lost on restart; `file:///path` persists on one server; `redis://`, `dynamodb://` and `mongodb://` each need their matching extra. When unset, defaults to `file:///data/state` (the volume family Docker images mount), or to `memory://` (with a warning) on a host where that directory is not usable.Default: file:///data/state
  • SCHOLAR_MCP_TOOLS_ALLOW
    Env var· optional
    Comma-separated explicit tool names this instance exposes; every other tool is hidden from listings and cannot be invoked. Names matching no registered tool are inert. Mutually exclusive with `tools_deny`. Takes effect through `apply_tool_visibility`.
  • SCHOLAR_MCP_TOOLS_DENY
    Env var· optional
    Comma-separated explicit tool names hidden from this instance (absent from listings, cannot be invoked). Names matching no registered tool are inert. Mutually exclusive with `tools_allow`. Takes effect through `apply_tool_visibility`.
  • SCHOLAR_MCP_SERVER_NAME
    Env var· optional
    Rename this server instance; defaults to the project name.
  • SCHOLAR_MCP_INSTANCE_DESCRIPTION
    Env var· optional
    Concise routing context that distinguishes this deployment's material or responsibility.
  • SCHOLAR_MCP_INSTRUCTIONS_EXTRA
    Env var· optional
    Deployment-specific behavioral policy added to the generated MCP instructions.
  • SCHOLAR_MCP_INSTRUCTIONS
    Env var· optional
    Legacy: replaces all generated MCP instructions (deprecated; use _INSTANCE_DESCRIPTION for routing and _INSTRUCTIONS_EXTRA for policy).
  • SCHOLAR_MCP_LOG_LEVEL
    Env var· optional
    Log level for every logger in the process, FastMCP's included (DEBUG / INFO / WARNING / ERROR / CRITICAL). The -v CLI flag overrides to DEBUG. The unprefixed FASTMCP_LOG_LEVEL still works for one major version and logs a deprecation warning.Default: INFO
  • SCHOLAR_MCP_LOG_FORMAT
    Env var· optional
    Log rendering. rich is one colour event key=value line per record, for a terminal; json is one JSON object per record, for a collector. Unset picks rich when stderr is a terminal and json everywhere else, so a container or journald gets JSON with no configuration.
  • SCHOLAR_MCP_READ_ONLY
    Env var· optional
    When true, write-tagged tools (PDF download and conversion cache writes) are hidden. Set false to enable them.Default: true
  • SCHOLAR_MCP_DOCLING_URL
    Env var· optional
    Base URL of a running docling-serve instance for PDF conversion (e.g. http://localhost:5001). When unset, PDF conversion tools return an error.
  • SCHOLAR_MCP_VLM_API_URL
    Env var· optional
    OpenAI-compatible VLM endpoint for formula and figure enrichment during PDF conversion.
  • SCHOLAR_MCP_VLM_MODEL
    Env var· optional
    Model name to use with the VLM endpoint.Default: gpt-4o
  • SCHOLAR_MCP_VLM_PARAMS
    Env var· optional
    JSON object of extra request parameters for every VLM call, overriding the defaults, for a model that needs them (e.g. {"temperature": 1}).
  • SCHOLAR_MCP_CACHE_DIR
    Env var· optional
    Directory for the SQLite cache database (cache.db) and downloaded PDFs (pdfs/, md/).Default: /data/scholar-mcp
  • SCHOLAR_MCP_CONTACT_EMAIL
    Env var· optional
    Contact email for the OpenAlex polite pool (improves rate limits). Also enables Unpaywall lookups as a PDF fallback source.
  • SCHOLAR_MCP_EPO_CONSUMER_KEY
    Env var· optional
    EPO Open Patent Services consumer key. Optional; patent tools are hidden when unset. Register at https://developers.epo.org/user/register.
  • SCHOLAR_MCP_ACCESS_LINKS
    Env var· optional
    Links to a paper through your library, offered when no PDF can be fetched and with each paper lookup: a JSON list of objects with a label and an http(s) URL template, in priority order. Placeholders: {doi}, {doi_url} (the encoded doi.org URL, for wrapping), {openurl} (OpenURL 1.0), {openurl_0_1} and {openurl_hybrid}. Unset means one doi.org link; an empty list turns links off. The server never opens these links. See the PDF conversion guide for examples.
  • SCHOLAR_MCP_PDF_FETCH_ALLOW_PRIVATE
    Env var· optional
    When false (the default), a PDF download is refused if the host, or a redirect target, resolves to a loopback, private, link-local or other non-public address. This covers URLs the caller supplies and URLs taken from paper metadata. Set true to allow hosts on the server's own network, such as an intranet repository.Default: false
  • SCHOLAR_MCP_JOBS_SOFT_DEADLINE_S
    Env var· optional
    Seconds a long-running tool call may run in the foreground before it is promoted to a background job and a job handle is returned instead.Default: 25.0
  • SCHOLAR_MCP_JOBS_RESULT_TTL_S
    Env var· optional
    Seconds a background-job record (working or finished) is retained for polling before it expires from the store.Default: 3600.0
  • SCHOLAR_MCP_JOBS_MAX_PER_SUBJECT
    Env var· optional
    Maximum live background jobs per calling subject; further promotions are rejected until older records expire.Default: 256
  • SCHOLAR_MCP_TRANSFER_TTL_DEFAULT_S
    Env var· optional
    Link lifetime in seconds when the caller requests no explicit TTL.Default: 3600.0
  • SCHOLAR_MCP_TRANSFER_TTL_MAX_S
    Env var· optional
    Ceiling in seconds a caller-requested link TTL is clamped to.Default: 86400.0
  • SCHOLAR_MCP_TRANSFER_GRACE_TTL_S
    Env var· optional
    Post-success grace window in seconds: a served token's TTL shrinks to this so a stalled transfer can retry within it.Default: 60.0
  • SCHOLAR_MCP_TRANSFER_LEASE_S
    Env var· optional
    Crashed-handler reclaim window in seconds for an in-flight reservation.Default: 60.0
  • SCHOLAR_MCP_TRANSFER_MAX_UPLOAD_BYTES
    Env var· optional
    Maximum size in bytes of a single upload.Default: 104857600
  • SCHOLAR_MCP_SHUTDOWN_GRACE_S
    Env var· optional
    Seconds SIGTERM may spend draining in-flight requests before the HTTP server exits. Keep it at or below the termination grace period the orchestrator allows. `0` drops in-flight requests immediately.Default: 3
  • SCHOLAR_MCP_BASE_URL
    Env var· optional
    Public base URL of the deployed server, for example `https://mcp.example.com`. Required for OIDC. Also the fallback source of the MCP Apps domain when `app_domain` is unset.
  • SCHOLAR_MCP_OIDC_CONFIG_URL
    Env var· optional
    OIDC discovery document URL, for example `https://auth.example.com/.well-known/openid-configuration`.
  • SCHOLAR_MCP_OIDC_CLIENT_ID
    Env var· optional
    OIDC client identifier registered with the provider.
  • SCHOLAR_MCP_OIDC_AUDIENCE
    Env var· optional
    Expected `aud` claim; tokens issued for another audience are rejected.
  • SCHOLAR_MCP_OIDC_REQUIRED_SCOPES
    Env var· optional
    Scopes a caller must present, space- or comma-separated. Defaults to `openid` in oidc-proxy mode.Default: openid
  • SCHOLAR_MCP_OIDC_ADVERTISED_SCOPES
    Env var· optional
    Scopes advertised to MCP clients in protected-resource metadata, space- or comma-separated. Overrides the default `openid offline_access`; `oidc_required_scopes` is always added on top. Set this when the registered client is not permitted `offline_access`, or to have clients request extra claim scopes (such as `groups`) without also requiring them in every token.Default: openid offline_access
  • SCHOLAR_MCP_OIDC_VERIFY_ACCESS_TOKEN
    Env var· optional
    Validate the access token instead of the id token.Default: false
  • SCHOLAR_MCP_APP_DOMAIN
    Env var· optional
    MCP Apps iframe domain, used for CSP sandboxing. Overrides the host derived from `base_url`.
  • SCHOLAR_MCP_AUTH_MODE
    Env var· optional
    Explicit auth-mode override, accepting `remote` or `oidc-proxy` (case- and whitespace-insensitive). When unset the mode is auto-detected from which auth variables are set; the override exists because having all four OIDC variables set is ambiguous between those two modes. Other values are ignored with a warning.
  • SCHOLAR_MCP_BEARER_TOKENS_FILE
    Env var· optional
    Path to a TOML file mapping bearer tokens to subjects; overrides the single-token `bearer_token` mode.
  • SCHOLAR_MCP_BEARER_DEFAULT_SUBJECT
    Env var· optional
    Subject assigned to the single-token bearer mode; ignored when `bearer_tokens_file` is set, since mapped mode carries per-token subjects.Default: bearer-anon
  • SCHOLAR_MCP_HTTP_PATH
    Env var· optional
    Mount path for the MCP endpoint; the health routes derive their prefix from it.Default: /mcp
  • SCHOLAR_MCP_HEALTH_DETAIL
    Env var· optional
    How much the unauthenticated /health and /health/ready bodies say: status, standard (adds name, version and per-check verdicts), or full (adds redacted reasons; trusted networks only).Default: standard
  • PUID
    Env var· optional
    Run the server process as this UID; the container entrypoint reassigns ownership of writable paths to match.Default: 1000
  • PGID
    Env var· optional
    Run the server process as this GID; pair with PUID to match the owner of a mounted volume.Default: 1000
  • --port
    Argument· optional
    Port for the HTTP transportDefault: 8000

Listed in the official MCP Registry since Nov 22, 2026. Mirrored daily; last checked Nov 26, 2026.