litquery-mcp
Searches Web of Science through the Clarivate Web of Science Starter API (key from developer.clarivate.com), downloading records page by page — 50 records per call, limited to the first 100,000 records of a search and the daily allowance of the plan — and logs each run with the exact query sent.
Uses Elsevier's Scopus API (key from dev.elsevier.com, plus an optional institutional token) to run TITLE-ABS-KEY searches, retrieve records and abstracts, subject to Elsevier's weekly allowance.
Searches IEEE Xplore metadata through its API (about 200 calls a day, 200 records per call) and downloads the matching records, including abstracts, into the review.
Runs searches against Scopus via its API using TITLE-ABS-KEY syntax written from the parsed query, counts hits, previews and downloads records, and reports refusals or approximations when the source cannot match the string.
Searches Semantic Scholar's title/abstract index, snowballs citations of seed papers backward and forward, and supplies missing abstracts by DOI.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
litquery
Install / Sources / Tools / How it works
A local MCP server and command line tool that:
Searches Scopus, Web of Science, IEEE Xplore and three open indexes with one search string
Keeps the records, the databases' original replies and a log of every search in a folder on your computer
Removes duplicates, fills in missing abstracts and exports RIS, BibTeX or CSV
Uses your own API keys, which stay in the credential store of your operating system
It was written for systematic literature reviews, where every search has to be reported. It serves just as well for a quick look at what exists on a topic.
One search string, six databases
("digital twin" OR "cyber-physical system") AND warehouse AND simulat*Source | What is sent |
Scopus |
|
Web of Science |
|
IEEE Xplore |
|
Semantic Scholar |
|
OpenAlex |
|
CORE | refused: CORE does not expand wildcards |
Every answer carries the query that was sent. Where a database cannot do exactly what the string asks, the answer says so: a warning for a small difference (the topic search of Web of Science also covers Keywords Plus), the mark approximate for a larger one, and a refusal with a way out where it cannot be done at all.
Related MCP server: paper-search
Sources
Source | Role | API key | Abstracts | Good to know |
Scopus | main | required | on the university network, over VPN or with an institutional token | weekly allowance set by Elsevier |
Web of Science | main | required (Starter API) | never | 50 records per call, daily allowance by plan, first 100,000 records of a search |
IEEE Xplore | main | required | yes | about 200 calls a day, 200 records per call |
Semantic Scholar | extra | optional | most records | title and abstract only; without a key all anonymous users share one small allowance |
OpenAlex | extra | optional, free | most records | matches word stems, so |
CORE | extra | optional | some records | no NOT, no wildcards, first 10,000 records of a search |
Crossref | lookup | none | some records | asked for abstracts by DOI, never searched |
ACM Digital Library and Google Scholar have no API. Export RIS or BibTeX from the website (for Google Scholar through Publish or Perish) and add the file with import_file.
Install
Python 3.11 or newer.
git clone https://github.com/sanketkute/litquery
cd litquery
python -m venv .venvWindows:
.venv\Scripts\pip install -e .macOS and Linux:
.venv/bin/pip install -e .This puts two programs into .venv\Scripts (Windows) or .venv/bin: litquery, the command line tool, and litquery-mcp, the MCP server.
Keys
.venv\Scripts\litquery keys setupThis asks for each key in turn. What you paste is not shown, and Enter skips a key. The keys go into the credential store of the operating system (Credential Manager on Windows, Keychain on macOS, Secret Service on Linux) under the name litquery. At the end each service is contacted once to confirm that its key works.
Key | Where to get it | |
| ||
| Elsevier, through your library | optional; gives abstracts away from the university network |
| subscribe to the Web of Science Starter API | |
| ||
| optional | |
| optional, free | |
| optional | |
| optional; sent to Crossref with each lookup, which then answers faster |
A key can also come from an environment variable, which takes precedence over the stored one: LITQUERY_SCOPUS_API_KEY, LITQUERY_SCOPUS_INSTTOKEN, LITQUERY_WOS_API_KEY, LITQUERY_IEEE_API_KEY, LITQUERY_S2_API_KEY, LITQUERY_OPENALEX_API_KEY, LITQUERY_CORE_API_KEY, LITQUERY_CONTACT_EMAIL.
Connect it to Claude
Claude Code, with the full path of the server program:
claude mcp add -s user litquery -- C:\path\to\litquery\.venv\Scripts\litquery-mcp.execlaude mcp add -s user litquery -- /path/to/litquery/.venv/bin/litquery-mcpClaude Desktop, Cursor and other clients that read an mcpServers block:
{
"mcpServers": {
"litquery": {
"command": "C:\\path\\to\\litquery\\.venv\\Scripts\\litquery-mcp.exe"
}
}
}Then ask, for example:
Create a review in D:\reviews\warehouse-twins. Count the hits for ("digital twin" OR "cyber-physical system") AND warehouse AND simulat* from 2015 on in the main databases and show me five records from Scopus.
Tools
Tool | Command line | What it does |
|
| Which keys are stored (never their values), which sources are ready, calls made today. With |
|
| Creates the folder for one review. |
|
| Hits per database, nothing downloaded. For developing the search string. |
|
| The first records one database returns. Nothing is stored. |
|
| Downloads every record into the review, one logged run per source. |
|
| Groups records of the same work and returns the numbers for a PRISMA flow diagram. |
|
| Fetches missing abstracts by DOI. |
|
| Follows the citations of seed papers backward and forward through Semantic Scholar. |
|
| Lists stored records by text, source, run, year or missing abstract. |
|
| Adds a RIS or BibTeX file exported by hand. |
|
| Writes RIS, BibTeX or CSV to |
|
| Every search with its date, the exact query, the settings and the counts. |
The command line prints the same JSON the tools return. litquery <command> --help lists the options.
Search strings
AND,ORandNOTin capitals,"quoted phrases", brackets,*for any ending (simulat*) and?for one character.fieldssays where to search:takfor title, abstract and keywords (the default),title_absfor title and abstract,titlefor the title only.year_fromandyear_tolimit the publication year.nativesends one database a query in its own syntax, unchanged:{"scopus": "TITLE-ABS-KEY(rfid) AND SUBJAREA(ENGI)"}.A lower-case
and, two words without an operator between them and an unclosed quotation mark are errors with a hint. The search string is never guessed at.
The command line calls these --fields, --from, --to and --native SOURCE=QUERY. Run it inside the review folder, or name the folder with -r FOLDER:
litquery init warehouse-twins
cd warehouse-twins
litquery count '("digital twin" OR "cyber-physical system") AND warehouse AND simulat*' --from 2015
litquery run '("digital twin" OR "cyber-physical system") AND warehouse AND simulat*' --from 2015 --label "final search"
litquery dedupe
litquery fill-abstracts
litquery export --format ris
litquery log --writeThe single quotes around the search string work in bash, zsh and PowerShell 7. Windows PowerShell 5.1 drops the inner quotation marks, so use PowerShell 7 there.
How it works
The search string is parsed once. Each source writes it in its own syntax with explicit brackets, so operator precedence is the same everywhere.
A review folder holds
litquery.sqlite(records, runs and the search log),raw/(every reply of every database as it arrived) andexports/.A download is one run per source. It stops at the time limit or when a database refuses further calls, and
resume_run_idscontinues it from the page where it stopped.A search that reports more hits than
max_records(5,000 unless you set it) is refused before anything is downloaded, so a string that is too broad does not use up an API allowance.Records with the same DOI are one work. Where a DOI is missing, the same or nearly the same title counts only together with a shared author name and publication years at most one apart. Records with different DOIs are never merged automatically.
Pairs that only look alike are listed in
exports/possible-duplicates.csv. Your decisions (merge,keep_apart) are remembered, and a decided pair is not listed again.A missing abstract is taken from another record of the same work, then by DOI from Semantic Scholar, OpenAlex and Crossref. Each abstract keeps a note of where it came from.
The search log lists every run with its date, source, search string, the exact query sent, the settings, the hits reported and the records retrieved and new.
search_logwrites it as Markdown and CSV for the methods section.
Options
Environment variable | Meaning |
| The review folder to use when a call names none |
| Calls per day that your Web of Science plan allows (default 5000) |
| Where the count of today's calls is kept (default |
To give Claude a default review folder, add the variable to the server entry:
claude mcp add -s user litquery -e LITQUERY_REVIEW_DIR=D:\reviews\warehouse-twins -- C:\path\to\litquery\.venv\Scripts\litquery-mcp.exeLimits
Version 0.1. Semantic Scholar, OpenAlex, CORE and Crossref are checked against the live services. Scopus, Web of Science and IEEE Xplore pass their tests against simulated replies written from the API documentation and have not yet been run with real keys.
Developed and tested on Windows so far. It is written to run on macOS and Linux as well, but that is not tested yet.
No screening and no full texts. Export to Rayyan, ASReview, Covidence or Zotero for that.
The Web of Science Starter API delivers no abstracts, and Scopus delivers them only to subscribers.
fill_abstractsfinds many of the missing ones in the open indexes, not all.The terms of each provider apply to the records you download, for example on how long they may be kept and whether they may be shared.
Security
Keys are read from the credential store or the environment at the moment a request is made. No tool returns them, and
statusonly says whether one is stored.Keys are removed from error messages and from the replies saved in
raw/. Request addresses never appear in an error.The server talks to its client over standard input and output and opens no network port.
Requests go to the seven services above and nowhere else. There is no telemetry, and Crossref receives a contact email only if you stored one.
Development
.venv\Scripts\pip install -e ".[dev]"
.venv\Scripts\python -m pytestAbout a thousand tests run in under two minutes without network access. The services are simulated.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
Search papers on arXiv, PubMed and Crossref, get abstracts, citations and literature reviews.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Search research papers, save them to your Library, and run your research and team tasks.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables searching and downloading academic papers from 14 platforms including arXiv, PubMed, Google Scholar, Web of Science, Springer, and Sci-Hub with unified data format and intelligent rate limiting.21330 npm192MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching, downloading, and exporting academic papers from 20+ scholarly sources including arXiv, PubMed, and Semantic Scholar. Supports multi-source concurrent search, citation network tracing, and export to CSV, RIS, and BibTeX.1MIT
- AlicenseCqualityBmaintenanceEnables parallel searching of multiple scholarly sources, deduplication of results, and access to paper metadata, abstracts, open-access links, citation graphs, and SciVal metrics.17MIT
- AlicenseBqualityBmaintenanceEnables seed-paper-driven literature research by resolving a seed paper, searching and deduplicating records across Web of Science, Scopus, OpenAlex, and Crossref, screening abstracts, tracing citations, and exporting BibTeX, RIS, or JSON.341MIT