Skip to content
← All MCP servers

Is the PubMed MCP server safe? What it can reach

What the PubMed MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

PubMed has no server from NCBI that I could confirm, so this page covers cyanheads/pubmed-mcp-server, a community project. It runs locally with npx and searches and fetches articles, full text and citations from NCBI, Europe PMC and Unpaywall. All 12 documented tools only read public literature, and an NCBI API key is optional.

Who maintains it

ImplementationKindStatus
cyanheads/pubmed-mcp-server (community)Communityactive

It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://pubmed.caseyjhand.com/mcp.

How it signs in

No sign-in is needed. An optional NCBI API key (NCBI_API_KEY) raises NCBI rate limits. Run locally over stdio, or over HTTP with MCP_AUTH_MODE set to none, jwt or oauth.

What its tools can do

KindTools
Readpubmed_search_articles, pubmed_fetch_articles, pubmed_fetch_fulltext, pubmed_europepmc_search, pubmed_europepmc_fetch, pubmed_fetch_citation_metrics, pubmed_format_citations, pubmed_find_related, pubmed_spell_check, pubmed_lookup_mesh, pubmed_lookup_citation, pubmed_convert_ids
Writenone documented
Can’t be undonenone documented

The README does not label tools as read-only, but each one searches, fetches, resolves or formats. It lists no tool that writes files. The server itself can write logs and use an optional filesystem storage backend.

Built-in limits

OptionWhat it does
EUROPEPMC_ENABLEDTurns the Europe PMC lookups on or off.
MCP_AUTH_MODEFor HTTP transport, selects none, jwt or oauth.
MCP_TRANSPORT_TYPEChooses stdio (the local default) or http.
NCBI_API_KEY, NCBI_ADMIN_EMAIL, UNPAYWALL_EMAILOptional identifiers sent with requests to NCBI and Unpaywall.

The risks

  • Your search queries and article IDs go to NCBI, Europe PMC and Unpaywall, and an NCBI or Unpaywall email you set is sent with them, so a sensitive research topic is visible to those services.
  • Abstracts and full text come from third parties, so a paper could carry injected instructions that the agent reads as part of a result.
  • The README lists a public hosted instance, and queries sent to it pass through its operator, so run it locally with npx for private work.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env NCBI_API_KEY=... --env NCBI_ADMIN_EMAIL=... pubmed -- npx -y @cyanheads/pubmed-mcp-server

Claude Code names MCP tools mcp__pubmed__<tool>. Once you know the tool names, deny the ones you won’t use and set the rest to ask in .claude/settings.json.

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.pubmed]
command = "npx"
args = ["-y", "@cyanheads/pubmed-mcp-server"]
env_vars = ["NCBI_API_KEY", "NCBI_ADMIN_EMAIL"]

Checklist

  • Run it locally over stdio, not the hosted instance.
  • Set NCBI_API_KEY for higher rate limits, and keep it out of the repo.
  • Treat fetched abstracts and full text as untrusted input.
  • Pin the package version instead of floating on latest.

Checked against the vendor documentation on November 25, 2026. pubmed-mcp-server README · cyanheads/pubmed-mcp-server repository

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing