Pubmed MCP Server2
MCP server by masa-med-ai Verified · npm:pubmed_mcp_server2
Connects MCP-compatible AI assistants to PubMed, PubMed Central and iCite through a local stdio server. It suits researchers who want literature search, abstracts, citation metrics and RIS export inside their assistant.
Install Pubmed MCP Server2
Built from the published package, never by AI.
claude mcp add pubmed-mcp-server2 -- npx -y pubmed_mcp_server2Run in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pubmed-mcp-server2": {
"args": [
"-y",
"pubmed_mcp_server2"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pubmed-mcp-server2": {
"args": [
"-y",
"pubmed_mcp_server2"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pubmed-mcp-server2": {
"args": [
"-y",
"pubmed_mcp_server2"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pubmed-mcp-server2 -- npx -y pubmed_mcp_server2{
"mcpServers": {
"pubmed-mcp-server2": {
"args": [
"-y",
"pubmed_mcp_server2"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pubmed-mcp-server2 npx -y pubmed_mcp_server2Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pubmed-mcp-server2 block.
About
PubMed MCP Server2 is a local Model Context Protocol server that connects clients such as Claude Desktop and MCP Inspector to the NCBI PubMed, PubMed Central and iCite APIs. It runs over stdio and exposes 10 tools for searching, fetching abstracts, retrieving PMC full text, counting results, finding similar articles, exporting RIS citations, getting citation counts, converting IDs and running batch jobs.
The tools return structured JSON, and the server retries HTTP 429 responses with exponential backoff. An optional NCBI API key raises the rate limit from 3 to 10 requests per second. The publisher describes it as a single-user local build without the OAuth layer of a remote sibling project, so it suits one user who wants PubMed access in a local assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
searchPubMed search with MeSH support, pagination, sorting, output modes and structured filters.fetchReturns the abstract for a single PMID.fetch_batchReturns abstracts for multiple PMIDs in one call.get_full_textRetrieves PMC full text from JATS XML, with optional section filters.countReturns the result count for a query, for quick query refinement.find_similar_articlesFinds similar articles using NCBI elink similarity.export_to_risExports compact RIS records for EndNote, Zotero or Mendeley.get_citation_countsReturns iCite citation metrics, or elink citing PMIDs in elink mode.convert_idsConverts between PMID, PMCID and DOI, with a PubMed fallback.batch_processRuns selected operations on a set of PMIDs with bounded concurrency.
What you need
- Node.js 18 or later
- npm, for building from source
- Optional NCBI API key
- An MCP-compatible client such as Claude Desktop
Try asking
- Search PubMed for recent trials on semaglutide and summarize the abstracts
- Export the top PubMed results for this query to RIS for Zotero
- Convert these DOIs to PMIDs and get their iCite citation counts
Good to know
- Without an NCBI API key, requests are limited to 3 per second.
- get_full_text accepts up to 20 PMCIDs per call.
- Full text is only available for articles that are in PMC.
- Author lists over 30 names are cut to the first 10 followed by et al.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Pubmed MCP Server2
All alternatives →Standardizes lab test names to LOINC codes and units to UCUM, and symptoms and diagnoses to ICPC-3, offline and with no API key. Built for people who want their health records on their own machine and queryable by an AI agent over MCP.
RuView is a WiFi sensing platform and MCP server that uses low-cost ESP32 sensors to detect people, breathing and heart rate. It is for developers and operators who want room sensing without cameras or wearables.
ToolUniverse is an MCP server that gives AI assistants access to more than 2,700 scientific tools for life science, research and literature. It is aimed at AI scientists, researchers and developers building research systems.
Mirobody is a self-hosted engine that turns lab reports, wearable data and genetic files into a single health record. Its built-in MCP server lets an AI assistant query that record and trace each number back to its source file. It is for people who want their health data on their own machine.
ScanSci PDF gets academic papers for AI agents. Give it a DOI, arXiv ID, article link, reference list or research question, and it searches candidate sources and tries to fetch accessible full texts. It is for students, researchers and labs.
Searches CNKI and Web of Science through an MCP server, returning records with impact factors. It can also open a paper in the user's signed-in browser and read its full text. Built for researchers who want AI answers on science topics backed by the source article.
Compare with Mirobody, Ruview or tooluniverse
Pubmed MCP Server2: common questions
Does it need an NCBI API key?
No. The source says an NCBI API key is optional. Without one the rate limit is 3 requests per second, and with one it is 10.
Can it retrieve full text for every article?
No. get_full_text uses PubMed Central JATS XML, and the source says articles outside PMC have no PMCID to retrieve.
Which clients does it work with?
The source lists Claude Desktop and MCP Inspector as examples of MCP-compatible clients that connect to it over stdio.
How do I install Pubmed MCP Server2?
In Claude Code run claude mcp add pubmed-mcp-server2 -- npx -y pubmed_mcp_server2. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Pubmed MCP Server2 the official server?
Pubmed MCP Server2 is published by npm:pubmed_mcp_server2 from its verified domain in the official MCP Registry.
Is Pubmed MCP Server2 free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Pubmed MCP Server2 safe to use?
It scores 75 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Pubmed MCP Server2?
Similar MCP servers: Mirobody, Ruview, tooluniverse, Mirobody.
Does Pubmed MCP Server2 work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
