BioMCP (Biomedical Database Integration) MCP server

Integrates with biomedical databases including ClinicalTrials.gov, PubMed, and MyVariant.info to provide structured access to clinical trials, research articles, and genetic variants with intelligent data rendering and source attribution.
Back to servers
Provider
GenomOncology
Release date
Apr 05, 2025
Language
Python
Package
Stats
3.3K downloads
97 stars

BioMCP is a toolkit that connects AI assistants to authoritative biomedical data sources, enabling them to answer questions about clinical trials, scientific literature, and genomic variants with precision. It follows the Model Context Protocol (MCP) to provide structured access to specialized biomedical knowledge.

Installation Options

Claude Desktop Integration

  1. Install uv if you don't have it (recommended):
# MacOS
brew install uv

# Windows/Linux
pip install uv
  1. Configure Claude Desktop:
    • Open Claude Desktop settings
    • Navigate to Developer section
    • Click "Edit Config" and add:
{
  "mcpServers": {
    "biomcp": {
      "command": "uv",
      "args": ["run", "--with", "biomcp-python", "biomcp", "run"]
    }
  }
}
  1. Restart Claude Desktop to start using biomedical capabilities

Python Package Installation

You can install BioMCP using pip or uv:

# Using pip
pip install biomcp-python

# Using uv (recommended for faster installation)
uv pip install biomcp-python

# Run directly without installation
uv run --with biomcp-python biomcp trial search --condition "lung cancer"

Using BioMCP

Command Line Interface

BioMCP provides a comprehensive CLI for direct database interaction:

# Get help on available commands
biomcp --help

# Run the MCP server
biomcp run

Searching Biomedical Articles

Access PubMed and PubTator3 data with these commands:

# Search for articles by genes, diseases, or keywords
biomcp article search --gene BRAF --disease Melanoma

# Get detailed article information including abstract
biomcp article get 21717063

# Get full article text when available
biomcp article get 21717063 --full

Working with Clinical Trials

Query the ClinicalTrials.gov database:

# Search for trials with various filters
biomcp trial search --condition "Lung Cancer" --phase PHASE3

# Get detailed trial protocol information
biomcp trial get NCT04280705 Protocol

# Other available commands for trials:
# biomcp trial get [ID] Locations - For site locations and contacts
# biomcp trial get [ID] Outcomes - For results and outcome measures
# biomcp trial get [ID] References - For related publications

Genomic Variant Queries

Access MyVariant.info data:

# Search for genetic variants
biomcp trial search --gene TP53 --significance pathogenic

# Get comprehensive annotations for a specific variant
biomcp variant get rs113488022

Testing Your Setup

Verify your BioMCP installation works correctly:

npx @modelcontextprotocol/inspector uv run --with biomcp-python biomcp run

This opens a web interface where you can explore and test all available tools in the BioMCP toolkit.

Available Data Sources and Tools

PubMed & PubTator3

  • Article searching by genes, diseases, variants, or keywords
  • Detailed article information including abstracts and full text

ClinicalTrials.gov

  • Advanced trial searching with filtering
  • Trial protocol details
  • Site locations and contact information
  • Results and outcome measures
  • Related publications

MyVariant.info

  • Genetic variant searching with filters
  • Comprehensive annotations from multiple sources (CIViC, ClinVar, COSMIC, dbSNP)

For more comprehensive documentation, visit https://biomcp.org

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later