BV-BRC MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BV-BRC MCP Serverfind Escherichia coli genomes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-bvbrc
A Model Context Protocol (MCP) server for interacting with the BV-BRC (Bacterial and Viral Bioinformatics Resource Center) API. This server provides tools for querying and retrieving genomic data, features, antimicrobial resistance data, epitopes, and more.
Overview
BV-BRC is a comprehensive bioinformatics resource for bacterial and viral pathogen data. This MCP server exposes the BV-BRC API through a set of tools that can be used with Claude and other MCP-compatible applications.
Key Features
Query Genomes: Search and retrieve genome data with filters for organism, strain, and more
Genomic Features: Query genes, proteins, RNA molecules, and other genomic features
Antimicrobial Resistance: Access AMR data and resistance mechanisms
Epitopes & Assays: Retrieve vaccine target and epitope assay data
Advanced Queries: Use RQL (Relational Query Language) for complex data queries
Multiple Data Types: Access 13+ different data types in the BV-BRC database
Related MCP server: bvbrc-mcp-server
Installation
Prerequisites
Python 3.10 or higher
pip (Python package manager)
Quick Start
Clone or download this repository:
git clone https://github.com/soham-shukla/mcp-bvbrc.git
cd mcp-bvbrcInstall dependencies:
pip install -r requirements.txt(Optional) Install in development mode with additional tools:
pip install -e ".[dev]"Configuration
For Claude Desktop
The easiest way to use this server is with Claude Desktop:
Find your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"bvbrc": {
"command": "python",
"args": ["/absolute/path/to/bvbrc.py"]
}
}
}Restart Claude Desktop
See CONFIG.md for more configuration options.
Available Tools
1. query_data_type
Perform advanced queries on any BV-BRC data type using RQL syntax.
Parameters:
data_type(required): The data type to query (e.g.,genome,genome_feature,epitope)query(optional): RQL query stringlimit(optional, default: 10): Maximum results to returnoffset(optional, default: 0): Results to skip
Example:
Query genomes of Salmonella with organism name and genome size
data_type: "genome"
query: "eq(organism,Salmonella)&select(genome_id,organism,dna_size)"
limit: 52. get_record_by_id
Retrieve a specific record by its ID.
Parameters:
data_type(required): The data type (e.g.,genome,genome_feature)record_id(required): The ID of the record
Example:
Get genome with ID "1234567.890"
data_type: "genome"
record_id: "1234567.890"3. search_genomes
Search for genomes with convenient filtering.
Parameters:
organism(optional): Filter by organism namegenome_id(optional): Filter by genome IDstrain(optional): Filter by strainlimit(optional, default: 10): Maximum resultsoffset(optional, default: 0): Results to skip
Example:
Search for Escherichia coli genomes
organism: "Escherichia coli"
limit: 204. search_features
Search for genomic features (genes, proteins, etc.) with filtering.
Parameters:
genome_id(optional): Filter by genome IDfeature_type(optional): Filter by type (e.g.,CDS,RNA)keyword(optional): Keyword searchlimit(optional, default: 10): Maximum resultsoffset(optional, default: 0): Results to skip
Example:
Search for CDS features in a genome
genome_id: "1234567.890"
feature_type: "CDS"
limit: 505. get_available_data_types
Get information about all available data types in BV-BRC.
Returns: List of data types with descriptions and common fields.
Supported Data Types
Data Type | Description | Primary Key |
| Genome records with assembly and taxonomy |
|
| Genomic features (genes, proteins, RNA) |
|
| Strain information and metadata |
|
| Antimicrobial resistance data |
|
| Epitope data including vaccine targets |
|
| Epitope assay results |
|
| Experiment metadata and results |
|
| Collection of genomes |
|
| Results associated with biosets |
|
| Nucleotide and protein sequences |
|
| Antibiotic information database |
|
| Enzyme classification reference |
|
| Gene Ontology reference data |
|
RQL Query Syntax
The BV-BRC API uses RQL (Relational Query Language) for advanced queries. Here are common operators:
Comparison Operators
eq(field,value)- Field equals valuene(field,value)- Field not equal to valuegt(field,value)- Field greater than valuelt(field,value)- Field less than valuein(field,(value1,value2))- Field contains any of the values
Logical Operators
and(expr1,expr2,...)- AND expressions togetheror(expr1,expr2,...)- OR expressions together
Query Modifiers
keyword(value)- Full-text searchselect(field1,field2)- Return only specified fieldssort([+|-]field)- Sort results (+ ascending, - descending)limit(count,offset)- Limit and offset results
Examples
Find Salmonella genomes with specific fields:
eq(organism,Salmonella)&select(genome_id,organism,strain,dna_size)&limit(10,0)Search for antibiotic-resistant Salmonella:
and(eq(organism,Salmonella),eq(amr_phenotype,resistant))&select(genome_id,organism,antibiotic)&limit(20,0)Full-text search across features:
keyword(virulence)&select(feature_id,product)&limit(15,0)Python Usage
You can also use the server programmatically:
import asyncio
from client import BVBRCClient
async def main():
client = BVBRCClient()
# Query genomes
results = await client.query(
"genome",
"eq(organism,Salmonella)&select(genome_id,organism)",
limit=10
)
# Get a specific record
record = await client.get_by_id("genome", "1234567.890")
asyncio.run(main())Error Handling
The server handles common errors gracefully:
Invalid data types: Returns error message
Network errors: Returns connection error details
Invalid queries: API returns error information
Missing records: Returns 404 error message
Performance Considerations
Default limit is 10 records; use
offsetfor paginationLarge result sets may take longer to retrieve
Use specific filters to reduce result size
RQL queries are optimized server-side for efficiency
Authentication
The BV-BRC public API requires no authentication. However, if you have private data access:
Set the
BVBRC_API_TOKENenvironment variable with your tokenThe client will automatically include it in requests
export BVBRC_API_TOKEN="your-token-here"
python bvbrc.pyAPI Documentation
For complete BV-BRC API documentation, visit:
Architecture
The server consists of three main modules:
bvbrc.py: Main MCP server with tool definitions and orchestration
client.py: HTTP client for BV-BRC API interactions
data_types.py: Data type definitions and metadata
Development
Running Tests
pytest tests/Code Style
black bvbrc.py client.py data_types.py
isort bvbrc.py client.py data_types.pyType Checking
mypy bvbrc.py client.py data_types.pyLicense
MIT License - See LICENSE file for details
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
Support
For issues with this MCP server, please open a GitHub issue.
For questions about the BV-BRC API itself, visit the BV-BRC help documentation.
Note: This MCP server is an independent tool and is not officially affiliated with or endorsed by BV-BRC.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/soham-shukla/mcp-bvbrc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server