Skip to main content

med-lit-mcp

M8ven Score med-lit-mcp MCP server – quality and maintenance score on Glama PyPI Python License Publish

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: a contact email (NCBI_EMAIL). No embedding endpoint, model API key or build step.
  • Bots: with Hermes, a scheduled bot can keep a review up to date by screening new articles and adding them to the wiki.

Install

Client How
Hermes, Claude Code, Codex, pi Run the install script: scripts/install.sh on macOS and Linux, scripts/install-windows.ps1 on Windows. Or run uvx med-lit-mcp setup. Both need uv. For pi see med-lit in pi
ChatGPT desktop Work/Codex (macOS, Windows) The same install script with --chatgpt (Windows: -ChatGPT), then fill in the browser form
Claude Desktop Install med-lit-<version>.mcpb from the latest release under Settings → Extensions, then switch it on

The same script installs and updates. Setup asks for your email, a folder for your reviews (default ~/med-lit) and optional database API keys. Keys are stored in private local files, never in the chat. See Setup for every client, manual registration and updating.

Use

Talk to your agent. It starts each stage only when you ask and confirms the search question with you first:

Start a new review on how large language models are used in shared decision making in healthcare.

Looks good, run it.

Screen it. Include studies of LLMs supporting patient–clinician decisions; exclude purely technical benchmarks.

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.

What's new in 0.2.1

  • Install scripts replace the desktop installers. scripts/install.sh (macOS, Linux) and scripts/install-windows.ps1 (Windows) install and update med-lit for every terminal client, and with --chatgpt for ChatGPT desktop. They need uv. The signed macOS .dmg and the Windows Install med-lit.bat are no longer built. The Claude Desktop .mcpb stays.
  • setup --dev stops with a clear message when uv is not on PATH, instead of registering a command that cannot start.

What's new in 0.2.0

  • pi support. uvx med-lit-mcp setup --client pi adds med-lit to pi's mcp.json. It writes only med-lit's own entry and leaves pi's model, sign-in and settings alone. An optional pi package (pi install git:github.com/junhewk/med-lit-mcp@v<version>) adds two things: the research policy in study folders, and fresh subagent workers that get only the tools their task names. See med-lit in pi.
  • Batches that fit the client.
    • Screening, triage and wiki-task results are sized by the bytes the client actually receives (default 18 KiB, MED_LIT_RESPONSE_BYTES), so a client that cuts long tool results (pi at 20 KiB) gets every abstract whole.
    • A single record too large on its own is sent with its abstract cut at a word boundary and marked.
  • The page limit holds on every route. next_wiki_article, get_article_page and record_extraction all keep to wiki.max_pages.
    • Changed: a per-call max_pages can only ask for fewer pages. To read more of an article, raise the setting with project_settings.
  • The rules travel with each task. The entity types, roles and evidence rules, and the duplicate and synthesis rules, are defined once. They are included in every task wiki_tasks hands out, so a subagent follows them whether or not it reads a guide.
    • Changed: a plan names the tools its tasks may use (kind, tools).
    • Changed: a long step comes in portions (total_tasks, remaining_tasks); call wiki_tasks again for the rest.

These changes came from comparing hosts on a pilot review: Hermes left subagents free to read past the page limit and to start the duplicate review, and pi with a stripped-down host received the rules more reliably. With 0.2.0 the backend enforces the limit and every task carries its rules, and the two hosts reached the same results.

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.

Metadata

Release files for med-lit-mcp 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for med-lit-mcp 0.2.1
File Size Uploaded Provenance
med_lit_mcp-0.2.1.tar.gz 287.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for med-lit-mcp 0.2.1
File Interpreter ABI Platform
med_lit_mcp-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 460.2 kB

Release files / med_lit_mcp-0.2.1.tar.gz

Download URL med_lit_mcp-0.2.1.tar.gz
Size 287.8 kB
Tags Source
SHA-256 checksum
How to use checksums
77cf1919a76f65fa709c1d22be0c68645e2acd316e9080724d400b3e63a3ba4e
BLAKE2b-256 checksum
How to use checksums
673d10819b88016b7205e057892741e0360b7203307fb256c849603680f0a5e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / med_lit_mcp-0.2.1-py3-none-any.whl

Download URL med_lit_mcp-0.2.1-py3-none-any.whl
Size 172.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
464177a6c676357fc33b8b1650fe1c8aa503b8adfbad3508b0c752e4c22fe768
BLAKE2b-256 checksum
How to use checksums
64fbf095dd988bca3d82fc818c3dea7b8c4a1a6301beefb8de2a14fdceb27a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for med-lit-mcp 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for med_lit_mcp-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page