Spiral gives your agent every tool with one account. Browse the tools →

Claude Code · Health

How to Use PubMed related articles in Claude Code

Retrieve similar papers, citing articles, or references linked to a PubMed record. Use it to expand a reading list from a known paper, while allowing for incomplete citation coverage.

Prompts to try with PubMed related articles in Claude Code

Copy an example into Claude Code, or ask in your own words.

Use PubMed related articles for PMID 23193287 and build a reading-list view from the similar papers returned.

PubMed related articlesClaude Code
Try asking
  • Use PubMed related articles to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from PubMed related articles and tell me what changed since last week.

  • Check PubMed related articles and summarize what you find in three bullet points.

  • Pull the newest data from PubMed related articles and give me the result as a table.

How to set up PubMed related articles in Claude Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run PubMed related articles

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "pubmed-ncbi-nlm-nih-gov/publications/related",
        "input": {
          "pmid": "<pmid>"
        }
      }'

Then paste one of the prompts above: Claude Code finds PubMed related articles on Spiral, shows the price and runs it.

PubMed related articles providers and prices

Spiral runs PubMed related articles through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
PubMed and PMC · Related
pubmed-ncbi-nlm-nih-gov/publications/related

Settings you can ask for

Ask Claude Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Kindsimilar, cited_in, or referencessimilar

kind

Limit1 to 5020

How many linked ids to return summaries for (and to list in ids).

Include summarieson or off

When false, return ids only (one upstream request).

Every API field of PubMed and PMC · Related is on its tool page: open its card above.

What can you do with PubMed related articles in Claude Code?

Build a literature browser with citation cards, abstracts, and links to available PMC text. Your coding agent can connect identifiers and add related-paper navigation to the project.

Prepare a journal club reading pack

Find papers on semaglutide and cardiovascular outcomes, organize the citations, inspect abstracts, and read available PMC methods and results. Match article identifiers and follow related papers to prepare discussion questions.

Build a literature review screening queue

Search for wastewater surveillance studies, collect citation summaries, and screen individual abstracts against a written research question. Connect identifiers, inspect available full text, and follow related records for additional candidates.

Check the evidence behind a science article

Locate papers supporting an article about antimicrobial resistance. Match its DOI references, verify citation details and abstracts, read available PMC text, and inspect related research before drafting an evidence note.

Compare published research methods

Find single-cell RNA sequencing papers and organize their citations. Resolve identifiers, check abstracts, inspect available full-text methods, and use related articles to find alternative approaches worth comparing.

Maintain a research team reading digest

Periodically search for new publications on long COVID, compare results with the prior reading list, and prepare citation cards. Add abstract-based notes, available full-text findings, identifier matches, and relevant linked papers.

Develop a grant proposal bibliography

Search for research on tuberculosis diagnostics, organize candidate citations, and inspect abstracts and available full text for unanswered questions. Match identifiers and follow related papers to strengthen the background reading.

Questions about PubMed related articles in Claude Code

Can Claude Code use PubMed related articles?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run PubMed related articles like any built-in tool.

How much does PubMed related articles cost in Claude Code?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

Do I need an Alexandria account to use PubMed related articles in Claude Code?

No. Spiral runs PubMed related articles on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up PubMed related articles in Claude Code?

About two minutes: add the hosted server, then sign in.

Does Claude Code wait while PubMed related articles runs?

PubMed related articles runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

What does PubMed cover?

PubMed contains more than 40 million citations and abstracts from biomedical literature. MEDLINE is its largest component; PMC contributes citations for archived full-text articles.

How far back does the literature go?

PubMed supports searches for literature from 1946 onward. A small number of articles published before 1946 are searchable through records from PMC.

How often does PubMed receive new citations?

New citations from MEDLINE journals appear daily. That schedule describes citation availability, rather than a guarantee that every new publication immediately has a record.

Does every PubMed record include full text?

PubMed contains citations and abstracts rather than full journal articles. Full-text links can lead to PMC or a publisher, so a PubMed record alone does not establish PMC text availability.

Are PubMed’s citing-article lists complete?

No. PubMed explicitly says its cited-by list may omit works that cite a paper, so the returned list should not be presented as its total citation count.

Get started

Start using PubMed related articles in Claude Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Claude Code:

Set up Claude Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options