BioLab MCP Server
by brahimbattou
README.md
# 𧬠BioLab MCP Server
> **The Stripe for Scientific Data** ā Unified MCP server providing AI-agent-ready access to AlphaFold, PubMed, ChEMBL, Ensembl, and 37+ scientific databases.
[](LICENSE)
[](https://python.org)
[](https://modelcontextprotocol.io)
---
## What is BioLab MCP?
BioLab MCP is a premium [Model Context Protocol](https://modelcontextprotocol.io) server that gives AI agents (Claude, Cursor, etc.) direct access to the world's leading scientific databases through a single, reliable interface.
**Problem:** Researchers and AI developers need data from 10+ incompatible APIs with different auth methods, rate limits, and response formats.
**Solution:** One MCP server. One API key. All databases. Validated, structured responses.
---
## š Quick Start
### 1. Install
```bash
git clone https://github.com/your-org/biolab-mcp-server
cd biolab-mcp-server
uv sync
```
### 2. Configure Claude Desktop
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or
`%APPDATA%\Claude\claude_desktop_config.json` (Windows):
```json
{
"mcpServers": {
"biolab": {
"command": "uv",
"args": ["run", "--directory", "/path/to/biolab-mcp-server", "biolab-server"]
}
}
}
```
### 3. Ask Claude
```
"Search AlphaFold for TP53 protein structure and confidence scores"
"Find the top 10 papers on CRISPR cancer therapy from 2023-2024"
"What drugs target EGFR? Show me IC50 values from ChEMBL"
"Are there any Phase 3 trials recruiting for lung cancer with pembrolizumab?"
```
---
## š¬ Available Tools (8 MCP Tools)
| Tool | Description | Databases |
|------|-------------|-----------|
| `query_alphafold` | Protein structure predictions with pLDDT scores | AlphaFold DB, UniProt |
| `search_pubmed` | Scientific literature with metadata extraction | PubMed, PMC |
| `query_chembl` | Drug compounds, IC50/Ki bioactivity data | ChEMBL |
| `get_genomic_data` | Gene locations and variant frequencies | Ensembl, gnomAD |
| `search_proteins` | Protein metadata and interaction networks | UniProt, STRING |
| `get_clinical_trials` | Clinical study search and monitoring | ClinicalTrials.gov |
| `find_drug_targets` | Disease-gene associations with confidence scores | Open Targets |
| `find_related_papers` | Cross-database semantic literature search | PubMed + Semantic Scholar + EuropePMC |
---
## š° Pricing
| Tier | Price | Requests/Month | Databases |
|------|-------|----------------|-----------|
| **Free** | $0/month | 100 | AlphaFold, PubMed, ChEMBL |
| **Researcher** | $24/month | 5,000 | All 37+ |
| **Lab** | $99/month | 50,000 | All 37+ + Team keys |
| **Enterprise** | Custom | Unlimited | All + Private deploy |
---
## š ļø Development
### Prerequisites
- Python 3.11+
- [uv](https://docs.astral.sh/uv/) package manager
### Setup
```bash
# Clone and install
git clone https://github.com/your-org/biolab-mcp-server
cd biolab-mcp-server
uv sync --dev
# Copy environment config
cp .env.example .env
# Generate an API key
uv run biolab generate-key --tier researcher --label "my-key"
```
### Run Tests
```bash
uv run pytest tests/ -v
```
### Project Structure
```
src/biolab/
āāā server.py # MCP Server (stdio transport, 8 tools)
āāā auth.py # API key management (SQLite)
āāā cache.py # Disk-based caching
āāā config.py # Settings via pydantic-settings
āāā models.py # Pydantic response models
āāā cli.py # CLI tools
āāā tools/
āāā alphafold.py # AlphaFold Database
āāā pubmed.py # PubMed / PMC
āāā chembl.py # ChEMBL drug database
āāā genomics.py # Ensembl + gnomAD
āāā proteins.py # UniProt + STRING
āāā clinical.py # ClinicalTrials.gov
āāā targets.py # Open Targets
āāā literature.py # Cross-database search
```
---
## šļø Architecture
```
Claude / Cursor (MCP Client)
ā JSON-RPC 2.0 (stdio)
BioLab MCP Server (FastAPI + MCP SDK)
ā HTTP + caching
Scientific Databases:
AlphaFold DB ā PubMed/PMC ā ChEMBL
Ensembl ā gnomAD ā UniProt ā STRING
ClinicalTrials.gov ā Open Targets
Semantic Scholar ā Europe PMC
```
---
## š¤ Contributing
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
---
## š License
MIT License ā see [LICENSE](LICENSE) for details.
Data from third-party databases is subject to their respective licenses. Please review terms for:
- [AlphaFold](https://alphafold.ebi.ac.uk/)
- [NCBI PubMed](https://www.ncbi.nlm.nih.gov/home/about/policies/)
- [ChEMBL](https://chembl.gitbook.io/chembl-interface-documentation/about)
---
## š¬ Contact
- **Website**: [biolabmcp.com](https://biolabmcp.com)
- **Email**: hello@biolabmcp.com
- **GitHub Issues**: For bug reports and feature requests