Skip to main content

NCBI E-utilities MCP server for accessing NCBI databases

Project description

NCBI E-utilities MCP Server

A Machine Capability Protocol (MCP) server for accessing NCBI E-utilities API. This package provides programmatic access to NCBI databases including PubMed, Protein, Nucleotide, and more.

Features

  • EInfo: Get list of Entrez databases or statistics for a specific database
  • ESearch: Text-based search to retrieve UID lists from NCBI databases
  • ESummary: Retrieve document summaries (DocSum) for UIDs
  • EFetch: Fetch full formatted records for UIDs (core functionality)

Connect to Your MCP Client

You can use the npx command to connect to your NCBI MCP server from local MCP clients.

To connect to your MCP server from Claude Desktop or other MCP-compatible clients, follow the MCP client setup guide and update the client configuration.

Update your MCP client configuration with this configuration:

{
  "mcpServers": {
    "ncbi-mcp": {
      "command": "uvx",
      "args": [
        "run",
        "ncbi-mcp"
      ],
      "env": {
        "API_KEY": "YOUR_NCBI_API_KEY"
      },
    }
  }
}

Note: Without an API key, your requests are limited to 3 requests per second. With an API key, you can make up to 10 requests per second.

Getting an NCBI API Key

To get an NCBI API key, you need to:

  1. Register for an NCBI account at https://www.ncbi.nlm.nih.gov/account/
  2. Go to your account "Settings" page
  3. Find the "API Key Management" area and click "Create an API Key"
  4. Copy the generated key and use it in your .env file

For more information about NCBI API keys, visit: https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/

Tools Available

EInfo

  • Description: Query NCBI databases, get database statistics
  • Parameters: db_name (optional), retmode (default: xml)

ESearch

  • Description: Search for content by term in specified database
  • Parameters: db_name (default: pubmed), term (search query)

ESummary

  • Description: Get summary information for specified IDs
  • Parameters: db_name (default: pubmed), ids (list of IDs)

EFetch

  • Description: Get complete records for specified IDs
  • Parameters: db_name (default: pubmed), ids (list of IDs), retmode (default: xml), rettype (default: abstract)

Environment Variables

The server automatically retrieves the following configurations from environment variables:

  • API_KEY: NCBI API key (recommended for higher rate limits)

Requirements

  • Python >= 3.12
  • NCBI API key (recommended for higher rate limits)

License

MIT

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

ncbi_mcp-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

ncbi_mcp-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file ncbi_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: ncbi_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ncbi_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 216b8a98f282e96929b8a5d90873852ded3b7eb36128a7bd7fa5125235051cb1
MD5 6894c2418f3b864901fb0fbfcc747850
BLAKE2b-256 c8fcb2dc276cf3fe0b8e94160c257a27a84ff03ce7da536b9e7e7e3b46d441d4

See more details on using hashes here.

File details

Details for the file ncbi_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ncbi_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ncbi_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a9164a9a38e437f0b04f2f1a407dcb4bcb30341f4217262adad0e2a598277da
MD5 356cf7f62d2817e9bf90bf15e834fa7d
BLAKE2b-256 66ee49525917fef9cd097b3ecffd3c799f155a1186ba34e6bc8027af22c73669

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