Scholar MCP
FastMCP server for scholarly papers, patents, books and standards with docling PDF conversion
Que pouvez-vous faire avec Scholar MCP ?
- 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.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
pvliesdonk-scholar-mcpclaude mcp add scholar-mcp -e 'SCHOLAR_MCP_KV_STORE_URL=file:///data/state' -e 'SCHOLAR_MCP_TOOLS_ALLOW=<SCHOLAR_MCP_TOOLS_ALLOW>' -e 'SCHOLAR_MCP_TOOLS_DENY=<SCHOLAR_MCP_TOOLS_DENY>' -e 'SCHOLAR_MCP_SERVER_NAME=<SCHOLAR_MCP_SERVER_NAME>' -e 'SCHOLAR_MCP_INSTANCE_DESCRIPTION=<SCHOLAR_MCP_INSTANCE_DESCRIPTION>' -e 'SCHOLAR_MCP_INSTRUCTIONS_EXTRA=<SCHOLAR_MCP_INSTRUCTIONS_EXTRA>' -e 'SCHOLAR_MCP_INSTRUCTIONS=<SCHOLAR_MCP_INSTRUCTIONS>' -e 'FASTMCP_LOG_LEVEL=INFO' -e 'FASTMCP_ENABLE_RICH_LOGGING=true' -e 'SCHOLAR_GITHUB_TOKEN=<your scholar_github_token>' -e 'SCHOLAR_MCP_READ_ONLY=true' -e 'SCHOLAR_MCP_S2_API_KEY=<your scholar_mcp_s2_api_key>' -e 'SCHOLAR_MCP_DOCLING_URL=<SCHOLAR_MCP_DOCLING_URL>' -e 'SCHOLAR_MCP_VLM_API_URL=<SCHOLAR_MCP_VLM_API_URL>' -e 'SCHOLAR_MCP_VLM_API_KEY=<your scholar_mcp_vlm_api_key>' -e 'SCHOLAR_MCP_VLM_MODEL=gpt-4o' -e 'SCHOLAR_MCP_CACHE_DIR=/data/scholar-mcp' -e 'SCHOLAR_MCP_CONTACT_EMAIL=<SCHOLAR_MCP_CONTACT_EMAIL>' -e 'SCHOLAR_MCP_EPO_CONSUMER_KEY=<SCHOLAR_MCP_EPO_CONSUMER_KEY>' -e 'SCHOLAR_MCP_EPO_CONSUMER_SECRET=<your scholar_mcp_epo_consumer_secret>' -e 'SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY=<your scholar_mcp_google_books_api_key>' -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' -- uvx pvliesdonk-scholar-mcp==2.0.0
{
"mcpServers": {
"scholar-mcp": {
"command": "uvx",
"args": [
"pvliesdonk-scholar-mcp==2.0.0"
],
"env": {
"SCHOLAR_MCP_KV_STORE_URL": "file:///data/state",
"SCHOLAR_MCP_TOOLS_ALLOW": "<SCHOLAR_MCP_TOOLS_ALLOW>",
"SCHOLAR_MCP_TOOLS_DENY": "<SCHOLAR_MCP_TOOLS_DENY>",
"SCHOLAR_MCP_SERVER_NAME": "<SCHOLAR_MCP_SERVER_NAME>",
"SCHOLAR_MCP_INSTANCE_DESCRIPTION": "<SCHOLAR_MCP_INSTANCE_DESCRIPTION>",
"SCHOLAR_MCP_INSTRUCTIONS_EXTRA": "<SCHOLAR_MCP_INSTRUCTIONS_EXTRA>",
"SCHOLAR_MCP_INSTRUCTIONS": "<SCHOLAR_MCP_INSTRUCTIONS>",
"FASTMCP_LOG_LEVEL": "INFO",
"FASTMCP_ENABLE_RICH_LOGGING": "true",
"SCHOLAR_GITHUB_TOKEN": "<your scholar_github_token>",
"SCHOLAR_MCP_READ_ONLY": "true",
"SCHOLAR_MCP_S2_API_KEY": "<your scholar_mcp_s2_api_key>",
"SCHOLAR_MCP_DOCLING_URL": "<SCHOLAR_MCP_DOCLING_URL>",
"SCHOLAR_MCP_VLM_API_URL": "<SCHOLAR_MCP_VLM_API_URL>",
"SCHOLAR_MCP_VLM_API_KEY": "<your scholar_mcp_vlm_api_key>",
"SCHOLAR_MCP_VLM_MODEL": "gpt-4o",
"SCHOLAR_MCP_CACHE_DIR": "/data/scholar-mcp",
"SCHOLAR_MCP_CONTACT_EMAIL": "<SCHOLAR_MCP_CONTACT_EMAIL>",
"SCHOLAR_MCP_EPO_CONSUMER_KEY": "<SCHOLAR_MCP_EPO_CONSUMER_KEY>",
"SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<your scholar_mcp_epo_consumer_secret>",
"SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<your scholar_mcp_google_books_api_key>",
"SCHOLAR_MCP_JOBS_SOFT_DEADLINE_S": "25.0",
"SCHOLAR_MCP_JOBS_RESULT_TTL_S": "3600.0",
"SCHOLAR_MCP_JOBS_MAX_PER_SUBJECT": "256"
}
}
}
}
Variables d'environnement
SCHOLAR_MCP_KV_STORE_URLPersistent-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.SCHOLAR_MCP_TOOLS_ALLOWComma-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_DENYComma-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_NAMERename this server instance; defaults to the project name.SCHOLAR_MCP_INSTANCE_DESCRIPTIONConcise routing context that distinguishes this deployment's material or responsibility.SCHOLAR_MCP_INSTRUCTIONS_EXTRADeployment-specific behavioral policy added to the generated MCP instructions.SCHOLAR_MCP_INSTRUCTIONSLegacy: replaces all generated MCP instructions (deprecated; use _INSTANCE_DESCRIPTION for routing and _INSTRUCTIONS_EXTRA for policy).FASTMCP_LOG_LEVELLog level for FastMCP internals and app loggers (DEBUG / INFO / WARNING / ERROR / CRITICAL). The -v CLI flag overrides to DEBUG.FASTMCP_ENABLE_RICH_LOGGINGSet false for plain or structured JSON log output.SCHOLAR_GITHUB_TOKENsecret GitHub token used to raise rate limits when fetching standards documents from GitHub. Optional; unauthenticated requests work at reduced limits.SCHOLAR_MCP_READ_ONLYWhen true, write-tagged tools (PDF download and conversion cache writes) are hidden. Set false to enable them.SCHOLAR_MCP_S2_API_KEYsecret Semantic Scholar API key. Optional but strongly recommended: unauthenticated requests are limited to ~1 req/s. Request one at https://www.semanticscholar.org/product/api#api-key-form.SCHOLAR_MCP_DOCLING_URLBase 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_URLOpenAI-compatible VLM endpoint for formula and figure enrichment during PDF conversion.SCHOLAR_MCP_VLM_API_KEYsecret API key for the VLM endpoint.SCHOLAR_MCP_VLM_MODELModel name to use with the VLM endpoint.SCHOLAR_MCP_CACHE_DIRDirectory for the SQLite cache database (cache.db) and downloaded PDFs (pdfs/, md/).SCHOLAR_MCP_CONTACT_EMAILContact email for the OpenAlex polite pool (improves rate limits). Also enables Unpaywall lookups as a PDF fallback source.SCHOLAR_MCP_EPO_CONSUMER_KEYEPO Open Patent Services consumer key. Optional; patent tools are hidden when unset. Register at https://developers.epo.org/user/register.SCHOLAR_MCP_EPO_CONSUMER_SECRETsecret EPO Open Patent Services consumer secret. Optional; patent tools are hidden when unset.SCHOLAR_MCP_GOOGLE_BOOKS_API_KEYsecret Google Books API key. Optional; book tools work unauthenticated at reduced rate limits.SCHOLAR_MCP_JOBS_SOFT_DEADLINE_SSeconds 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.SCHOLAR_MCP_JOBS_RESULT_TTL_SSeconds a background-job record (working or finished) is retained for polling before it expires from the store.SCHOLAR_MCP_JOBS_MAX_PER_SUBJECTMaximum live background jobs per calling subject; further promotions are rejected until older records expire.
ghcr.io/pvliesdonk/scholar-mcp:v2.0.0claude mcp add scholar-mcp -e 'SCHOLAR_MCP_BASE_URL=<SCHOLAR_MCP_BASE_URL>' -e 'SCHOLAR_MCP_BEARER_TOKEN=<your scholar_mcp_bearer_token>' -e 'SCHOLAR_MCP_OIDC_CONFIG_URL=<SCHOLAR_MCP_OIDC_CONFIG_URL>' -e 'SCHOLAR_MCP_OIDC_CLIENT_ID=<SCHOLAR_MCP_OIDC_CLIENT_ID>' -e 'SCHOLAR_MCP_OIDC_CLIENT_SECRET=<your scholar_mcp_oidc_client_secret>' -e 'SCHOLAR_MCP_OIDC_AUDIENCE=<SCHOLAR_MCP_OIDC_AUDIENCE>' -e 'SCHOLAR_MCP_OIDC_REQUIRED_SCOPES=openid' -e 'SCHOLAR_MCP_OIDC_ADVERTISED_SCOPES=openid offline_access' -e 'SCHOLAR_MCP_OIDC_JWT_SIGNING_KEY=<your scholar_mcp_oidc_jwt_signing_key>' -e 'SCHOLAR_MCP_OIDC_VERIFY_ACCESS_TOKEN=false' -e 'SCHOLAR_MCP_KV_STORE_URL=file:///data/state' -e 'SCHOLAR_MCP_APP_DOMAIN=<SCHOLAR_MCP_APP_DOMAIN>' -e 'SCHOLAR_MCP_TOOLS_ALLOW=<SCHOLAR_MCP_TOOLS_ALLOW>' -e 'SCHOLAR_MCP_TOOLS_DENY=<SCHOLAR_MCP_TOOLS_DENY>' -e 'SCHOLAR_MCP_AUTH_MODE=<SCHOLAR_MCP_AUTH_MODE>' -e 'SCHOLAR_MCP_BEARER_TOKENS_FILE=<SCHOLAR_MCP_BEARER_TOKENS_FILE>' -e 'SCHOLAR_MCP_BEARER_DEFAULT_SUBJECT=bearer-anon' -e 'SCHOLAR_MCP_SERVER_NAME=<SCHOLAR_MCP_SERVER_NAME>' -e 'SCHOLAR_MCP_INSTANCE_DESCRIPTION=<SCHOLAR_MCP_INSTANCE_DESCRIPTION>' -e 'SCHOLAR_MCP_INSTRUCTIONS_EXTRA=<SCHOLAR_MCP_INSTRUCTIONS_EXTRA>' -e 'SCHOLAR_MCP_INSTRUCTIONS=<SCHOLAR_MCP_INSTRUCTIONS>' -e 'SCHOLAR_MCP_HTTP_PATH=/mcp' -e 'SCHOLAR_MCP_HEALTH_DETAIL=standard' -e 'PUID=1000' -e 'PGID=1000' -e 'FASTMCP_LOG_LEVEL=INFO' -e 'FASTMCP_ENABLE_RICH_LOGGING=true' -e 'SCHOLAR_GITHUB_TOKEN=<your scholar_github_token>' -e 'SCHOLAR_MCP_READ_ONLY=true' -e 'SCHOLAR_MCP_S2_API_KEY=<your scholar_mcp_s2_api_key>' -e 'SCHOLAR_MCP_DOCLING_URL=<SCHOLAR_MCP_DOCLING_URL>' -e 'SCHOLAR_MCP_VLM_API_URL=<SCHOLAR_MCP_VLM_API_URL>' -e 'SCHOLAR_MCP_VLM_API_KEY=<your scholar_mcp_vlm_api_key>' -e 'SCHOLAR_MCP_VLM_MODEL=gpt-4o' -e 'SCHOLAR_MCP_CACHE_DIR=/data/scholar-mcp' -e 'SCHOLAR_MCP_CONTACT_EMAIL=<SCHOLAR_MCP_CONTACT_EMAIL>' -e 'SCHOLAR_MCP_EPO_CONSUMER_KEY=<SCHOLAR_MCP_EPO_CONSUMER_KEY>' -e 'SCHOLAR_MCP_EPO_CONSUMER_SECRET=<your scholar_mcp_epo_consumer_secret>' -e 'SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY=<your scholar_mcp_google_books_api_key>' -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' -- docker run -i --rm ghcr.io/pvliesdonk/scholar-mcp:v2.0.0 --port
{
"mcpServers": {
"scholar-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pvliesdonk/scholar-mcp:v2.0.0",
"--port"
],
"env": {
"SCHOLAR_MCP_BASE_URL": "<SCHOLAR_MCP_BASE_URL>",
"SCHOLAR_MCP_BEARER_TOKEN": "<your scholar_mcp_bearer_token>",
"SCHOLAR_MCP_OIDC_CONFIG_URL": "<SCHOLAR_MCP_OIDC_CONFIG_URL>",
"SCHOLAR_MCP_OIDC_CLIENT_ID": "<SCHOLAR_MCP_OIDC_CLIENT_ID>",
"SCHOLAR_MCP_OIDC_CLIENT_SECRET": "<your scholar_mcp_oidc_client_secret>",
"SCHOLAR_MCP_OIDC_AUDIENCE": "<SCHOLAR_MCP_OIDC_AUDIENCE>",
"SCHOLAR_MCP_OIDC_REQUIRED_SCOPES": "openid",
"SCHOLAR_MCP_OIDC_ADVERTISED_SCOPES": "openid offline_access",
"SCHOLAR_MCP_OIDC_JWT_SIGNING_KEY": "<your scholar_mcp_oidc_jwt_signing_key>",
"SCHOLAR_MCP_OIDC_VERIFY_ACCESS_TOKEN": "false",
"SCHOLAR_MCP_KV_STORE_URL": "file:///data/state",
"SCHOLAR_MCP_APP_DOMAIN": "<SCHOLAR_MCP_APP_DOMAIN>",
"SCHOLAR_MCP_TOOLS_ALLOW": "<SCHOLAR_MCP_TOOLS_ALLOW>",
"SCHOLAR_MCP_TOOLS_DENY": "<SCHOLAR_MCP_TOOLS_DENY>",
"SCHOLAR_MCP_AUTH_MODE": "<SCHOLAR_MCP_AUTH_MODE>",
"SCHOLAR_MCP_BEARER_TOKENS_FILE": "<SCHOLAR_MCP_BEARER_TOKENS_FILE>",
"SCHOLAR_MCP_BEARER_DEFAULT_SUBJECT": "bearer-anon",
"SCHOLAR_MCP_SERVER_NAME": "<SCHOLAR_MCP_SERVER_NAME>",
"SCHOLAR_MCP_INSTANCE_DESCRIPTION": "<SCHOLAR_MCP_INSTANCE_DESCRIPTION>",
"SCHOLAR_MCP_INSTRUCTIONS_EXTRA": "<SCHOLAR_MCP_INSTRUCTIONS_EXTRA>",
"SCHOLAR_MCP_INSTRUCTIONS": "<SCHOLAR_MCP_INSTRUCTIONS>",
"SCHOLAR_MCP_HTTP_PATH": "/mcp",
"SCHOLAR_MCP_HEALTH_DETAIL": "standard",
"PUID": "1000",
"PGID": "1000",
"FASTMCP_LOG_LEVEL": "INFO",
"FASTMCP_ENABLE_RICH_LOGGING": "true",
"SCHOLAR_GITHUB_TOKEN": "<your scholar_github_token>",
"SCHOLAR_MCP_READ_ONLY": "true",
"SCHOLAR_MCP_S2_API_KEY": "<your scholar_mcp_s2_api_key>",
"SCHOLAR_MCP_DOCLING_URL": "<SCHOLAR_MCP_DOCLING_URL>",
"SCHOLAR_MCP_VLM_API_URL": "<SCHOLAR_MCP_VLM_API_URL>",
"SCHOLAR_MCP_VLM_API_KEY": "<your scholar_mcp_vlm_api_key>",
"SCHOLAR_MCP_VLM_MODEL": "gpt-4o",
"SCHOLAR_MCP_CACHE_DIR": "/data/scholar-mcp",
"SCHOLAR_MCP_CONTACT_EMAIL": "<SCHOLAR_MCP_CONTACT_EMAIL>",
"SCHOLAR_MCP_EPO_CONSUMER_KEY": "<SCHOLAR_MCP_EPO_CONSUMER_KEY>",
"SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<your scholar_mcp_epo_consumer_secret>",
"SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<your scholar_mcp_google_books_api_key>",
"SCHOLAR_MCP_JOBS_SOFT_DEADLINE_S": "25.0",
"SCHOLAR_MCP_JOBS_RESULT_TTL_S": "3600.0",
"SCHOLAR_MCP_JOBS_MAX_PER_SUBJECT": "256"
}
}
}
}
Variables d'environnement
SCHOLAR_MCP_BASE_URLPublic 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_BEARER_TOKENsecret Single shared bearer token; enables bearer auth unless `bearer_tokens_file` is set, which takes precedence.SCHOLAR_MCP_OIDC_CONFIG_URLOIDC discovery document URL, for example `https://auth.example.com/.well-known/openid-configuration`.SCHOLAR_MCP_OIDC_CLIENT_IDOIDC client identifier registered with the provider.SCHOLAR_MCP_OIDC_CLIENT_SECRETsecret OIDC client secret registered with the provider.SCHOLAR_MCP_OIDC_AUDIENCEExpected `aud` claim; tokens issued for another audience are rejected.SCHOLAR_MCP_OIDC_REQUIRED_SCOPESScopes a caller must present, space- or comma-separated. Defaults to `openid` in oidc-proxy mode.SCHOLAR_MCP_OIDC_ADVERTISED_SCOPESScopes 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.SCHOLAR_MCP_OIDC_JWT_SIGNING_KEYsecret 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`.SCHOLAR_MCP_OIDC_VERIFY_ACCESS_TOKENValidate the access token instead of the id token.SCHOLAR_MCP_KV_STORE_URLPersistent-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.SCHOLAR_MCP_APP_DOMAINMCP Apps iframe domain, used for CSP sandboxing. Overrides the host derived from `base_url`.SCHOLAR_MCP_TOOLS_ALLOWComma-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_DENYComma-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_AUTH_MODEExplicit 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_FILEPath to a TOML file mapping bearer tokens to subjects; overrides the single-token `bearer_token` mode.SCHOLAR_MCP_BEARER_DEFAULT_SUBJECTSubject assigned to the single-token bearer mode; ignored when `bearer_tokens_file` is set, since mapped mode carries per-token subjects.SCHOLAR_MCP_SERVER_NAMERename this server instance; defaults to the project name.SCHOLAR_MCP_INSTANCE_DESCRIPTIONConcise routing context that distinguishes this deployment's material or responsibility.SCHOLAR_MCP_INSTRUCTIONS_EXTRADeployment-specific behavioral policy added to the generated MCP instructions.SCHOLAR_MCP_INSTRUCTIONSLegacy: replaces all generated MCP instructions (deprecated; use _INSTANCE_DESCRIPTION for routing and _INSTRUCTIONS_EXTRA for policy).SCHOLAR_MCP_HTTP_PATHMount path for the MCP endpoint; the health routes derive their prefix from it.SCHOLAR_MCP_HEALTH_DETAILHow 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).PUIDRun the server process as this UID; the container entrypoint reassigns ownership of writable paths to match.PGIDRun the server process as this GID; pair with PUID to match the owner of a mounted volume.FASTMCP_LOG_LEVELLog level for FastMCP internals and app loggers (DEBUG / INFO / WARNING / ERROR / CRITICAL). The -v CLI flag overrides to DEBUG.FASTMCP_ENABLE_RICH_LOGGINGSet false for plain or structured JSON log output.SCHOLAR_GITHUB_TOKENsecret GitHub token used to raise rate limits when fetching standards documents from GitHub. Optional; unauthenticated requests work at reduced limits.SCHOLAR_MCP_READ_ONLYWhen true, write-tagged tools (PDF download and conversion cache writes) are hidden. Set false to enable them.SCHOLAR_MCP_S2_API_KEYsecret Semantic Scholar API key. Optional but strongly recommended: unauthenticated requests are limited to ~1 req/s. Request one at https://www.semanticscholar.org/product/api#api-key-form.SCHOLAR_MCP_DOCLING_URLBase 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_URLOpenAI-compatible VLM endpoint for formula and figure enrichment during PDF conversion.SCHOLAR_MCP_VLM_API_KEYsecret API key for the VLM endpoint.SCHOLAR_MCP_VLM_MODELModel name to use with the VLM endpoint.SCHOLAR_MCP_CACHE_DIRDirectory for the SQLite cache database (cache.db) and downloaded PDFs (pdfs/, md/).SCHOLAR_MCP_CONTACT_EMAILContact email for the OpenAlex polite pool (improves rate limits). Also enables Unpaywall lookups as a PDF fallback source.SCHOLAR_MCP_EPO_CONSUMER_KEYEPO Open Patent Services consumer key. Optional; patent tools are hidden when unset. Register at https://developers.epo.org/user/register.SCHOLAR_MCP_EPO_CONSUMER_SECRETsecret EPO Open Patent Services consumer secret. Optional; patent tools are hidden when unset.SCHOLAR_MCP_GOOGLE_BOOKS_API_KEYsecret Google Books API key. Optional; book tools work unauthenticated at reduced rate limits.SCHOLAR_MCP_JOBS_SOFT_DEADLINE_SSeconds 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.SCHOLAR_MCP_JOBS_RESULT_TTL_SSeconds a background-job record (working or finished) is retained for polling before it expires from the store.SCHOLAR_MCP_JOBS_MAX_PER_SUBJECTMaximum live background jobs per calling subject; further promotions are rejected until older records expire.
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
Scholar MCP
Scholarly papers, patents, books, standards and PDF conversion
Documentation | Config wizard | PyPI | Docker
Features
29 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; NPL-to-paper resolution via Semantic Scholar and paper-to-patent citation discovery. 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
externalIdsare 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 structuredstandard_metadataincluding identifier, title, body, status, and full-text URL when available (see docs/guides/standards.md).
Cross-cutting
- Enrichment pipeline: phased enrichment from multiple sources: OpenAlex (OA status, affiliations, funders, concepts), CrossRef (publisher, page ranges, container titles), 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.
- Intelligent caching: SQLite-backed cache with per-table TTLs (30 days for papers/authors, 7 days for citations/references) and identifier aliasing.
- Authentication: bearer token, OIDC (OAuth 2.1), or both simultaneously (multi-auth).
- Multi-transport: stdio (Claude Desktop), HTTP (streamable-http), and SSE transports.
- Linux packages:
.deband.rpmpackages with systemd service and security hardening.
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.
What you can do with it
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.
Installation
From PyPI
pip install pvliesdonk-scholar-mcp
If you add optional extras via the PROJECT-EXTRAS-START / PROJECT-EXTRAS-END sentinels in pyproject.toml, document them below:
[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.
From source
git clone https://github.com/pvliesdonk/scholar-mcp.git
cd scholar-mcp
uv sync --all-extras --all-groups
Docker
docker pull ghcr.io/pvliesdonk/scholar-mcp:latest
To run the newest merged code instead of the newest release, use the rolling edge tag. It is rebuilt on every merge to main and carries no version identity. See Image tags for the full tag list.
docker pull ghcr.io/pvliesdonk/scholar-mcp:edge
A compose.yml ships at the repo root and runs as-is: copy .env.example to .env, then docker compose up -d. It publishes port 8000 on the host and assumes no reverse proxy; Docker Compose covers the configuration split, the domain sentinel blocks, and a Traefik overlay.
To attach a remote Python debugger (development only; the protocol is unauthenticated), see Remote debugging.
Linux packages (.deb / .rpm)
Download .deb or .rpm packages from the GitHub Releases page. Both install a hardened systemd unit; env configuration is sourced from /etc/scholar-mcp/env (copy from the shipped /etc/scholar-mcp/env.example).
Claude Desktop (.mcpb bundle)
Download the .mcpb bundle from the GitHub Releases page and double-click to install, or run:
mcpb install scholar-mcp-<version>.mcpb
Claude Desktop prompts for required env vars via a GUI wizard, with no manual JSON editing needed.
For manual Claude Desktop configuration and setup options, see Claude Desktop deployment.
Release channels
Artifacts ship on three channels. Each row lists exactly what that channel publishes.
| Channel | Version identity | Artifacts |
|---|---|---|
edge (rolling) | None; the commit is the identity | Docker image :edge rebuilt on every merge to main; .mcpb bundle as the mcpb-bundle-edge workflow artifact; Claude Code plugin .zip as the plugin-zip-edge artifact; rolling unstable docs version. It leaves no git tag, GitHub release, or PyPI entry behind. |
| Pre-release | vX.Y.Z-rc.N, computed and reviewed in its release pull request | PyPI (as the pre-release X.Y.ZrcN); GitHub release with wheels, sdist, .deb/.rpm packages, .mcpb bundle, plugin .zip, and SBOM attached; Docker image under its immutable vX.Y.Z-rc.N tag plus the ordering-aware rolling rc tag. Skips the plugin marketplace, the MCP registry, and the docs deploy. |
| Stable | vX.Y.Z | Everything: PyPI, Docker (version tag plus ordering-aware latest / vX / vX.Y), .deb/.rpm, GitHub release assets (wheels, sdist, .mcpb bundle, plugin .zip, SBOM), plugin marketplace and MCP registry entries (when the release is the newest stable), versioned docs with an ordering-aware latest alias. |
Pre-releases reach PyPI so that a candidate's .mcpb bundle installs: the bundle points at PyPI rather than carrying the code. Ordinary installers never see them, because a PEP 440 resolver skips pre-releases unless the requirement pins one or you pass --pre. Ask for a candidate by name with pip install pvliesdonk-scholar-mcp==X.Y.ZrcN. PyPI spells it in the PEP 440 canonical form, while tags use SemVer. Rolling pointers are ordering-aware, so a patch release cut from an old release/X.Y branch never moves latest-style tags back to older content, and a candidate for an already-released version never moves rc. See Release process for the full model.
Quick start
scholar-mcp serve # stdio transport
scholar-mcp serve --transport http --port 8000 # streamable HTTP
For library usage (embedding the domain logic without the MCP transport), import from the scholar_mcp package directly. See the project's domain modules under src/scholar_mcp/ for entry points.
Server info
The server registers a built-in get_server_info tool (via fastmcp_pvl_core.register_server_info_tool) so operators can confirm the deployed version with a single MCP call. The default response carries server_name, server_version, and core_version. Servers that talk to a remote upstream wire upstream version reporting inside the DOMAIN-UPSTREAM-START / DOMAIN-UPSTREAM-END sentinel in src/scholar_mcp/server.py; see tool-registration for the wiring pattern.
Health
The server serves /health (liveness, a static 200) and /health/ready (readiness, 503 when a backing store or a domain check fails) outside the MCP mount and outside auth, via fastmcp_pvl_core.register_health_routes. compose.yml probes the first. Domain readiness checks go in the health_checks dict in src/scholar_mcp/server.py; see Docker deployment for the routes, the mount-path rule, and SCHOLAR_MCP_HEALTH_DETAIL.
Configuration
The most common environment variables, shared across all
fastmcp-pvl-core-based services:
| Variable | Default | Description |
|---|---|---|
SCHOLAR_MCP_KV_STORE_URL | file:///data/state | 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. |
SCHOLAR_MCP_LOG_LEVEL | INFO | 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. |
SCHOLAR_MCP_LOG_FORMAT | (none) | 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. |
This table and the one under Domain configuration
are curated subsets. The complete generated reference, with every variable
the server reads, is the configuration reference;
.env.example lists the same surface in copy-paste form.
Authentication
Callers authenticate via a bearer token or OIDC (mutually exclusive). See the Authentication guide for setup, mapped multi-subject tokens, OIDC, and troubleshooting.
Post-scaffold checklist
After copier copy and gh repo create --push:
- Fill in the DOMAIN blocks (every section marked with a
DOMAINsentinel comment) in this README and inAGENTS.md. TheGENERATED-ENV-TABLE-*regions are not DOMAIN blocks; the config generator owns them and rewrites them on every run. - Configure GitHub secrets (see below).
- Install dev + docs tooling:
uv sync --all-extras --all-groups. - Install pre-commit hooks:
uv run pre-commit install. - Run the gate locally:
uv run pytest -x -q && uv run ruff check --fix . && uv run ruff format . && uv run mypy src/ tests/. - Push the first commit. CI should be green.
GitHub secrets
CI workflows reference two required repository secrets and one optional Claude token. Configure them via Settings → Secrets and variables → Actions or with gh secret set:
| Secret | Used by | How to generate |
|---|---|---|
RELEASE_TOKEN | release-prepare.yml, release.yml, copier-update.yml, renovate.yml, bootstrap.yml | Fine-grained PAT at https://github.com/settings/personal-access-tokens/new with contents: write, pull_requests: write, and administration: write (bootstrap applies the repository rulesets, auto-merge, the security settings, and the About block). Must belong to a repository admin: the shipped rulesets grant bypass to the admin role, and the release tag + GitHub release that knope creates after a release pull request merges rely on it (pull requests the token opens also need it so their CI runs). Scoped to this repo. |
SONAR_TOKEN | ci.yml | https://sonarcloud.io: after importing the repository, open its Administration → Analysis Method page. Turn Automatic Analysis off there first, because SonarQube Cloud refuses a CI scan while it is on; choosing GitHub Actions then shows the token. Until the secret exists, CI skips the scan. |
CLAUDE_CODE_OAUTH_TOKEN | claude.yml | Optional. Run claude setup-token locally and configure this only for @claude or opted-in automatic review. |
gh secret set RELEASE_TOKEN
gh secret set SONAR_TOKEN
# Optional: enables @claude and opted-in automatic review.
gh secret set CLAUDE_CODE_OAUTH_TOKEN
Dependency updates are handled by Renovate (
renovate.yml), which reusesRELEASE_TOKEN. It maintainsuv.lockand auto-merges patch/minor bumps once theCI Successcheck is green;bootstrap.ymlenables auto-merge, applies the repository rulesets (.github/rulesets/), turns on private vulnerability reporting and Dependabot alerts, and fills the repository's About block (description, website, topics) frompyproject.tomlon first push. See Repository Protection for the per-branch posture, bypass model, and security settings. GitHub Actions are updated in the copier template and arrive viacopier update, not per-repo.
GITHUB_TOKEN is auto-provided; no action needed.
Local development
The PR gate (matches CI):
uv run pytest -x -q # tests
uv run ruff check --fix . && uv run ruff format . # lint + format
uv run mypy src/ tests/ # type-check
Pre-commit runs a subset of the gate on each commit; see .pre-commit-config.yaml for details, or AGENTS.md for the full Hard PR Acceptance Gates.
CI requires tests to pass on Python 3.11 through 3.14. Python 3.14 also collects
branch coverage and enforces the 80% total and patch coverage thresholds.
To reproduce that test command, run
uv run --python 3.14 pytest --cov --cov-report=xml --durations=20.
Troubleshooting
Moving a scaffolded project
uv sync creates .venv/bin/* scripts with absolute shebangs pointing at the venv Python. If you move the repo after scaffolding (mv /old/path /new/path), uv run pytest fails with ModuleNotFoundError: No module named 'fastmcp' because the stale shebang resolves to a different interpreter than the venv's site-packages.
Fix:
rm -rf .venv
uv sync --all-extras --all-groups
uv run python -m pytest also works as a one-shot workaround (bypasses the stale entry-script shim).
uv.lock refresh after copier update
When copier update introduces new dependencies (such as a new extra added to pyproject.toml.jinja), the CI install step runs uv sync --locked, which fails against a stale lockfile. Run uv lock locally and commit the refreshed uv.lock alongside accepting the copier-update PR.
CI installs with --locked (and the review workflow with --frozen) so no job ever rewrites uv.lock in its own workspace: a job that re-locks hides the drift it just repaired, and a dirty workspace breaks any later git checkout in the same job. Lockfile drift then shows up as a red install step with a clear message, not as a silent mutation.
Contributing
CONTRIBUTING.md holds the rules for issues and pull requests, and where a
fix belongs: fastmcp-pvl-core for library code, the template for
template-owned files, this repository for anything inside its DOMAIN-* /
CONFIG-* / PROJECT-* blocks. AGENTS.md carries the conventions and
gates; the skills under .agents/skills/ carry the task procedures, among
them self-reviewing (local self-review before a pull request),
writing-release-notes (release notes),
applying-template-updates (the weekly template update pull request) and
authoring-issues-prs (filing). The release procedure is in
docs/deployment/release-process.md;
the template update procedure in
docs/deployment/template-updates.md.
SECURITY.md says how to report a vulnerability privately, and what to
expect after.
Links
Domain configuration
The variables this project features as its entry points (domain variables use the SCHOLAR_MCP_ prefix):
| 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. |
This is a curated subset: a field appears here when its tags metadata includes readme. Every domain variable is documented in the configuration reference, grouped the same way the config wizard presents them.
Domain-config fields are composed inside src/scholar_mcp/config.py between the CONFIG-FIELDS-START / CONFIG-FIELDS-END sentinels; env reads go through fastmcp_pvl_core.env(_ENV_PREFIX, "SUFFIX", default) so naming stays consistent, and field invariants go in __post_init__ between the CONFIG-VALIDATE-START / CONFIG-VALIDATE-END sentinels. Each field's metadata help, tags, and wizard group generate the reference tables directly, so keep them accurate and complete.
Key design decisions
- Library-first, MCP-optional. The core domain logic (S2/EPO/Open Library/standards clients, enrichment pipeline, cache) is importable without FastMCP; the MCP server is a thin async wrapper. Enables reuse in scripts, notebooks, and other servers.
- Sync domain code, async MCP layer. Backend clients are synchronous; MCP tools call them via
asyncio.to_thread(). Simpler client code, explicit offloading at the transport boundary. - 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-corejobs layer. A call that beatsSCHOLAR_MCP_JOBS_SOFT_DEADLINE_Sreturns its result directly; a slower one returns a handle to poll withget_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.
Questions fréquentes
Qu'est-ce que Scholar MCP ?
FastMCP server for scholarly papers, patents, books and standards with docling PDF conversion
Comment installer Scholar MCP ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add scholar-mcp -e 'SCHOLAR_MCP_KV_STORE_URL=file:///data/state' -e 'SCHOLAR_MCP_TOOLS_ALLOW=<SCHOLAR_MCP_TOOLS_ALLOW>' -e 'SCHOLAR_MCP_TOOLS_DENY=<SCHOLAR_MCP_TOOLS_DENY>' -e 'SCHOLAR_MCP_SERVER_NAME=<SCHOLAR_MCP_SERVER_NAME>' -e 'SCHOLAR_MCP_INSTANCE_DESCRIPTION=<SCHOLAR_MCP_INSTANCE_DESCRIPTION>' -e 'SCHOLAR_MCP_INSTRUCTIONS_EXTRA=<SCHOLAR_MCP_INSTRUCTIONS_EXTRA>' -e 'SCHOLAR_MCP_INSTRUCTIONS=<SCHOLAR_MCP_INSTRUCTIONS>' -e 'FASTMCP_LOG_LEVEL=INFO' -e 'FASTMCP_ENABLE_RICH_LOGGING=true' -e 'SCHOLAR_GITHUB_TOKEN=<your scholar_github_token>' -e 'SCHOLAR_MCP_READ_ONLY=true' -e 'SCHOLAR_MCP_S2_API_KEY=<your scholar_mcp_s2_api_key>' -e 'SCHOLAR_MCP_DOCLING_URL=<SCHOLAR_MCP_DOCLING_URL>' -e 'SCHOLAR_MCP_VLM_API_URL=<SCHOLAR_MCP_VLM_API_URL>' -e 'SCHOLAR_MCP_VLM_API_KEY=<your scholar_mcp_vlm_api_key>' -e 'SCHOLAR_MCP_VLM_MODEL=gpt-4o' -e 'SCHOLAR_MCP_CACHE_DIR=/data/scholar-mcp' -e 'SCHOLAR_MCP_CONTACT_EMAIL=<SCHOLAR_MCP_CONTACT_EMAIL>' -e 'SCHOLAR_MCP_EPO_CONSUMER_KEY=<SCHOLAR_MCP_EPO_CONSUMER_KEY>' -e 'SCHOLAR_MCP_EPO_CONSUMER_SECRET=<your scholar_mcp_epo_consumer_secret>' -e 'SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY=<your scholar_mcp_google_books_api_key>' -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' -- uvx pvliesdonk-scholar-mcp==2.0.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour Scholar MCP ?
Oui. Il attend SCHOLAR_GITHUB_TOKEN, SCHOLAR_MCP_S2_API_KEY, SCHOLAR_MCP_VLM_API_KEY, SCHOLAR_MCP_EPO_CONSUMER_SECRET, SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY, SCHOLAR_MCP_BEARER_TOKEN, SCHOLAR_MCP_OIDC_CLIENT_SECRET, SCHOLAR_MCP_OIDC_JWT_SIGNING_KEY, à renseigner dans sa configuration.
Scholar MCP est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient Scholar MCP ?
Il est publié par pvliesdonk. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.