Fire in da houseTop Tip:Most people pay up to $340 per month for Perplexity, MidJourney, Runway, ChatGPT, and more - but you can get them all your AI tools for $15 with Galaxy. It's free to test!Fire in da houseCheck it out

mcp-simple-pubmed

MCP.Pizza Chef: andybrandt

mcp-simple-pubmed is an MCP server that interfaces with the PubMed medical research database via the Entrez API. It allows users to perform keyword-based searches, access article abstracts, and download full-text articles when available as open access. The server returns full texts in an XML-ized format, optimized for AI consumption by preserving document structure, enhancing model understanding and interaction. This makes it ideal for integrating medical literature into AI workflows, research assistants, and knowledge discovery tools.

Use This MCP server To

Search PubMed for medical research articles by keywords Retrieve abstracts of PubMed articles for quick review Download open access full-text medical papers in XML format Integrate structured medical literature into AI workflows Enable AI models to analyze and summarize medical research Support medical knowledge discovery and evidence synthesis

README

MseeP Badge

MCP Simple PubMed

smithery badge

An MCP server that provides access to PubMed articles through the Entrez API.

mcp-simple-pubmed MCP server

Features

  • Search PubMed database using keywords
  • Access article abstracts
  • Download full text when available (for open access articles available directly on PubMed)

Please note that the tool returns XML-ized version of full text. It is however more useful for AIs than a "human readable" text would have been as it gives them additional information about document's structure. At least, this is what Claude 3.5 Sonnet said he prefers.

Please also note that inability of this tool and possibly other tools to deliver a paper's full text may not be due to the fact that it is not available. When testing this tool I came across a paper that did not have full text on PubMed and when Claude accessed the publication URL (which we did get through DOI) using fetch he did get a "forbidden” error. However, I was able to access the very same page using a regular browser.

In other words if your AI assistant is not able to get the full text of a paper using this tool it is worth trying manually with a regular web browser.

Finally, this tool of course can’t give you access to paywalled/paid papers. You may be able to read them through your library access or – as a last resort – through a certain site that strives to make publicly funded research freely available.

Installation

Installing via Smithery

To install Simple PubMed for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-simple-pubmed --client claude

Manual Installation

pip install mcp-simple-pubmed

Configuration

The server requires the following environment variables:

  • PUBMED_EMAIL: Your email address (required by NCBI)
  • PUBMED_API_KEY: Optional API key for higher rate limits

The standard rate limit is 3 requests / second. No rate limiting was implemented, as it is highly unlikely in the typical usage scenario that your AI would generate more traffic. If you need it, you can register for an API key which will give you 10 requests / second. Read about this on NCBI pages.

Usage with Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

(Mac OS)

{
  "mcpServers": {
    "simple-pubmed": {
      "command": "python",
      "args": ["-m", "mcp_simple_pubmed"],
      "env": {
        "PUBMED_EMAIL": "your-email@example.com",
        "PUBMED_API_KEY": "your-api-key" 
      }
    }
  }
}

(Windows)

{
  "mcpServers": {
    "simple-pubmed": {
      "command": "C:\\Users\\YOUR_USERNAME\\AppData\\Local\\Programs\\Python\\Python311\\python.exe",
      "args": [
        "-m",
        "mcp_simple_pubmed"
      ],
      "env": {
        "PUBMED_EMAIL": "your-email@example.com",
        "PUBMED_API_KEY": "your-api-key" 
      }
    }
  }
}

License

MIT License

mcp-simple-pubmed FAQ

How does mcp-simple-pubmed access PubMed data?
It uses the Entrez API to query and retrieve articles from the PubMed database.
What format are full-text articles returned in?
Full texts are returned in an XML-ized format, which preserves document structure for better AI processing.
Can I get full-text articles for all PubMed papers?
No, only open access articles available directly on PubMed can be downloaded in full text.
Is the XML full text human-readable?
The XML format is more suited for AI models than for direct human reading, as it encodes structural information.
Can this server be used with different LLM providers?
Yes, it is compatible with models like OpenAI GPT, Anthropic Claude, and Google Gemini through MCP clients.
Does mcp-simple-pubmed support advanced search filters?
It primarily supports keyword-based searches; advanced filtering depends on the Entrez API capabilities.
How do I integrate mcp-simple-pubmed into my AI application?
Connect your MCP client to this server to enable real-time PubMed data querying and retrieval.
Is there any rate limiting or usage restriction?
Usage is subject to PubMed Entrez API policies and rate limits.