Scholar MCP
Search papers, patents, books and standards, and convert PDFs to Markdown
Scholar MCP is an MCP server for books and literature. It can run locally on your machine or as a hosted remote server.
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally or Remotely
- Version
- 3.4.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add scholar-mcp --env SCHOLAR_GITHUB_TOKEN='<SCHOLAR_GITHUB_TOKEN>' --env SCHOLAR_MCP_S2_API_KEY='<SCHOLAR_MCP_S2_API_KEY>' --env SCHOLAR_MCP_VLM_API_KEY='<SCHOLAR_MCP_VLM_API_KEY>' --env SCHOLAR_MCP_OPENALEX_API_KEY='<SCHOLAR_MCP_OPENALEX_API_KEY>' --env SCHOLAR_MCP_EPO_CONSUMER_SECRET='<SCHOLAR_MCP_EPO_CONSUMER_SECRET>' --env SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY='<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>' -- uvx pvliesdonk-scholar-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"scholar-mcp": {
"command": "uvx",
"args": [
"pvliesdonk-scholar-mcp"
],
"env": {
"SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>",
"SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>",
"SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>",
"SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>",
"SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>",
"SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"scholar-mcp": {
"command": "uvx",
"args": [
"pvliesdonk-scholar-mcp"
],
"env": {
"SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>",
"SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>",
"SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>",
"SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>",
"SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>",
"SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"scholar-mcp": {
"command": "uvx",
"args": [
"pvliesdonk-scholar-mcp"
],
"env": {
"SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>",
"SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>",
"SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>",
"SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>",
"SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>",
"SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"scholar-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"pvliesdonk-scholar-mcp"
],
"env": {
"SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>",
"SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>",
"SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>",
"SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>",
"SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>",
"SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add scholar-mcp --env SCHOLAR_GITHUB_TOKEN='<SCHOLAR_GITHUB_TOKEN>' --env SCHOLAR_MCP_S2_API_KEY='<SCHOLAR_MCP_S2_API_KEY>' --env SCHOLAR_MCP_VLM_API_KEY='<SCHOLAR_MCP_VLM_API_KEY>' --env SCHOLAR_MCP_OPENALEX_API_KEY='<SCHOLAR_MCP_OPENALEX_API_KEY>' --env SCHOLAR_MCP_EPO_CONSUMER_SECRET='<SCHOLAR_MCP_EPO_CONSUMER_SECRET>' --env SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY='<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>' -- uvx pvliesdonk-scholar-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.scholar-mcp]
command = "uvx"
args = ["pvliesdonk-scholar-mcp"]
env = { SCHOLAR_GITHUB_TOKEN = "<SCHOLAR_GITHUB_TOKEN>", SCHOLAR_MCP_S2_API_KEY = "<SCHOLAR_MCP_S2_API_KEY>", SCHOLAR_MCP_VLM_API_KEY = "<SCHOLAR_MCP_VLM_API_KEY>", SCHOLAR_MCP_OPENALEX_API_KEY = "<SCHOLAR_MCP_OPENALEX_API_KEY>", SCHOLAR_MCP_EPO_CONSUMER_SECRET = "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY = "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"scholar-mcp": {
"command": "uvx",
"args": [
"pvliesdonk-scholar-mcp"
],
"env": {
"SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>",
"SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>",
"SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>",
"SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>",
"SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>",
"SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "scholar-mcp": { "command": "uvx", "args": [ "pvliesdonk-scholar-mcp" ], "env": { "SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>", "SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>", "SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>", "SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>", "SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", "SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" } } } }Or run: gemini mcp add -s user -e SCHOLAR_GITHUB_TOKEN='<SCHOLAR_GITHUB_TOKEN>' -e SCHOLAR_MCP_S2_API_KEY='<SCHOLAR_MCP_S2_API_KEY>' -e SCHOLAR_MCP_VLM_API_KEY='<SCHOLAR_MCP_VLM_API_KEY>' -e SCHOLAR_MCP_OPENALEX_API_KEY='<SCHOLAR_MCP_OPENALEX_API_KEY>' -e SCHOLAR_MCP_EPO_CONSUMER_SECRET='<SCHOLAR_MCP_EPO_CONSUMER_SECRET>' -e SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY='<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>' scholar-mcp uvx -- pvliesdonk-scholar-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "scholar-mcp": { "command": "uvx", "args": [ "pvliesdonk-scholar-mcp" ], "env": { "SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>", "SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>", "SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>", "SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>", "SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", "SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "scholar-mcp": { "command": "uvx", "args": [ "pvliesdonk-scholar-mcp" ], "env": { "SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>", "SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>", "SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>", "SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>", "SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", "SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "scholar-mcp": { "command": "uvx", "args": [ "pvliesdonk-scholar-mcp" ], "env": { "SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>", "SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>", "SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>", "SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>", "SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", "SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "scholar-mcp": { "command": "uvx", "args": [ "pvliesdonk-scholar-mcp" ], "env": { "SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>", "SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>", "SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>", "SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>", "SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", "SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "scholar-mcp": { "command": "uvx", "args": [ "pvliesdonk-scholar-mcp" ], "env": { "SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>", "SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>", "SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>", "SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>", "SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", "SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "scholar-mcp": { "command": "uvx", "args": [ "pvliesdonk-scholar-mcp" ], "env": { "SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>", "SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>", "SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>", "SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>", "SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", "SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "scholar-mcp": { "command": "uvx", "args": [ "pvliesdonk-scholar-mcp" ], "env": { "SCHOLAR_GITHUB_TOKEN": "<SCHOLAR_GITHUB_TOKEN>", "SCHOLAR_MCP_S2_API_KEY": "<SCHOLAR_MCP_S2_API_KEY>", "SCHOLAR_MCP_VLM_API_KEY": "<SCHOLAR_MCP_VLM_API_KEY>", "SCHOLAR_MCP_OPENALEX_API_KEY": "<SCHOLAR_MCP_OPENALEX_API_KEY>", "SCHOLAR_MCP_EPO_CONSUMER_SECRET": "<SCHOLAR_MCP_EPO_CONSUMER_SECRET>", "SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY": "<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
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).SCHOLAR_MCP_LOG_LEVELLog 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_FORMATLog 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_GITHUB_TOKENGitHub 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_KEYSemantic 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_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_KEYAPI key for the VLM endpoint.SCHOLAR_MCP_VLM_MODELModel name to use with the VLM endpoint.SCHOLAR_MCP_VLM_PARAMSJSON 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_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_OPENALEX_API_KEYOpenAlex 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_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_SECRETEPO Open Patent Services consumer secret. Optional; patent tools are hidden when unset.SCHOLAR_MCP_GOOGLE_BOOKS_API_KEYGoogle Books API key. Optional; book tools work unauthenticated at reduced rate limits.SCHOLAR_MCP_ACCESS_LINKSLinks 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_PRIVATEWhen 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.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.SCHOLAR_MCP_TRANSFER_TTL_DEFAULT_SLink lifetime in seconds when the caller requests no explicit TTL.SCHOLAR_MCP_TRANSFER_TTL_MAX_SCeiling in seconds a caller-requested link TTL is clamped to.SCHOLAR_MCP_TRANSFER_GRACE_TTL_SPost-success grace window in seconds: a served token's TTL shrinks to this so a stalled transfer can retry within it.SCHOLAR_MCP_TRANSFER_LEASE_SCrashed-handler reclaim window in seconds for an in-flight reservation.SCHOLAR_MCP_TRANSFER_MAX_UPLOAD_BYTESMaximum size in bytes of a single upload.SCHOLAR_MCP_SHUTDOWN_GRACE_SSeconds 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.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_TOKENSingle 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_SECRETOIDC 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_KEYSigning 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.SCHOLAR_MCP_LOG_LEVELLog 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_FORMATLog 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_GITHUB_TOKENGitHub 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_KEYSemantic 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_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_KEYAPI key for the VLM endpoint.SCHOLAR_MCP_VLM_MODELModel name to use with the VLM endpoint.SCHOLAR_MCP_VLM_PARAMSJSON 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_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_OPENALEX_API_KEYOpenAlex 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_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_SECRETEPO Open Patent Services consumer secret. Optional; patent tools are hidden when unset.SCHOLAR_MCP_GOOGLE_BOOKS_API_KEYGoogle Books API key. Optional; book tools work unauthenticated at reduced rate limits.SCHOLAR_MCP_ACCESS_LINKSLinks 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_PRIVATEWhen 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.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.SCHOLAR_MCP_TRANSFER_TTL_DEFAULT_SLink lifetime in seconds when the caller requests no explicit TTL.SCHOLAR_MCP_TRANSFER_TTL_MAX_SCeiling in seconds a caller-requested link TTL is clamped to.SCHOLAR_MCP_TRANSFER_GRACE_TTL_SPost-success grace window in seconds: a served token's TTL shrinks to this so a stalled transfer can retry within it.SCHOLAR_MCP_TRANSFER_LEASE_SCrashed-handler reclaim window in seconds for an in-flight reservation.SCHOLAR_MCP_TRANSFER_MAX_UPLOAD_BYTESMaximum size in bytes of a single upload.
About Scholar MCP
Thirty tools are organised by source type. Papers support filtered search, lookup by DOI, arXiv, PubMed or Semantic Scholar ID, citation graph traversal, recommendations and BibTeX, CSL-JSON or RIS output. Patents are searched through EPO OPS across more than 100 offices, with claims, family, legal status and citations. Books come from Open Library without a key, with Google Books excerpts and WorldCat links. Standards cover NIST, IETF, W3C and ETSI, with ISO, IEC, IEEE, Common Criteria and CEN metadata synced locally.
Results are enriched from OpenAlex, CrossRef, Google Books and Open Library. Open-access PDFs can be downloaded and converted to Markdown through docling-serve, falling back to arXiv, PubMed Central or Unpaywall when no link is available. Converted text is paged so large documents fit in responses.
A SQLite cache keeps papers and authors for 30 days. It runs over stdio or streamable HTTP, and write-tagged tools, such as PDF downloads, are hidden by default until read-only mode is turned off.
What it does
- Citation graph tools
- Follows forward citations, backward references and shortest paths between papers.
- Patent search
- Searches over 100 patent offices through EPO OPS with claims, family and legal sections.
- Books and standards
- Looks up Open Library books and NIST, IETF, W3C and ETSI standards.
- PDF to Markdown
- Converts open-access PDFs with docling-serve, with fallbacks to arXiv and Unpaywall.
- Citation export
- Generates BibTeX, CSL-JSON or RIS entries.
- Tool allow and deny lists
- Environment variables hide or expose specific tools.
Good for
- Trace who cites a paper and what it cites
- Check patents related to a paper
- Pull a standard's metadata and text
- Export references for a bibliography
- Convert an open-access paper to Markdown
Scholar MCP FAQ
Which paper IDs can I use?
DOI, Semantic Scholar, arXiv, ACM and PubMed IDs.
Do I need API keys?
Open Library works without one; EPO credentials are optional and only needed for patents.
Why can I not download PDFs?
Write-tagged tools are hidden while SCHOLAR_MCP_READ_ONLY is true, which is the default.
How is Scholar MCP installed?
As the PyPI package pvliesdonk-scholar-mcp or a container image.
How long is data cached?
Papers and authors are cached for 30 days in SQLite.
How do I add Scholar MCP to Claude Code?
Run this command in your terminal: claude mcp add scholar-mcp --env SCHOLAR_GITHUB_TOKEN='<SCHOLAR_GITHUB_TOKEN>' --env SCHOLAR_MCP_S2_API_KEY='<SCHOLAR_MCP_S2_API_KEY>' --env SCHOLAR_MCP_VLM_API_KEY='<SCHOLAR_MCP_VLM_API_KEY>' --env SCHOLAR_MCP_OPENALEX_API_KEY='<SCHOLAR_MCP_OPENALEX_API_KEY>' --env SCHOLAR_MCP_EPO_CONSUMER_SECRET='<SCHOLAR_MCP_EPO_CONSUMER_SECRET>' --env SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY='<SCHOLAR_MCP_GOOGLE_BOOKS_API_KEY>' -- uvx pvliesdonk-scholar-mcp
What are the best alternatives to Scholar MCP?
The closest alternatives to Scholar MCP are Scrapling MCP Server, Firecrawl MCP Server, Douyin_TikTok_Download_API, SearXNG Search and Fortress.
Where this comes from
- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.



