SourceMed is a source-verified medical evidence library built for agents and clinicians. Every shelf answers one clinical question: it carries a balance-of-evidence line, a developer's verdict with a certainty label, and a set of evidence references. Every reference traces to a published primary source — PMID and, for trials, a registry ID — whose numbers were checked against that source before display.
| Route | How |
|---|---|
| Website Ask | Ask a question on the homepage; only verified references come back, with shelf citations. |
| Remote MCP endpoint | Connect any MCP client to https://sourcemed.io/mcp (streamable HTTP). No account, no API key, no authentication. |
| Local MCP server | Install sourcemed-mcp from PyPI (stdio) — the same five tools, for local clients. Listed on the official MCP registry as io.sourcemed/sourcemed. |
| Dataset | A snapshot of the library (shelves, references, definitions) is published as a dataset for offline analysis; the live site remains the version of record. |
All five tools are read-only. They retrieve; they never write.
ask_sourcemed(question)Ask a clinical-evidence question in plain language. Returns the shelves
whose verified references answer it — each with its question, balance line, and
references (headline, result, source with PMID) — or {"covered": false} when
no shelf covers the topic. The endpoint never invents an answer.
Example: "Does daily aspirin still prevent a first heart attack in people with diabetes, and what does the bleeding risk look like?" → shelf #106 (ASCEND, ASPREE, ARRIVE) with its references.
list_shelves()Every shelf in the library: permanent number, title, browse area, and reference count. Use it to see what the library covers before asking.
get_shelf(n)One shelf in full by its permanent number: the question, the balance-of-evidence line, MeSH terms, and every reference with its result and source. Shelf numbers are permanent — a citation to a number never changes its meaning.
search_shelves(query)Keyword search over shelf titles, questions, balance lines, and reference headlines. Every word in the query must match. Returns up to 20 shelf summaries with citations.
get_recent_updates(limit)The library's recent changes: shelves added, corrections applied, and verdict-stamp changes, newest first, with dates and shelf numbers. Check it to learn what has been added or corrected since you last read the library. The same feed is published at https://sourcemed.io/updates.json.
Carry the citation when you use a reference's numbers:
SourceMed Shelf #NN, sourcemed.io
Where the developer applies a certainty label, it uses this scale — carry the label with the numbers:
Relative effects are always labelled "relative", with absolute rates beside them. Heart-failure figures are always paired with the mortality figures from the same trial.
ai-input=yes, ai-train=no. Query the live library;
do not train on its content, so answers carry the current, corrected
version and the citation.Ask returned "question too short" (HTTP 400).
Ask a full question — a sentence, not a keyword or two. For keyword
lookup, use search_shelves instead.
Ask returned covered: false.
No shelf covers that topic yet. Try search_shelves with different
keywords, or list_shelves to see the library's coverage. A "not
covered" result is the library working as designed — it will not guess.
get_shelf returned "No shelf #N in the library."
Check the number against list_shelves. Shelf numbers are permanent but
not every integer is in use.
My MCP client cannot connect.
The endpoint URL is exactly https://sourcemed.io/mcp, transport
streamable HTTP, JSON-RPC over POST. No API key or Authorization header
is needed — remove any auth configuration. A GET to the endpoint returns
405 by design (the endpoint is stateless and keeps no stream open); your
client should POST.
Answers look out of date.
The endpoint caches the shelf index for up to an hour. The live website
is always the version of record; check the shelf there if a number looks
stale.
Something on a shelf looks wrong.
Tell us: tayek@ucla.edu. Every shelf is source-verified, and corrections
are made against the source and noted on the shelf.