Stanford PubMed MCP Server for Vercel AI SDKGive Vercel AI SDK instant access to 16 tools to Batch Get Articles, Get Abstract, Get Article, and more
The Vercel AI SDK is the TypeScript toolkit for building AI-powered applications. Connect Stanford PubMed through Vinkius and every tool is available as a typed function. ready for React Server Components, API routes, or any Node.js backend.
Ask AI about this MCP Server for Vercel AI SDK
The Stanford PubMed MCP Server for Vercel AI SDK is a standout in the Education category — giving your AI agent 16 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import { createMCPClient } from "@ai-sdk/mcp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
async function main() {
const mcpClient = await createMCPClient({
transport: {
type: "http",
// Your Vinkius token. get it at cloud.vinkius.com
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
});
try {
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "Using Stanford PubMed, list all available capabilities.",
});
console.log(text);
} finally {
await mcpClient.close();
}
}
main();
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Stanford PubMed MCP Server
Connect to the PubMed E-utilities API from the National Library of Medicine — the gold standard for biomedical literature search.
The Vercel AI SDK gives every Stanford PubMed tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 16 tools through Vinkius and stream results progressively to React, Svelte, or Vue components. works on Edge Functions, Cloudflare Workers, and any Node.js runtime.
What you can do
- Full-Text Search — Search across 36M+ biomedical articles from MEDLINE
- MeSH Vocabulary — Use Medical Subject Headings for precise, controlled-vocabulary searches
- Clinical Trials — Filter specifically for clinical trial publications
- Reviews & Meta-analyses — Find systematic reviews and meta-analyses
- Gene Search — Search articles mentioning specific genes (TP53, BRCA1, EGFR)
- Drug Search — Find articles about specific drugs and compounds
- Citation Tracking — Find articles that cite a given paper
- Related Articles — Use NCBI's similarity algorithm to discover related literature
- Abstracts — Retrieve full structured abstracts for quick evaluation
- Free Full Text — Filter for open access articles available in PubMed Central
- Batch Retrieval — Fetch multiple articles by PMID in a single request
The Stanford PubMed MCP Server exposes 16 tools through the Vinkius. Connect it to Vercel AI SDK in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 16 Stanford PubMed tools available for Vercel AI SDK
When Vercel AI SDK connects to Stanford PubMed through Vinkius, your AI agent gets direct access to every tool listed below — spanning pubmed, ncbi, biomedical, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Batch get articles on Stanford PubMed
Useful for building reading lists, comparing studies, or analyzing a collection of articles from a reference list. Retrieve multiple articles by PMID list
Get abstract on Stanford PubMed
For structured abstracts, returns all sections (Background, Methods, Results, Conclusions). Essential for quickly evaluating whether a paper is relevant without accessing the full text. Get the full abstract text of a PubMed article
Get article on Stanford PubMed
Returns title, all authors, journal name, publication date, volume, issue, pages, DOI, publication types, and language. Get article details by PubMed ID (PMID)
Get citations on Stanford PubMed
Essential for understanding an article's impact, finding follow-up studies, and tracking how findings have been built upon by other researchers. Get articles that cite a given PubMed article
Get related articles on Stanford PubMed
The algorithm considers title, abstract, MeSH headings, and substances to compute similarity scores. This is often more effective than keyword search for discovering relevant literature. Find related articles using NCBI similarity algorithm
Search by author on Stanford PubMed
Use "LastName FirstInitial" format for best results (e.g. "Doudna JA", "Zhang F"). Returns the author's publication list with article metadata. Find PubMed articles by author name
Search by journal on Stanford PubMed
Can be combined with a topic query. Use journal abbreviations or full names (e.g. "Nature", "N Engl J Med", "Lancet", "Cell", "Science", "JAMA", "BMJ"). Find articles published in a specific journal
Search by mesh on Stanford PubMed
MeSH terms provide precise topic classification. Examples: "Neoplasms", "Diabetes Mellitus", "Machine Learning", "Clustered Regularly Interspaced Short Palindromic Repeats", "COVID-19". Search using MeSH controlled vocabulary terms
Search clinical on Stanford PubMed
This includes Phase I-IV trials, randomized controlled trials, and clinical study reports. Essential for evidence-based medicine and systematic reviews. Search for clinical trial publications
Search drugs on Stanford PubMed
Uses the Substance Name field for precise matching. Examples: "metformin", "pembrolizumab", "remdesivir", "aspirin", "dexamethasone". Search articles mentioning specific drugs or compounds
Search free full text on Stanford PubMed
This filters to only return open access or author-deposited articles where the complete manuscript can be read for free. Essential for researchers without institutional journal subscriptions. Search for articles with free full-text available
Search genes on Stanford PubMed
Uses the Gene Name field tag for precise matching. Examples: "TP53", "BRCA1", "EGFR", "KRAS", "MYC". Can be combined with a topic query for more specific results. Search articles mentioning specific genes
Search pubmed on Stanford PubMed
Returns article titles, authors, journals, dates, DOIs, and publication types. Sort options: "relevance" (default), "date", "pub_date", "first_author", "journal". Search 36M+ biomedical articles on PubMed
Search recent on Stanford PubMed
Use this to stay up-to-date with the latest publications in your research area. Default is last 30 days. Find the most recent articles in a field
Search reviews on Stanford PubMed
These are the highest level of evidence synthesis in medicine and provide comprehensive overviews of research on a topic. Search for review articles and meta-analyses
Search trending on Stanford PubMed
This surfaces papers that are generating the most attention and engagement in the research community. Find trending articles in a subject area
Connect Stanford PubMed to Vercel AI SDK via MCP
Follow these steps to wire Stanford PubMed into Vercel AI SDK. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
npm install @ai-sdk/mcp ai @ai-sdk/openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the script
agent.ts and run with npx tsx agent.tsExplore tools
Why Use Vercel AI SDK with the Stanford PubMed MCP Server
Vercel AI SDK provides unique advantages when paired with Stanford PubMed through the Model Context Protocol.
TypeScript-first: every MCP tool gets full type inference, IDE autocomplete, and compile-time error checking out of the box
Framework-agnostic core works with Next.js, Nuxt, SvelteKit, or any Node.js runtime. same Stanford PubMed integration everywhere
Built-in streaming UI primitives let you display Stanford PubMed tool results progressively in React, Svelte, or Vue components
Edge-compatible: the AI SDK runs on Vercel Edge Functions, Cloudflare Workers, and other edge runtimes for minimal latency
Stanford PubMed + Vercel AI SDK Use Cases
Practical scenarios where Vercel AI SDK combined with the Stanford PubMed MCP Server delivers measurable value.
AI-powered web apps: build dashboards that query Stanford PubMed in real-time and stream results to the UI with zero loading states
API backends: create serverless endpoints that orchestrate Stanford PubMed tools and return structured JSON responses to any frontend
Chatbots with tool use: embed Stanford PubMed capabilities into conversational interfaces with streaming responses and tool call visibility
Internal tools: build admin panels where team members interact with Stanford PubMed through natural language queries
Example Prompts for Stanford PubMed in Vercel AI SDK
Ready-to-use prompts you can give your Vercel AI SDK agent to start working with Stanford PubMed immediately.
"Find recent clinical trials for CAR-T cell therapy in lymphoma"
"Search for BRCA1 gene articles related to breast cancer prevention"
"Find free full-text systematic reviews on metformin and diabetes prevention"
Troubleshooting Stanford PubMed MCP Server with Vercel AI SDK
Common issues when connecting Stanford PubMed to Vercel AI SDK through Vinkius, and how to resolve them.
createMCPClient is not a function
npm install @ai-sdk/mcpStanford PubMed + Vercel AI SDK FAQ
Common questions about integrating Stanford PubMed MCP Server with Vercel AI SDK.
How does the Vercel AI SDK connect to MCP servers?
createMCPClient from @ai-sdk/mcp and pass the server URL. The SDK discovers all tools and provides typed TypeScript interfaces for each one.Can I use MCP tools in Edge Functions?
Does it support streaming tool results?
useChat and streamText that handle tool calls and display results progressively in the UI.Explore More MCP Servers
View all →
MagicBell
3 toolsManage notifications and broadcasts via MagicBell — list, retrieve, and trigger multi-channel alerts directly from your AI agent.

Nearmap (High-Res Aerial Imagery & AI)
10 toolsManage geospatial data via Nearmap — retrieve high-res aerial imagery, extract AI features, and audit survey coverage.

Attio
14 toolsBuild powerful CRM workflows with flexible data models, relationship tracking, and deal management tailored to your process.

Mistral AI
10 toolsAccess Mistral AI models via API — chat with Claude alternatives, generate embeddings, moderate content and manage batch jobs from any AI agent.
