PluginBench
MCP Server
Active
Apache-2.0

io.github.cyanheads/pubmed-mcp-server MCP Server

io.github.cyanheads/pubmed-mcp-server

What is the io.github.cyanheads/pubmed-mcp-server MCP server?

Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.

How to install io.github.cyanheads/pubmed-mcp-server

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

  • NCBI_API_KEY

    NCBI API key for higher rate limits (10 req/s vs 3 req/s).

  • NCBI_ADMIN_EMAIL

    Contact email sent with NCBI requests (recommended by NCBI).

  • UNPAYWALL_EMAIL

    Contact email for Unpaywall. When set, pubmed_fetch_fulltext falls back to Unpaywall open-access copies for DOIs not in PMC.

  • MCP_HTTP_HOST

    The hostname for the HTTP server.

  • MCP_HTTP_PORT

    The port to run the HTTP server on.

  • MCP_HTTP_ENDPOINT_PATH

    The endpoint path for the MCP server.

  • MCP_PUBLIC_URL

    Public origin override for deployments behind a TLS-terminating reverse proxy (e.g. https://mcp.example.com).

  • MCP_AUTH_MODE

    Authentication mode to use: 'none', 'jwt', or 'oauth'.

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "pubmed-mcp-server": {
      "command": "bun",
      "args": [
        "-y",
        "@cyanheads/pubmed-mcp-server",
        "run",
        "start:stdio"
      ],
      "env": {
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
        "NCBI_API_KEY": "<YOUR_NCBI_API_KEY>",
        "NCBI_ADMIN_EMAIL": "<YOUR_NCBI_ADMIN_EMAIL>",
        "UNPAYWALL_EMAIL": "<YOUR_UNPAYWALL_EMAIL>",
        "MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
        "MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
        "MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
        "MCP_PUBLIC_URL": "<YOUR_MCP_PUBLIC_URL>",
        "MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "pubmed-mcp-server": {
      "command": "bun",
      "args": [
        "-y",
        "@cyanheads/pubmed-mcp-server",
        "run",
        "start:stdio"
      ],
      "env": {
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
        "NCBI_API_KEY": "<YOUR_NCBI_API_KEY>",
        "NCBI_ADMIN_EMAIL": "<YOUR_NCBI_ADMIN_EMAIL>",
        "UNPAYWALL_EMAIL": "<YOUR_UNPAYWALL_EMAIL>",
        "MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
        "MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
        "MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
        "MCP_PUBLIC_URL": "<YOUR_MCP_PUBLIC_URL>",
        "MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "pubmed-mcp-server": {
      "command": "bun",
      "args": [
        "-y",
        "@cyanheads/pubmed-mcp-server",
        "run",
        "start:stdio"
      ],
      "env": {
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
        "NCBI_API_KEY": "<YOUR_NCBI_API_KEY>",
        "NCBI_ADMIN_EMAIL": "<YOUR_NCBI_ADMIN_EMAIL>",
        "UNPAYWALL_EMAIL": "<YOUR_UNPAYWALL_EMAIL>",
        "MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
        "MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
        "MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
        "MCP_PUBLIC_URL": "<YOUR_MCP_PUBLIC_URL>",
        "MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "pubmed-mcp-server": {
      "type": "stdio",
      "command": "bun",
      "args": [
        "-y",
        "@cyanheads/pubmed-mcp-server",
        "run",
        "start:stdio"
      ],
      "env": {
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
        "NCBI_API_KEY": "<YOUR_NCBI_API_KEY>",
        "NCBI_ADMIN_EMAIL": "<YOUR_NCBI_ADMIN_EMAIL>",
        "UNPAYWALL_EMAIL": "<YOUR_UNPAYWALL_EMAIL>",
        "MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
        "MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
        "MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
        "MCP_PUBLIC_URL": "<YOUR_MCP_PUBLIC_URL>",
        "MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
      }
    }
  }
}
Claude Code
claude mcp add pubmed-mcp-server --env MCP_LOG_LEVEL=<YOUR_MCP_LOG_LEVEL> --env NCBI_API_KEY=<YOUR_NCBI_API_KEY> --env NCBI_ADMIN_EMAIL=<YOUR_NCBI_ADMIN_EMAIL> --env UNPAYWALL_EMAIL=<YOUR_UNPAYWALL_EMAIL> --env MCP_HTTP_HOST=<YOUR_MCP_HTTP_HOST> --env MCP_HTTP_PORT=<YOUR_MCP_HTTP_PORT> --env MCP_HTTP_ENDPOINT_PATH=<YOUR_MCP_HTTP_ENDPOINT_PATH> --env MCP_PUBLIC_URL=<YOUR_MCP_PUBLIC_URL> --env MCP_AUTH_MODE=<YOUR_MCP_AUTH_MODE> -- bun -y @cyanheads/pubmed-mcp-server run start:stdio

Related MCP servers

Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP.

611
TypeScript
Apache-2.0
View repository →

Comprehensive Git MCP server with 28 tools for clone, commit, branching, merging, and advanced workflows.

226
TypeScript
Apache-2.0
View repository →

Agent-native TypeScript framework for building MCP servers with declarative definitions.

145
TypeScript
Apache-2.0
View repository →

TypeScript template for building MCP servers with declarative tooling, observability, and auth.

145
TypeScript
Apache-2.0
View repository →

Search ClinicalTrials.gov — find studies, retrieve results, match patients to eligible trials.

81
TypeScript
Apache-2.0
View repository →

Store, query, and create YAML workflow playbooks for LLM agents.

31
TypeScript
Apache-2.0
View repository →