med-lit-mcp0.5.2
MCP server for staged, auditable medical literature review that builds an evidence-linked wiki
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
med-lit-mcp
med-lit-mcp is an MCP server for medical literature reviews. It takes a review through four deliberate stages, search → screening → fetch → wiki, and ends with an evidence-linked wiki you can open in Obsidian.
Your MCP client's model does the reading and writing (screening decisions, entity extraction, syntheses). med-lit-mcp searches the databases (PubMed, PMC, OpenAlex, Europe PMC, Semantic Scholar, Scopus), stores everything, checks the model's work against the source text, and exports the wiki. Every screening decision, extracted mention and synthesis citation must be a verbatim quote or a reference to the stored text.
- Clients: Hermes (terminal and Desktop), Claude Code, Claude Desktop, Codex, pi and ChatGPT desktop Work/Codex.
- Platforms: Linux, macOS and Windows.
- Requirements: Node.js 22.13 or later and a contact email (
NCBI_EMAIL). No embedding endpoint, model API key or build step. - Bots: configure a scheduled literature bot from Hermes, Claude Code or Codex chat; Hermes runs the schedule, screens new articles and adds them to the wiki.
Install
Install Node.js 22.13 or later (the LTS from nodejs.org) if you don't have it, and reopen your agent. Enter your email and database keys in the form or your own terminal, never in chat.
| Client | How |
|---|---|
| ChatGPT desktop Work/Codex | Add the plugin marketplace junhewk/med-lit-mcp and install med-lit, start a new chat, then say “Set up med-lit.” Enter email and keys in the private local browser form. |
| Codex | codex plugin marketplace add junhewk/med-lit-mcp, then codex plugin add med-lit@med-lit. Start a new session and say “Set up med-lit.” |
| Claude Code | /plugin marketplace add junhewk/med-lit-mcp, then /plugin install med-lit@med-lit. Start a new session and say “Set up med-lit.” |
| Hermes | Run npx -y med-lit-mcp connect hermes, then /reload-mcp in Hermes and say “Set up med-lit.” Enter email and keys in the private local browser form. |
| pi | Run npx -y med-lit-mcp setup --client pi, or the install script. See med-lit in pi. |
| Claude Desktop | Install med-lit-<version>.mcpb from the latest release under Settings → Extensions, then switch it on. Chat and Cowork both use it, and it needs no Node.js. |
Codex and Claude Code can also be connected from a terminal with npx -y med-lit-mcp connect codex or connect claude-code. Credentials are stored in private local files and are not returned to the chat model. On the same computer and user account, these agents share med-lit's saved settings unless you choose separate configuration directories. Coming from 0.4.0 (uvx med-lit-mcp)? Your settings, reviews and bots carry over; see Upgrading from 0.4.0. See Setup for every client, manual registration and updating.
Use
Ask your agent a research question. med-lit leads it through the review one step at a time, and stops for every decision that is yours:
How are large language models used in shared decision making in healthcare? Do a basic review.
(the agent shows the mode and search settings, then the drafted search question) Looks good, run it.
(it reports the results and proposes inclusion and exclusion criteria, each with its reason) Approved.
(it screens, asks about the articles it could not decide, and replies with the answer and the full report)
There are three modes:
- basic screens titles and abstracts, then writes the report from the abstracts.
- full also fetches the included articles' full text and builds the evidence-linked wiki, then writes a report that can quote the full text.
- deep runs full mode in rounds, like a bot's runs in one session. After each round the agent judges whether the included studies answer the question; if not, a revised search aimed at the gaps adds the best new articles, which are screened, fetched and added to the wiki, until the evidence is enough or the round limit is reached.
The report is written for a reader who did not see the review: a short answer first, then the evidence by theme, how much to trust it, and how the review was done, with numbered references. Each cited study and quoted finding is checked against the stored articles, and the description of the search and screening comes from the review's own record. See Running a review.
You can also run each stage yourself ("Screen it. Include … exclude …", "Fetch the included articles and build the wiki"). Each review is a self-contained project folder. Open it in Obsidian with Open folder as vault.
Full text from elsewhere. When med-lit finds only an abstract but you know of a free PDF, ask the agent to add it. It stores the PDF from its address, or from a copy you downloaded in your browser when the site blocks automated downloads (add_full_text); for an issue or a collection, only the article's pages. To build the wiki only from articles read in full, ask for the project setting wiki.full_text_only. The report still covers every included article.
Long reviews in Claude Desktop and ChatGPT. Clients that cannot hand work to subagents pause the wiki after a few tasks (wiki.tasks_per_conversation, 5 by default) and say how to go on: open a new conversation and say Continue med-lit run <run id>. Everything is saved in the project folder. Do the same after reinstalling or updating the plugin, since an old conversation may no longer reach med-lit.
What's new in 0.5.2
From the ChatGPT review finished on 0.5.1, where the agent worked around two things med-lit could not do:
- Add a full text med-lit could not find.
add_full_textstores an included article's PDF from its URL, or from a copy you downloaded in your browser for sites that refuse automated downloads; for an issue or a collection, only the article's pages. The text must name the article's title or DOI unless you confirm it is the article. - A wiki from full text only. With the project setting
wiki.full_text_only, the wiki is built only from articles read in full: evidence already taken from abstracts leaves it, and the pages that cited it are updated. - The review stays in med-lit. When you ask for something med-lit cannot do, the agent is told to say so and offer the closest option, not to build a wiki or report on its own.
See the validation record.
What's new in 0.5.1
Fixes from full reviews in Claude Desktop and ChatGPT desktop Work:
- Claude Desktop runs the search. Desktop refused the background search process; in the extension the search now runs inside the server.
- The fetch limit is your call. When more articles are included than
fetch.limitallows, the review lists the ones it would leave without full text and asks you to raise the limit or keep it. Articles you included yourself are fetched first, and raising the limit later fetches the skipped ones. - The report follows the wiki. The wiki's last step, and its hand-off to a new conversation, now lead back to the review, so the agent goes on to the report.
- Cleaner wiki pages. Source pages carry the article's full text, so every quotation can be checked in the wiki; check an article's license before sharing its page. Entity pages nest the synthesis's sections under Synthesis and no longer repeat the Relationships heading. Existing wikis change on their next export.
See the validation record.
What's new in 0.5.0
- Install with Node.js instead of uv. med-lit is now an npm package written in TypeScript. Codex, ChatGPT desktop and Claude Code install it as a plugin from the
junhewk/med-lit-mcpmarketplace; Hermes and pi connect with one command,npx -y med-lit-mcp connect hermes(orpi). The only prerequisite is Node.js 22.13 or later from nodejs.org. The Claude Desktop extension carries the server itself. - Everything else is the same. The tools, their arguments and results, the prompts, the guides, the review stages and the files on disk are those of 0.4.0. Reviews, settings, keys and bots made with 0.4.0 open as they are. The port was checked against 0.4.0 call by call, on recorded database responses.
connectandremove.npx -y med-lit-mcp connect <agent>registers med-lit with Hermes, Claude Code, Codex or pi, replacing an earlier registration such as 0.4.0'suvx med-lit-mcp;remove <agent>takes it out. See Upgrading from 0.4.0.
What's new in 0.4.0
- Hermes, Claude Code and Codex connect before configuration. Ask “Set up med-lit” after installation; a private local browser form collects your email and database keys without adding them to conversation history. On a headless server, use the terminal setup there. The form opens separately from the chat UI and names the connected agent.
- Configure scheduled literature bots in a normal agent chat. Copy a tried review, approve the proposed schedule and limits, then change settings, pause, resume or archive it conversationally. Bots still require Hermes to run their schedules. Scheduled runs keep their restricted tools. Defaults for new reviews and bots are conversational too.
- Saved settings apply to the open connection. Changing or removing a key takes effect without restarting med-lit. Existing review settings stay unchanged when you change defaults for new reviews. Terminal setup and scripted email/folder arguments remain available.
- More reliable bot registration. Bots keep the launch command from the connected server, including development checkouts. Retrying a creation whose job ID was lost recovers the existing routine instead of creating a duplicate.
Live setup and bot-management checks passed with Hermes, Claude Code and Codex, using isolated settings and synthetic credentials. See the validation record.
What's new in 0.3.0
- Research modes: from a question to a report. Ask a research question and
research_nextleads the review step by step, stopping at every decision that is yours: the mode and search settings, the question, the criteria, whether to screen on, and the articles it could not decide.- basic: titles and abstracts; full: also full text and the evidence wiki; deep: full mode in rounds. After each round the agent judges whether the evidence answers the question (
record_evaluation) and, if not, a revised search adds the best new articles, until it is enough orresearch.deep_roundsis reached. - Inclusion and exclusion criteria come with reasons, each with a code (I1 … E1 …), and every exclusion names the criterion it rests on, so the report counts the reasons for exclusion.
- basic: titles and abstracts; full: also full text and the evidence wiki; deep: full mode in rounds. After each round the agent judges whether the evidence answers the question (
- A report that answers the question (
next_report,record_report), written for a reader who did not see the review: a short answer, the evidence by theme, how much to trust it, how the review was done, numbered references and an appendix with the quotations and criteria. Citations and quotations are checked against the stored articles; the description of the search and screening comes from the review's record. Each report gets its own file inreports/. - Fits Hermes as it works. Tool schemas are published without
$ref, so every argument states its type: Hermes passes$refto OpenAI-compatible models unresolved, and the model then sent the search question as a broken string (6 of 20 replayed calls before, 0 of 20 after). The call that ends a screening session returns the next step itself, for an agent that asks the researcher at once. - Fixed: an article stayed in
wiki_taskswhen a worker lowered its page allowance after recording its last page; deep-mode report portions now fit pi's 20 KiB tool results.
Tested on Hermes and pi, interactive and one-shot, in every mode: research modes test.
What's new in 0.2.1
- Install scripts replace the desktop installers.
scripts/install.sh(macOS, Linux) andscripts/install-windows.ps1(Windows) install and update med-lit for every terminal client, and with--chatgptfor ChatGPT desktop. They need uv. The signed macOS.dmgand the WindowsInstall med-lit.batare no longer built. The Claude Desktop.mcpbstays. setup --devstops with a clear message when uv is not onPATH, instead of registering a command that cannot start.
Documentation
| Topic | |
|---|---|
| Setup | Installing for each client, manual registration, updating |
| Configuration | Email, keys and environment variables; per-review settings and defaults |
| Running a review | Projects, how search, screening, fetch and wiki work, tools, the viewer |
| med-lit in pi | Registration, the optional pi package (research policy, scoped workers), recommended settings |
| Bots | Keeping a review up to date with Hermes scheduled jobs |
| The wiki | Obsidian, entity types, roles and relationships, Simple Graph Builder |
| Ontology | The full knowledge-graph contract and graph export format |
| Development | Running from a checkout, tests, compatibility |
| Installation and release | The install scripts, the Claude Desktop extension, releasing |
| Validation | Platform test records, including the earlier desktop installers |
License
med-lit-mcp is licensed under the PolyForm Noncommercial License 1.0.0. You may use, modify and share it for any noncommercial purpose, including research, teaching, and use by educational institutions, public research organizations and public health organizations. Commercial use needs a separate license; open an issue to ask. NOTICE records the MIT-licensed origin of the search engine.