Skip to content
appsgit

Pubmed MCP Server

Pubmed MCP Server is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms. It has 154 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @cyanheads/pubmed-mcp-server.

github.com/cyanheads/pubmed-mcp-server (opens in a new tab)

  • Needs API key
  • Other
  • Apache-2.0
  • Actively maintained

Install Pubmed MCP Server

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "pubmed-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/pubmed-mcp-server"
      ],
      "env": {
        "NCBI_API_KEY": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env NCBI_API_KEY=your-value --transport stdio pubmed-mcp-server -- npx -y @cyanheads/pubmed-mcp-server

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "pubmed-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/pubmed-mcp-server"
      ],
      "env": {
        "NCBI_API_KEY": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "ncbi_api_key",
      "description": "NCBI_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "pubmed-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/pubmed-mcp-server"
      ],
      "env": {
        "NCBI_API_KEY": "${input:ncbi_api_key}"
      }
    }
  }
}

Claude Code (remote)

claude mcp add --transport http pubmed-mcp-server "https://pubmed.caseyjhand.com/mcp"

The same server is also hosted as a remote MCP endpoint, so nothing runs on your machine.

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
MCP_LOG_LEVELNoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
NCBI_API_KEYsecretNoNCBI API key for higher rate limits (10 req/s vs 3 req/s).
NCBI_ADMIN_EMAILNoContact email sent with NCBI requests (recommended by NCBI).
UNPAYWALL_EMAILNoContact email for Unpaywall. When set, pubmedfetchfulltext falls back to Unpaywall open-access copies for DOIs not in PMC.

Tools (11)

Parsed from the Tools section of the README; check the repository for the current list.

  • pubmed_search_articles

    Search PubMed with full query syntax, structured filters, date ranges, and optional summaries

  • pubmed_fetch_articles

    Fetch article metadata by PMID: abstract, authors, journal, MeSH terms, grants, linked retraction and correction notices

  • pubmed_fetch_fulltext

    Fetch full text by PMID, PMCID, or DOI, falling back from PMC to Europe PMC to Unpaywall

  • pubmed_europepmc_search

    Search Europe PMC for preprints, patents, Agricola, and open-access records PubMed doesn't carry

  • pubmed_europepmc_fetch

    Fetch complete Europe PMC records, including the untruncated abstract, by source + epmcId

  • pubmed_format_citations

    Format citations in APA 7th, MLA 9th, BibTeX, RIS, or Vancouver (ICMJE/NLM)

  • pubmed_find_related

    Find similar articles, citing articles, or references for a PMID

  • pubmed_spell_check

    Correct a misspelled PubMed query via NCBI ESpell

  • pubmed_lookup_mesh

    Look up MeSH headings with tree numbers, scope notes, and entry terms

  • pubmed_lookup_citation

    Resolve partial references, up to 25 at a time, to PMIDs via ECitMatch

  • pubmed_convert_ids

    Convert between DOI, PMID, and PMCID via the PMC ID Converter

About Pubmed MCP Server

@cyanheads/pubmed-mcp-server Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms via MCP. STDIO or Streamable HTTP. 11 Tools • 1 Resource • 1 Prompt

  • ai-agents
  • ai-tools
  • mcp
  • mcp-server
  • model-context-protocol
  • ncbi
  • pubmed
  • pubmed-api
  • biomedical
  • citations

FAQ

Pubmed MCP Server FAQ

Still curious? Email info@appsgit.com.

What is Pubmed MCP Server?

Pubmed MCP Server is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms. It has 154 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @cyanheads/pubmed-mcp-server. The source code is at github.com/cyanheads/pubmed-mcp-server.

How do I install the Pubmed MCP Server MCP server?

Add the command npx -y @cyanheads/pubmed-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Pubmed MCP Server free?

The server is open source under the Apache-2.0 license, so running it is free. It needs credentials (NCBI_API_KEY) for the service it connects to, which may require a paid account.

Is Pubmed MCP Server actively maintained?

The most recent commit was on Oct 4, 2026. The latest release is v2.10.20, published Oct 4, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.