home / mcp / pubmed mcp server
Provides access to PubMed and PubMed Central APIs via 16 MCP tools for searching, retrieving, and analyzing biomedical literature.
Configuration
View docs{
"mcpServers": {
"augmented-nature-pubmed-mcp-server": {
"command": "node",
"args": [
"path/to/pubmed-server/build/index.js"
],
"env": {
"NCBI_EMAIL": "[email protected]",
"NCBI_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}You get a PubMed MCP Server that exposes PubMed and PubMed Central APIs through a suite of MCP tools. It lets you search, retrieve, and analyze biomedical literature directly from your MCP-enabled environment, with real-time access to 36+ million citations and structured metadata across articles, abstracts,MeSH terms, and full text when available.
You interact with the PubMed MCP Server through your MCP client by selecting the tools you need, such as searching articles, retrieving abstracts, or batch lookups. Start by configuring a local MCP server instance as shown in the installation steps, then issue requests for search, retrieval, or citation data. The server handles rate limiting automatically and returns structured data that includes metadata, abstracts, MeSH terms, DOIs, and full-text availability when PMC provides it.
Prerequisites you need to prepare before running the server:
- Node.js 16 or newer is required.
- Optional: An NCBI API key improves rate limits. You can obtain one from your NCBI account settings.
{
"mcpServers": {
"pubmed-server": {
"command": "node",
"args": ["path/to/pubmed-server/build/index.js"],
"autoApprove": [
"search_articles",
"get_article_details",
"get_abstract",
"validate_pmid"
]
}
}
}{
"mcpServers": {
"pubmed-server": {
"command": "node",
"args": ["path/to/pubmed-server/build/index.js"],
"env": {
"NCBI_API_KEY": "your_api_key_here",
"NCBI_EMAIL": "[email protected]"
},
"autoApprove": [
"search_articles",
"get_article_details",
"get_abstract",
"validate_pmid",
"search_by_author",
"search_by_journal"
]
}
}
}These configurations are designed to work with standard MCP tooling. If you need to run the server locally, ensure your environment has network access to PubMed and PubMed Central endpoints, and that your Node.js installation is available in your shell path.
- The server automatically throttles requests to comply with NCBI usage policies. Without an API key you are limited to a lower request rate; with a key you gain higher throughput.
- You can perform a range of searches including keyword, author, journal, MeSH terms, and advanced boolean queries. Look for results with associated metadata such as PMIDs, DOIs, and PMC IDs when full text is available.
Common issues include invalid PMIDs, rate limit warnings, or missing full text. Verify PMIDs are numeric strings, ensure your API key (if used) is valid, and consider batch lookups for efficiency.
The PubMed MCP Server exposes a comprehensive set of tools for literature discovery, retrieval, and analysis. See below for the primary tool categories and purposes.
Search PubMed by keywords, authors, journals, dates, or MeSH terms with pagination.
Execute complex queries with field-specific searches and boolean operators (AND/OR).
Find articles by specific author(s) with optional affiliation filtering.
Search within specific journals with date range filtering.
Search using MeSH terms with the option to filter by major topics.
Retrieve recently published articles in a chosen field within a configurable time window.
Fetch comprehensive metadata and abstract for a specific PMID.
Retrieve article abstract by PMID with basic metadata.
Retrieve full text from PMC when available.
Efficiently retrieve multiple articles in a single request (up to 200 PMIDs).
Find articles that cite a specific PMID.
Obtain the reference list for an article.
Find related articles based on content similarity.
Export citations in formats such as APA, MLA, Chicago, BibTeX, and RIS.
Validate PubMed ID format and verify article existence.
Convert between PMID, DOI, and PMC IDs.