Combining PubMed Trends API with Anthropic's PubMed MCP
This guide shows how an AI agent chains our trend analytics API with Anthropic's PubMed MCP server to go from signal to substance — discovering what's trending, scoring the key papers, then reading the actual research.
Our API answers what's happening in biomedical research: which topics are growing, what's spiking this week, which papers matter most. But it returns PMIDs, not full articles.
Anthropic's PubMed MCP server fills the gap. It can search PubMed, fetch article metadata, retrieve full text, and find related articles — all as MCP tool calls that Claude (or any MCP-compatible agent) can invoke directly.
Together, they form a complete research pipeline:
/digest or /keypapersAn agent wants to understand the current research landscape for GLP-1 receptor agonists — a drug class expanding beyond diabetes into obesity, cardiology, and neuroscience.
Start with /pulse to see current activity level. $0.02
GET http://pubmed.sekgen.xyz/api/v1/pulse?query=GLP-1+receptor+agonist
+48% year-over-year across all windows. This is a hot and sustained trend, not a one-week spike.
Call /digest to get the most important recent papers, scored by journal prestige, publication type, MeSH relevance, and cross-strategy frequency. $0.08
GET http://pubmed.sekgen.xyz/api/v1/digest?query=GLP-1+receptor+agonist&start_year=2024&end_year=2026
The digest reveals the field's three fronts: an oral formulation trial in NEJM, cardiovascular Mendelian randomization in European Heart Journal, and neuroprotection reviews in JCI. The MeSH terms confirm expansion beyond diabetes.
Pass the PMIDs directly to the MCP's get_article_metadata tool. Free (MCP)
mcp get_article_metadata({ "pmids": ["39461342", "39511425", "39294803"] })
The agent now has the full abstracts and can synthesize a research briefing, identify methodology patterns, or compare findings across papers.
An agent monitors all 5 categories for spikes, then deep-dives the standouts.
| step | call | cost |
|---|---|---|
/hottest-weekly × 5 categories | API | $0.25 |
/digest for top 2 topics | API | $0.16 |
get_article_metadata for top PMIDs | MCP | free |
| Total | $0.41 | |
Compare two therapeutic approaches, then read the key papers from each.
| step | call | cost |
|---|---|---|
/compare with both terms | API | $0.02 |
/keypapers for each term | API | $0.06 |
get_article_metadata for top PMIDs | MCP | free |
find_related_articles to expand | MCP | free |
| Total | $0.08 | |
Find an emerging field nobody's watching and read the foundational papers.
| step | call | cost |
|---|---|---|
/emerging for a category | API | $0.05 |
/trends on the top hit | API | $0.01 |
/digest on the top hit | API | $0.08 |
get_full_text_article for open-access papers | MCP | free |
| Total | $0.14 | |
These are the Anthropic PubMed MCP tools most useful alongside our API:
| tool | use case |
|---|---|
search_articles | Free-text PubMed search (useful when you need different queries than our API) |
get_article_metadata | Fetch title, abstract, authors, MeSH for specific PMIDs |
get_full_text_article | Full text for open-access articles (PMC) |
find_related_articles | Expand from a seed PMID to related papers |
get_copyright_status | Check if full text is available before fetching |
For the API side, you need an x402-compatible client. Coinbase awal handles payment automatically:
awal x402 pay 'http://pubmed.sekgen.xyz/api/v1/digest?query=GLP-1+receptor+agonist'
Or use @x402/fetch programmatically in your agent's code.
For the MCP side, add the PubMed MCP server to your Claude configuration:
Once configured, Claude can call PubMed MCP tools directly alongside x402 API calls in the same conversation.
← API Reference · Machine-readable docs · Data from NCBI PubMed