Provides LLMs with structured access to critical biomedical databases including PubTator3 (PubMed/PMC), ClinicalTrials.gov, and MyVariant.info through the 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
Looking to see BioMCP in action?
Check out the companion repository: 👉 biomcp-examples
It contains real prompts, AI-generated research briefs, and evaluation runs across different models. Use it to explore capabilities, compare outputs, or benchmark your own setup.
Have a cool example of your own? We’d love for you to contribute! Just fork the repo and submit a PR with your experiment.
This project is licensed under the MIT License.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!