Troubleshooting
claude mcp add Fails with Invalid environment variable format
Section titled “claude mcp add Fails with Invalid environment variable format”Cause: missing separator before server name when passing multiple -e values.
Fix: include -- before the MCP server alias.
DOI Ingestion Fails to Resolve a PDF
Section titled “DOI Ingestion Fails to Resolve a PDF”Error pattern: unable to resolve downloadable PDF URL.
Fix options:
- provide
pdf_urldirectly - provide
local_pdf_path - verify DOI metadata or landing page exposes an accessible downloadable PDF
Scholar Requests Are Being Throttled
Section titled “Scholar Requests Are Being Throttled”Symptoms: intermittent empty results, repeated failures, or slow retries.
Fix options:
- increase
SCHOLAR_REQUEST_DELAY_MS(for example500to1000) - reduce request frequency in your prompts
- avoid bursty query patterns
HTTP Clients Cannot Connect
Section titled “HTTP Clients Cannot Connect”Checklist:
- verify server is running in HTTP mode (
--transport=httpor env) - verify endpoint URL matches
http://<host>:<port><endpointPath> - check
SCHOLAR_MCP_ALLOWED_HOSTSandSCHOLAR_MCP_ALLOWED_ORIGINS - if
SCHOLAR_MCP_API_KEYis set, sendAuthorization: Bearer <key>
Ingestion Fails for Local Files
Section titled “Ingestion Fails for Local Files”Checklist:
- set
RESEARCH_ALLOW_LOCAL_PDFS=true - verify the file path exists and is readable by the process
- use absolute paths when possible