Skip to main content

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

Project description

MCP Simple PubMed

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

Features

  • Search PubMed database using keywords
  • Access article abstracts
  • Download full text when available (for open access articles) not implemented yet!

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_simple_pubmed-0.1.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_simple_pubmed-0.1.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_simple_pubmed-0.1.3.tar.gz.

File metadata

  • Download URL: mcp_simple_pubmed-0.1.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.3

File hashes

Hashes for mcp_simple_pubmed-0.1.3.tar.gz
Algorithm Hash digest
SHA256 94c8473dd4b0d15c197da2276a01068f0385a6fe7d4ecfd8f8081d627672d67b
MD5 f08b3a72cf4bb64269f08903f2cbdd7f
BLAKE2b-256 58c40a9d26ac92608dc75f464996ae2d1dcb904e655e4ddaf13d26ffc2364f1c

See more details on using hashes here.

File details

Details for the file mcp_simple_pubmed-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_simple_pubmed-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f627f6add2af8c4daf776fb38b6d274051217fbaf92675621bfcf8376c4fe8a0
MD5 8f1c6528b6bc842cf8b9051640e94633
BLAKE2b-256 a3f27fd0f9253128c80c9f7b947d7475dcebff135a9aca1f6275d6402076b2d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page