BioMCP: Biomedical Model Context Protocol
BioMCP is an open source (MIT License) toolkit that empowers AI assistants and agents with specialized biomedical knowledge. Built following the Model Context Protocol (MCP), it connects AI systems to authoritative biomedical data sources, enabling them to answer questions about clinical trials, scientific literature, and genomic variants with precision and depth.
While Large Language Models have broad general knowledge, they often lack specialized domain-specific information or access to up-to-date resources. BioMCP bridges this gap for biomedicine by:
BioMCP integrates with three key biomedical data sources:
article_searcher
: Search for articles by genes, diseases, variants, or
keywordsarticle_details
: Get detailed article information including abstracts and
full texttrial_searcher
: Advanced trial search with filtering by condition,
intervention, phase, etc.trial_protocol
: Detailed trial protocol informationtrial_locations
: Trial site locations and contact informationtrial_outcomes
: Results and outcome measurestrial_references
: Related publicationsvariant_searcher
: Search for genetic variants with sophisticated filteringvariant_details
: Comprehensive annotations from multiple sources (CIViC,
ClinVar, COSMIC, dbSNP, etc.)Install uv
if you don't have it (recommended):
# MacOS
brew install uv
# Windows/Linux
pip install uv
Configure Claude Desktop:
{
"mcpServers": {
"biomcp": {
"command": "uv",
"args": ["run", "--with", "biomcp-python", "biomcp", "run"]
}
}
}
# 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"
BioMCP provides a comprehensive CLI for direct database interaction:
# Get help
biomcp --help
# Run the MCP server
biomcp run
# Examples
biomcp article search --gene BRAF --disease Melanoma
biomcp article get 21717063 --full
biomcp trial search --condition "Lung Cancer" --phase PHASE3
biomcp trial get NCT04280705 Protocol
biomcp variant search --gene TP53 --significance pathogenic
biomcp variant get rs113488022
Test your BioMCP setup with the MCP Inspector:
npx @modelcontextprotocol/inspector uv run --with biomcp-python biomcp run
This opens a web interface where you can explore and test all available tools.
OncoMCP extends BioMCP with GenomOncology's enterprise-grade precision oncology platform (POP), providing:
Learn more: GenomOncology
For comprehensive documentation, visit https://biomcp.org
This project is licensed under the MIT License.