Skip to main content
Glama

mcp-pubmed

Search PubMed for biomedical literature, abstracts, and citations via the NCBI E-utilities API.

Free API — No API key required.

Tools

Tool

Description

search_articles

Search PubMed for biomedical articles. Supports full PubMed query syntax including field tags ([Title], [Author], [MeSH]), boolean operators (AND, OR, NOT), and date ranges.

get_article

Get full metadata for a specific PubMed article by PMID, including title, abstract, authors, journal, publication date, DOI, and MeSH terms.

get_citations

Get articles that cite a given PubMed article (PMID). Useful for forward citation tracking.

get_related

Get related articles for a given PubMed article (PMID), ranked by relevance using NCBI's algorithm.

search_mesh

Search the Medical Subject Headings (MeSH) vocabulary. Useful for finding standardized biomedical terms, tree numbers, and scope notes.

get_full_text_links

Get links to free full text versions of an article (e.g., PubMed Central). Returns PMC links and publisher free-access URLs.

Related MCP server: PubMed MCP Server

Installation

git clone https://github.com/PetrefiedThunder/mcp-pubmed.git
cd mcp-pubmed
npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "pubmed": {
      "command": "node",
      "args": ["/path/to/mcp-pubmed/dist/index.js"]
    }
  }
}

Usage with npx

npx mcp-pubmed

License

MIT

Available Tools

6 tools
get_articleA

Get full metadata for a specific PubMed article by PMID, including title, abstract, authors, journal, publication date, DOI, and MeSH terms.

ParametersJSON Schema
NameRequiredDescriptionDefault
pmidYesPubMed ID

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It describes the output content but doesn't disclose behavioral traits like rate limits, authentication needs, error handling, or whether it's a read-only operation (implied by 'Get' but not explicit). It adds value by detailing the metadata fields but lacks operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose ('Get full metadata for a specific PubMed article by PMID') and lists the included data without unnecessary words. Every part earns its place by clarifying scope and content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (single parameter, no output schema, no annotations), the description is complete enough for basic use: it specifies the action, input requirement, and output details. However, it could improve by mentioning the absence of behavioral annotations or output schema, but it adequately covers the core functionality.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the parameter 'pmid' clearly documented as 'PubMed ID'. The description adds no additional parameter semantics beyond what the schema provides, such as format examples or constraints, so it meets the baseline for high schema coverage without compensating further.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get' and resource 'full metadata for a specific PubMed article by PMID', specifying the exact data returned (title, abstract, authors, journal, publication date, DOI, MeSH terms). It distinguishes from siblings like 'search_articles' (search vs. specific retrieval) and 'get_citations' (citations vs. metadata).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by specifying 'by PMID' and listing the metadata returned, suggesting it's for retrieving complete article details when the PMID is known. However, it doesn't explicitly state when not to use it (e.g., vs. 'search_articles' for unknown IDs or 'get_citations' for citation data), though the specificity helps differentiate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_citationsA

Get articles that cite a given PubMed article (PMID). Useful for forward citation tracking.

ParametersJSON Schema
NameRequiredDescriptionDefault
pmidYesPubMed ID to find citing articles for

TDQS

A3.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the purpose but lacks details on permissions, rate limits, response format, or error handling. This is inadequate for a tool with no annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized with two concise sentences, front-loaded with the main purpose and followed by usage context, with zero wasted words or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description is incomplete. It lacks details on behavioral traits, return values, and error handling, which are essential for a tool with no structured data to compensate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents the single parameter (pmid). The description adds minimal context by implying the parameter is for 'a given PubMed article', but does not provide additional syntax or format details beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get articles that cite') and resource ('a given PubMed article (PMID)'), and distinguishes this tool from siblings by specifying forward citation tracking, which is not covered by other tools like get_article or search_articles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool ('Useful for forward citation tracking'), but does not explicitly state when not to use it or name alternatives among siblings, such as get_related for other types of article relationships.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_articlesA

Search PubMed for biomedical articles. Supports full PubMed query syntax including field tags ([Title], [Author], [MeSH]), boolean operators (AND, OR, NOT), and date ranges.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesPubMed search query (supports full PubMed syntax including [Title], [Author], [MeSH], date ranges, boolean operators)
max_resultsNoMaximum results to return (1-100)
sortNoSort orderrelevance
min_dateNoMinimum publication date (YYYY or YYYY/MM or YYYY/MM/DD)
max_dateNoMaximum publication date (YYYY or YYYY/MM or YYYY/MM/DD)

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the search capabilities (query syntax, boolean operators, date ranges) but doesn't mention important behavioral aspects like rate limits, authentication requirements, pagination behavior, or what the response format looks like. It provides good functional context but lacks operational details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence that efficiently communicates the core functionality. Every element (PubMed, biomedical articles, query syntax details) earns its place by providing essential information without redundancy. It's front-loaded with the main purpose and follows with supporting details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with 5 parameters, 100% schema coverage, and no output schema, the description provides adequate functional context but lacks completeness. It doesn't describe what the search results look like (structure, fields returned), doesn't mention limitations or constraints beyond query syntax, and doesn't address error conditions or edge cases that would help an agent use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description mentions 'full PubMed query syntax including field tags ([Title], [Author], [MeSH]), boolean operators (AND, OR, NOT), and date ranges' which adds some context about the query parameter's capabilities, but doesn't provide additional meaning beyond what the schema already specifies for individual parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Search PubMed for biomedical articles') and resource ('PubMed'), distinguishing it from sibling tools like get_article (retrieve specific article) or search_mesh (search MeSH terms). It provides a precise verb+resource combination that immediately communicates the tool's function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context through the mention of 'PubMed query syntax,' suggesting this is for complex searches. However, it doesn't explicitly state when to use this tool versus alternatives like get_article (for known IDs) or search_mesh (for terminology searches). The guidance is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_meshC

Search the Medical Subject Headings (MeSH) vocabulary. Useful for finding standardized biomedical terms, tree numbers, and scope notes.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesMeSH term search query
max_resultsNoMaximum results

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It mentions what the tool does but lacks behavioral details such as whether it's read-only or mutative, any rate limits, authentication needs, or response format. For a search tool with no annotations, this is a significant gap in disclosing operational traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized with two sentences that are front-loaded and efficient. The first sentence states the core purpose, and the second adds useful context without redundancy, making it concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (search functionality with 2 parameters), no annotations, and no output schema, the description is incomplete. It lacks details on behavioral aspects, output format, and usage guidelines, making it inadequate for an AI agent to fully understand how to invoke and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters ('query' and 'max_results') with descriptions and constraints. The description does not add any parameter-specific information beyond what the schema provides, such as examples or additional context, meeting the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Search') and resource ('Medical Subject Headings (MeSH) vocabulary'), making the purpose evident. It specifies the type of vocabulary and mentions what can be found (standardized biomedical terms, tree numbers, scope notes), though it doesn't explicitly differentiate from sibling tools like 'search_articles' beyond the resource focus.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes 'Useful for finding standardized biomedical terms...' which implies a general context but provides no explicit guidance on when to use this tool versus alternatives like 'search_articles' or other siblings. There are no when-to-use or when-not-to-use statements, leaving usage unclear relative to other tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 6 tool updatesv1.0.0
    • First observedget_article
    • First observedget_citations
    • First observedget_full_text_links
    • First observedget_related
    • First observedsearch_articles
    • First observedsearch_mesh

TDQS

A3.7/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: get_article retrieves metadata for a single article, get_citations finds citing articles, get_full_text_links provides access links, get_related finds related articles, search_articles searches the article database, and search_mesh searches the MeSH vocabulary. There is no overlap or ambiguity between these functions.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with snake_case naming: get_article, get_citations, get_full_text_links, get_related, search_articles, and search_mesh. The verbs 'get' and 'search' are used appropriately and consistently throughout.

Tool Count5/5

With 6 tools, this server is well-scoped for PubMed access. Each tool serves a specific, non-trivial function in biomedical literature retrieval, and the count is appropriate for the domain without being overwhelming or insufficient.

Completeness4/5

The toolset covers core PubMed workflows: searching articles, retrieving metadata, finding citations and related articles, accessing full text, and searching MeSH terms. A minor gap is the lack of tools for user-specific functions like saving articles to a library or managing alerts, but these are not essential for basic agent operations.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    An MCP server implementation that enables searching and retrieving research articles from PubMed with specific focus on open access content filtering and full-text link retrieval.
    8
    3
    -
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that provides direct access to PubMed and PubMed Central via the NCBI E-utilities API. It enables AI models to search biomedical literature, retrieve detailed article metadata, and download open-access full texts.
    5
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PetrefiedThunder/mcp-pubmed'

If you have feedback or need assistance with the MCP directory API, please join our Discord server