BioPython MCP Server
Click on "Deploy 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., "@BioPython MCP Server translate this DNA sequence ATGGCCATTGTAATGGGCCGC to protein"
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.
BioPython MCP Server
A Model Context Protocol (MCP) server that provides comprehensive BioPython capabilities for biological sequence analysis, alignment, database access, and structural bioinformatics.
Overview
BioPython MCP bridges the powerful BioPython library with MCP-enabled applications like Claude Desktop, allowing seamless integration of bioinformatics tools into AI-assisted workflows. This enables researchers, clinicians, and developers to perform complex biological analyses through natural language interfaces.
Related MCP server: BioMCP
Motivation
Bioinformatics workflows often require switching between multiple tools and writing custom scripts. BioPython MCP simplifies this by:
Unified Interface: Access BioPython's capabilities through a standardized MCP protocol
AI Integration: Combine computational biology with AI-powered analysis and interpretation
Workflow Automation: Chain complex bioinformatics tasks through conversational interfaces
Accessibility: Make advanced bioinformatics tools available to non-programmers
Features
Sequence Operations
DNA/RNA translation and transcription
Reverse complement calculation
GC content analysis
Motif finding and pattern matching
Sequence Alignment
Pairwise global and local alignment
Multiple sequence alignment support
Alignment scoring with substitution matrices
Database Access
GenBank sequence retrieval
UniProt protein data access
PubMed literature search
NCBI database queries
Protein Structure Analysis
PDB structure fetching and parsing
Structure statistics calculation
Active site residue analysis
Phylogenetics
Phylogenetic tree construction (NJ, UPGMA)
Distance matrix calculation
Tree visualization
Installation
Requirements
Python 3.10 or higher
pip or uv package manager
Quick Install with uvx (Recommended)
The fastest way to run BioPython MCP without installation:
uvx biopython-mcpOr run from source:
git clone https://github.com/kmaneesh/biopython-mcp.git
cd biopython-mcp
uvx --from . biopython-mcpInstall from PyPI
pip install biopython-mcpInstall from Source with uv
git clone https://github.com/kmaneesh/biopython-mcp.git
cd biopython-mcp
uv venv --python 3.10
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e ".[dev]"Install from Source with pip
git clone https://github.com/kmaneesh/biopython-mcp.git
cd biopython-mcp
pip install -e ".[dev]"Development Installation
For contributing or development:
git clone https://github.com/kmaneesh/biopython-mcp.git
cd biopython-mcp
uv venv --python 3.10
source .venv/bin/activate
uv pip install -e ".[dev]"
pre-commit installQuick Start
Running the Server
Start the MCP server:
# With uvx (no installation needed)
uvx biopython-mcp
# Or if installed
biopython-mcpConfiguration for Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Using uvx (recommended):
{
"mcpServers": {
"biopython": {
"command": "uvx",
"args": ["biopython-mcp"],
"env": {
"NCBI_EMAIL": "you@example.com",
"NCBI_API_KEY": "your_ncbi_api_key",
"OBSIDIAN_VAULT_PATH": "/Users/yourname/Documents/ObsidianVault"
}
}
}
}Using installed package:
{
"mcpServers": {
"biopython": {
"command": "biopython-mcp",
"env": {
"NCBI_EMAIL": "you@example.com",
"NCBI_API_KEY": "your_ncbi_api_key",
"OBSIDIAN_VAULT_PATH": "/Users/yourname/Documents/ObsidianVault"
}
}
}
}Using local development version:
{
"mcpServers": {
"biopython": {
"command": "uvx",
"args": ["--from", "/path/to/biopython-mcp", "biopython-mcp"],
"env": {
"NCBI_EMAIL": "you@example.com",
"NCBI_API_KEY": "your_ncbi_api_key",
"OBSIDIAN_VAULT_PATH": "/Users/yourname/Documents/ObsidianVault"
}
}
}
}Basic Usage Example
Once configured, you can use BioPython tools through Claude Desktop:
User: Translate the DNA sequence ATGGCCATTGTAATGGGCCGC to protein
Claude: [Uses translate_sequence tool]
Result: MAIVMGR (7 amino acids)
User: What's the GC content of this sequence?
Claude: [Uses calculate_gc_content tool]
Result: 57.14% GC contentAvailable Tools
Sequence Operations
Tool | Description |
| Translate DNA/RNA to protein |
| Get reverse complement of DNA |
| Transcribe DNA to RNA |
| Calculate GC percentage |
| Find sequence motifs |
Alignment
Tool | Description |
| Align two sequences |
| Align multiple sequences |
| Score alignments |
Database Access
Tool | Description |
| Retrieve GenBank records |
| Retrieve UniProt entries |
| Search PubMed literature |
| Get sequences by ID |
Structure Analysis
Tool | Description |
| Download PDB structures |
| Analyze structure statistics |
| Extract active site info |
Phylogenetics
Tool | Description |
| Build phylogenetic trees |
| Compute distance matrices |
| Visualize trees |
See the Tools Reference for detailed documentation.
Configuration Options
Environment Variables
NCBI_EMAIL: Email address for NCBI Entrez queries (recommended)NCBI_API_KEY: API key for higher NCBI rate limits (optional)OBSIDIAN_VAULT_PATH: Path to your Obsidian vault root directory (optional, for pubmed_review)When set, the LLM will determine the directory path and filename for saving literature reviews
Can be overridden per-call with the
obsidian_vaultparameter
Setting Environment Variables
export NCBI_EMAIL="your.email@example.com"
export NCBI_API_KEY="your_api_key_here"
export OBSIDIAN_VAULT_PATH="/Users/yourname/Documents/ObsidianVault"Examples
Analyze a Gene Sequence
# 1. Fetch from GenBank
fetch_genbank(accession="NM_000207", email="user@example.com")
# 2. Calculate GC content
calculate_gc_content(sequence="ATGGCC...")
# 3. Translate to protein
translate_sequence(sequence="ATGGCC...")
# 4. Find start codons
find_motif(sequence="ATGGCC...", motif="ATG")Compare Sequences
# Perform global alignment
pairwise_align(
seq1="ATGGCCATTGTAATGGGCCGC",
seq2="ATGGCCATTGTTATGGGCCGC",
mode="global"
)Build Phylogenetic Tree
# Build tree from aligned sequences
build_phylogenetic_tree(
sequences=["ATGGCC...", "ATGGCT...", "ATGGCA..."],
method="nj",
labels=["Species_A", "Species_B", "Species_C"]
)See examples/ for complete workflow examples.
Documentation
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Development Setup
Fork the repository
Clone your fork:
git clone https://github.com/yourusername/biopython-mcp.gitInstall development dependencies:
pip install -e ".[dev]"Install pre-commit hooks:
pre-commit installCreate a feature branch:
git checkout -b feature-nameMake your changes and commit
Run tests:
pytestPush and create a pull request
Code Quality
We use:
Black for code formatting
Ruff for linting
mypy for type checking
pytest for testing
pre-commit for automated checks
Testing
Run tests:
pytestRun tests with coverage:
pytest --cov=biopython_mcp --cov-report=term-missingGenerate coverage reports (HTML and XML):
pytest --cov=biopython_mcp --cov-report=html --cov-report=xml --cov-report=term-missingView HTML coverage report:
open htmlcov/index.html # macOS
xdg-open htmlcov/index.html # Linux
start htmlcov/index.html # WindowsRun type checking:
mypy biopython_mcp/CI/CD Coverage
The project uses GitHub Actions for continuous integration with automatic coverage reporting to Codecov.
Coverage is automatically uploaded when:
Tests run on Ubuntu with Python 3.11
Pull requests are created or updated
Commits are pushed to
mainordevelopbranches
Note for Contributors: Coverage reports are publicly available. The CI workflow uses the CODECOV_TOKEN secret for authenticated uploads. Repository maintainers should configure this secret in GitHub repository settings.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Citation
If you use BioPython MCP in your research, please cite:
@software{biopython_mcp,
title = {BioPython MCP: Model Context Protocol Server for BioPython},
author = {BioPython MCP Contributors},
year = {2026},
url = {https://github.com/kmaneesh/biopython-mcp}
}Acknowledgments
Built on the excellent BioPython library
Uses FastMCP for MCP implementation
Inspired by the Model Context Protocol
Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Email: Contact maintainers
Roadmap
Add support for protein secondary structure prediction
Implement BLAST search integration
Add sequence feature annotation tools
Support for custom HMM profiles
Interactive structure visualization
Batch processing capabilities
REST API wrapper
Related Projects
BioPython - The core library
Model Context Protocol - The MCP specification
FastMCP - MCP framework for Python
Made with BioPython and MCP
Available Tools
32 toolsbuild_phylogenetic_treeA
Build a phylogenetic tree from sequences.
Args: sequences: List of aligned sequences method: Tree building method - 'nj' (neighbor-joining) or 'upgma' (default: 'nj') labels: Optional labels for sequences
Returns: Dictionary containing tree information
Inputs: sequences (required), method, labels. Returns: object
calculate_alignment_scoreA
Calculate the score of a given alignment using a substitution matrix.
Args: alignment_str: Aligned sequences (with gaps) as a formatted string matrix_name: Name of substitution matrix to use (default: 'BLOSUM62')
Returns: Dictionary containing alignment score and statistics
Inputs: alignment_str (required), matrix_name. Returns: object
calculate_distance_matrixC
Calculate pairwise distance matrix for sequences.
Args: sequences: List of aligned sequences model: Distance model to use (default: 'identity') labels: Optional labels for sequences
Returns: Dictionary containing distance matrix
Inputs: sequences (required), model, labels. Returns: object
calculate_gc_contentB
Calculate the GC content of a DNA or RNA sequence.
Args: sequence: DNA or RNA sequence string
Returns: Dictionary containing GC content percentage and counts
Inputs: sequence (required). Returns: object
calculate_structure_statsC
Calculate statistics for a PDB structure file.
Args: pdb_file: Path to PDB file
Returns: Dictionary containing structure statistics
Inputs: pdb_file (required). Returns: object
clear_entrez_cacheA
Clear cached Entrez results.
The caching system stores Entrez query results to reduce API calls and improve response times. Use this tool to clear stale cache data.
Args: database: Database name to clear (empty string clears all databases)
Returns: Dictionary containing: - success: Whether operation succeeded - cleared: Number of cache files removed - database: Database cleared (or "all" if empty string) - cache_location: Path to cache directory
Examples: >>> clear_entrez_cache() # Clear all caches >>> clear_entrez_cache("pubmed") # Clear only PubMed cache >>> clear_entrez_cache("gene") # Clear only Gene cache
Notes: - Caching is optional and controlled via use_cache parameter - Default TTL: 1 hour for searches, 7 days for fetches - Cache stored in ~/.biopython-mcp/cache/ - Cached data includes search results and summaries
Inputs: database. Returns: object
clinvar_variant_lookupA
Search ClinVar for genetic variants and their clinical interpretations.
This specialized wrapper combines entrez_search and entrez_summary for convenient ClinVar queries.
Args: variant: Variant notation (e.g., "rs80357906", "NM_000059.3:c.1521_1523del") gene: Gene symbol (e.g., "BRCA1", "TP53") condition: Condition/phenotype (e.g., "breast cancer", "Lynch syndrome") significance: Clinical significance filter: - "pathogenic" - "likely_pathogenic" - "benign" - "likely_benign" - "uncertain" max_results: Maximum results to return (default: 20) use_cache: Whether to use cached results (default: True)
Returns: Dictionary containing: - variants: List of variant dictionaries with clinical information - count: Number of variants returned - total_found: Total matches in ClinVar - query_terms: Dictionary of search terms used - cached: Whether result was from cache (if use_cache=True)
Examples: >>> clinvar_variant_lookup(gene="BRCA1", significance="pathogenic", max_results=5) >>> clinvar_variant_lookup(variant="rs80357906") >>> clinvar_variant_lookup(gene="TP53", condition="cancer", max_results=10)
Notes: - At least one search parameter must be provided - Multiple parameters are combined with AND logic - Rate limited (3 req/sec or 10 req/sec with API key) - Cached results inherit TTL from underlying entrez_search and entrez_summary calls
Inputs: variant, gene, condition, significance, +2 more. Returns: object
draw_treeA
Draw a phylogenetic tree from Newick format.
Args: tree_newick: Tree in Newick format output_format: Output format - 'ascii' for text representation (default: 'ascii')
Returns: Dictionary containing tree visualization
Inputs: tree_newick (required), output_format. Returns: object
entrez_fetchA
Fetch full records from NCBI Entrez by UID.
Args: database: Database name (e.g., 'pubmed', 'nucleotide', 'gene', 'protein') ids: Single ID, comma-separated string, or list of IDs rettype: Return type - 'xml', 'gb', 'fasta', 'abstract', etc. (default: 'xml') retmode: Return mode - 'xml', 'text', 'json' (default: 'xml') use_cache: Whether to use cached results (default: True, TTL: 7 days)
Returns: Dictionary containing: - data: Raw data in requested format (parsed if XML, raw text otherwise) - ids: List of IDs fetched - count: Number of records retrieved - format: Return type/mode used - database: Database queried - cached: Whether result was from cache (if use_cache=True)
Examples: >>> entrez_fetch("pubmed", "12345678", rettype="abstract", retmode="xml") >>> entrez_fetch("nucleotide", ["NM_000207", "NM_001127"], rettype="fasta", retmode="text") >>> entrez_fetch("gene", "672", rettype="xml") >>> entrez_fetch("protein", "NP_000198.1", rettype="fasta", retmode="text")
Notes: - For >100 IDs, consider batching to avoid timeouts - Valid rettype/retmode combinations depend on database - XML mode returns parsed Python dict/list structure - Text mode returns raw string data - Rate limited to 3 req/sec (or 10 req/sec with API key) - Cached results have 7 day TTL since record data is relatively static
Inputs: database (required), ids (required), rettype, retmode, +1 more. Returns: object
entrez_infoA
Get information about NCBI Entrez databases.
Args: database: Specific database name (empty string for list of all databases)
Returns: Dictionary containing database information: - If database="": List of all available databases with count - If database specified: Detailed info including description, record count, searchable fields, and available links
Examples: >>> entrez_info() # List all databases >>> entrez_info("pubmed") # Get PubMed database details >>> entrez_info("gene") # Get Gene database details
Inputs: database. Returns: object
entrez_linkA
Find related records across NCBI databases using ELink.
This tool discovers relationships between records in different databases, such as finding PubMed articles related to genes, or nucleotide sequences related to proteins.
Args: source_db: Source database (e.g., 'gene', 'protein', 'clinvar') target_db: Target database to link to (e.g., 'pubmed', 'nucleotide') ids: Single ID, comma-separated string, or list of IDs from source_db link_name: Specific link type (optional, empty = all available links)
Returns: Dictionary containing: - source_db: Source database name - target_db: Target database name - source_ids: List of source IDs queried - linked_ids: Dict mapping source IDs to lists of linked target IDs - total_links: Total number of links found - link_name: Link type used (if specified)
Examples: >>> entrez_link("gene", "pubmed", "672") # BRCA1 gene to PubMed >>> entrez_link("protein", "nucleotide", ["NP_000198.1", "NP_001121"]) >>> entrez_link("clinvar", "pubmed", "12345", link_name="clinvar_pubmed")
Notes: - Discovers cross-database relationships automatically - Use entrez_info() to see available link names for databases - Rate limited (3 req/sec or 10 req/sec with API key) - Different databases support different link types
Inputs: source_db (required), target_db (required), ids (required), link_name. Returns: object
entrez_searchA
Search any NCBI Entrez database using query syntax.
Args: database: Database to search (e.g., 'pubmed', 'nucleotide', 'gene', 'clinvar') query: Search query using Entrez syntax (see module docstring for examples) max_results: Maximum number of results to return (default: 20, max: 10000) sort: Sort order - 'relevance', 'pub_date', 'Author', etc. (default: 'relevance') use_cache: Whether to use cached results (default: True, TTL: 1 hour)
Returns: Dictionary containing: - ids: List of matching record IDs - count: Number of IDs returned - total_found: Total number of matches in database - query: Original query string - database: Database searched - cached: Whether result was from cache (if use_cache=True)
Examples: >>> entrez_search("pubmed", "BRCA1 AND breast cancer", max_results=10) >>> entrez_search("gene", "BRCA1[Gene Name] AND Homo sapiens[Organism]") >>> entrez_search("nucleotide", "Homo sapiens[Organism]", max_results=5) >>> entrez_search("clinvar", "BRCA1[Gene] AND Pathogenic[Clinical Significance]")
Notes: - Uses NCBI Entrez query syntax with field tags and Boolean operators - Rate limited to 3 req/sec (or 10 req/sec with API key) - See module docstring for comprehensive query syntax examples - Cached results have 1 hour TTL to balance freshness and API usage
Inputs: database (required), query (required), max_results, sort, +1 more. Returns: object
entrez_summaryA
Get document summaries (DocSums) from NCBI Entrez.
Document summaries are lightweight alternatives to full records, containing key metadata without the full content. Much faster for metadata-only queries.
Args: database: Database name (e.g., 'pubmed', 'gene', 'clinvar', 'nucleotide') ids: Single ID, comma-separated string, or list of IDs use_cache: Whether to use cached results (default: True, TTL: 7 days)
Returns: Dictionary containing: - summaries: List of document summary dictionaries - ids: List of IDs requested - count: Number of summaries returned - database: Database queried - cached: Whether result was from cache (if use_cache=True)
Examples: >>> entrez_summary("pubmed", "12345678") >>> entrez_summary("gene", ["672", "7157"]) # BRCA1, TP53 >>> entrez_summary("clinvar", "12345") >>> entrez_summary("nucleotide", "NM_000207,NM_001127")
Notes: - Much faster than entrez_fetch for metadata-only queries - Fields returned vary by database type - Rate limited to 3 req/sec (or 10 req/sec with API key) - Use this instead of fetch when you don't need full sequence/text - Cached results have 7 day TTL since summary data is relatively static
Inputs: database (required), ids (required), use_cache. Returns: object
fetch_genbankA
Fetch a sequence from GenBank by accession number.
Args: accession: GenBank accession number email: Email address for Entrez (required by NCBI) rettype: Return type - 'gb' for GenBank, 'fasta' for FASTA (default: 'gb')
Returns: Dictionary containing the sequence record and metadata
Inputs: accession (required), email, rettype. Returns: object
fetch_pdb_structureA
Fetch a protein structure from the PDB database.
Args: pdb_id: PDB identifier (e.g., '1ABC') file_format: File format - 'pdb' or 'cif' (default: 'pdb')
Returns: Dictionary containing structure information and file location
Inputs: pdb_id (required), file_format. Returns: object
fetch_sequence_by_idC
Fetch a sequence from NCBI database by ID.
Args: db: Database name ('nucleotide', 'protein', etc.) seq_id: Sequence identifier email: Email address for Entrez (required by NCBI)
Returns: Dictionary containing sequence information
Inputs: db (required), seq_id (required), email. Returns: object
fetch_uniprotA
Fetch a protein sequence from UniProt.
Args: uniprot_id: UniProt accession or ID format: Output format - 'fasta', 'txt', 'xml' (default: 'fasta')
Returns: Dictionary containing the UniProt record
Inputs: uniprot_id (required), format. Returns: object
find_active_siteB
Extract information about specific residues (e.g., active site).
Args: pdb_file: Path to PDB file residue_numbers: List of residue numbers to analyze chain_id: Chain identifier (default: 'A')
Returns: Dictionary containing active site residue information
Inputs: pdb_file (required), residue_numbers (required), chain_id. Returns: object
find_motifA
Find all occurrences of a motif in a sequence.
Args: sequence: DNA, RNA, or protein sequence to search motif: Motif pattern to find overlapping: Allow overlapping matches (default: True)
Returns: Dictionary containing motif positions and count
Inputs: sequence (required), motif (required), overlapping. Returns: object
gene_info_fetchA
Fetch comprehensive gene information from NCBI Gene database.
This specialized wrapper provides easy access to gene records with structured output.
Args: gene_symbol: Gene symbol (e.g., "BRCA1", "TP53") gene_id: NCBI Gene ID (e.g., "672" for BRCA1) organism: Organism name (default: "Homo sapiens") use_cache: Whether to use cached results (default: True)
Returns: Dictionary containing: - gene_id: NCBI Gene ID - symbol: Official gene symbol - name: Full gene name - summary: Gene summary/description - organism: Organism name - chromosome: Chromosomal location - aliases: List of gene aliases - type: Gene type (protein-coding, ncRNA, etc.) - cached: Whether result was from cache (if use_cache=True)
Examples: >>> gene_info_fetch(gene_symbol="BRCA1") >>> gene_info_fetch(gene_id="672") >>> gene_info_fetch(gene_symbol="Brca1", organism="Mus musculus")
Notes: - Provide either gene_symbol or gene_id (gene_id takes precedence) - Organism filter helps disambiguate gene symbols - Rate limited (3 req/sec or 10 req/sec with API key) - Cached results inherit TTL from underlying entrez_search and entrez_summary calls
Inputs: gene_symbol, gene_id, organism, use_cache. Returns: object
get_doi_urlA
Get the URL for a DOI.
Args: doi: Digital Object Identifier
Returns: Full URL to DOI resolver
Examples: >>> get_doi_url("10.1371/journal.pone.0012345") 'https://doi.org/10.1371/journal.pone.0012345'
Inputs: doi (required). Returns: result
get_pmc_urlA
Get the URL for a PubMed Central article.
Args: pmc_id: PMC identifier (with or without 'PMC' prefix)
Returns: Full URL to PMC article page
Examples: >>> get_pmc_url("PMC3539452") 'https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3539452/'
>>> get_pmc_url("3539452")
'https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3539452/'Inputs: pmc_id (required). Returns: result
multiple_sequence_alignmentB
Perform multiple sequence alignment.
Args: sequences: List of sequences to align algorithm: Alignment algorithm to use (default: 'clustalw')
Returns: Dictionary containing alignment results
Note: This is a placeholder that demonstrates the structure. Full implementation would require external tools like MUSCLE or Clustal Omega.
Inputs: sequences (required), algorithm. Returns: object
pairwise_alignA
Perform pairwise sequence alignment.
Args: seq1: First sequence seq2: Second sequence mode: Alignment mode - 'global' or 'local' (default: 'global') match_score: Score for matching residues (default: 2.0) mismatch_score: Score for mismatching residues (default: -1.0) gap_open: Gap opening penalty (default: -2.0) gap_extend: Gap extension penalty (default: -0.5)
Returns: Dictionary containing alignment results and statistics
Inputs: seq1 (required), seq2 (required), mode, match_score, +3 more. Returns: object
pubmed_fetchA
Fetch full-text article from PubMed Central (PMC).
This function retrieves open access full-text articles from PMC using the PMC OAI service. Only works for open access articles that have a PMC ID.
Args: pmc_id: PMC identifier (with or without 'PMC' prefix, e.g., "PMC123456" or "123456") format: Output format - "xml" for structured XML or "text" for plain text (default: "xml") timeout: Request timeout in seconds (default: 30)
Returns: Dictionary containing the full-text article and metadata: - success (bool): Whether fetch was successful - pmc_id (str): The PMC identifier - format (str): Format of returned content - content (str): Full-text article content - content_length (int): Length of content in characters - error (str): Error message if unsuccessful
Examples: >>> result = pubmed_fetch("PMC3539452") >>> if result["success"]: ... print(result["content"][:100])
>>> result = pubmed_fetch("3539452", format="text")
>>> print(result["content"])Note: - Only works for open access articles - Articles without PMC IDs cannot be fetched - Rate limiting applies (use with entrez_rate_limit context manager) - XML format preserves structure (sections, figures, tables, references) - Text format provides simplified plain text extraction
Inputs: pmc_id (required), format, timeout. Returns: object
pubmed_reviewA
Create a formatted literature review from PubMed search results and write to MD file.
This function searches PubMed, fetches article metadata, formats it as markdown with complete abstracts, and writes the content directly to a file. The LLM determines both the storage location and filename.
Args: query: PubMed search query (supports full Entrez syntax including year filters) Example: "BRCA1 AND breast cancer AND 2020:2024[PDAT]" path: Relative directory path within vault (e.g., "research/cancer" or "genetics/reviews") The LLM decides the directory structure. filename: Name of the markdown file (e.g., "brca1_review_2024.md" or "alport_syndrome.md") The LLM decides the filename. Should include .md extension. obsidian_vault: Path to Obsidian vault root (optional, defaults to OBSIDIAN_VAULT_PATH env variable) Example: "/Users/user/Documents/MyVault" max_results: Maximum number of articles to include (default: 25, max: 1000) sort: Sort order - "pub_date", "relevance", etc. (default: "pub_date")
Returns: Dictionary with review results and metadata: - status: "success" or "error" - filepath: Full path where file was written - articles_found: Total number of articles found - articles_written: Number of articles successfully processed - articles_with_pmc: Count of articles with PMC IDs - articles_with_doi: Count of articles with DOIs - query: Original search query - file_size_kb: File size in kilobytes - year_range: {"min": int, "max": int} - top_journals: List of top 5 journals by article count - execution_time_seconds: Time taken to generate review
Examples: >>> # Using environment variable for vault path >>> result = pubmed_review( ... query="COL4A3[Gene] AND Alport syndrome", ... path="genetics/reviews", ... filename="alport_syndrome_2024.md" ... )
>>> # Overriding vault path
>>> result = pubmed_review(
... query="BRCA1 AND breast cancer AND 2020:2024[PDAT]",
... path="oncology/brca1",
... filename="literature_review_jan2024.md",
... obsidian_vault="/Users/user/Vault",
... max_results=50
... )Notes: - Vault path comes from OBSIDIAN_VAULT_PATH environment variable or obsidian_vault parameter - LLM controls both directory structure (path) and filename separately - Writes markdown file directly to disk with complete abstracts - Fetches articles in batches of 20 (NCBI limit) - Respects NCBI rate limits (3/sec or 10/sec with API key) - For very large reviews (>500 articles), consider splitting into multiple calls - Includes Obsidian-compatible YAML frontmatter
Inputs: query (required), path (required), filename (required), obsidian_vault, +2 more. Returns: object
pubmed_searchA
Search PubMed with enhanced metadata extraction.
This specialized wrapper provides enriched PubMed search results with structured article metadata.
Args: query: PubMed search query (supports all Entrez query syntax) max_results: Maximum results to return (default: 10) sort: Sort order - "relevance", "pub_date", "first_author" (default: "relevance") year_start: Filter by publication year start (e.g., 2020) year_end: Filter by publication year end (e.g., 2024) use_cache: Whether to use cached results (default: True, TTL: 1 hour)
Returns: Dictionary containing: - articles: List of article dictionaries with: - pmid: PubMed ID - title: Article title - abstract: Full abstract text - authors: List of author names - journal: Journal name - year: Publication year - date: Publication date - doi: DOI (if available) - pmc_id: PMC ID (if available) - count: Number of articles returned - total_found: Total matches in PubMed - cached: Whether result was from cache (if use_cache=True)
Examples: >>> pubmed_search("BRCA1 AND breast cancer", max_results=5) >>> pubmed_search("Smith J[Author]", sort="pub_date") >>> pubmed_search("diabetes", year_start=2020, year_end=2024, max_results=20)
Notes: - Uses comprehensive Entrez query syntax - Returns full abstracts when available - Rate limited (3 req/sec or 10 req/sec with API key) - Cached results have 1 hour TTL to balance freshness and API usage
Inputs: query (required), max_results, sort, year_start, +2 more. Returns: object
reverse_complementC
Get the reverse complement of a DNA sequence.
Args: sequence: DNA sequence string
Returns: Dictionary containing the reverse complement and metadata
Inputs: sequence (required). Returns: object
search_pubmedC
Search PubMed for scientific articles.
Args: query: Search query string max_results: Maximum number of results to return (default: 10) email: Email address for Entrez (required by NCBI)
Returns: Dictionary containing search results with PMIDs and article information
Inputs: query (required), max_results, email. Returns: object
transcribe_dnaA
Transcribe DNA to RNA (or reverse transcribe RNA to DNA).
Args: sequence: DNA or RNA sequence string reverse: If True, reverse transcribe RNA to DNA (default: False)
Returns: Dictionary containing the transcribed sequence and metadata
Inputs: sequence (required), reverse. Returns: object
translate_sequenceA
Translate a DNA or RNA sequence to protein.
Args: sequence: DNA or RNA sequence string table: Genetic code table to use (default: 1 for standard code) to_stop: Stop translation at first stop codon (default: False)
Returns: Dictionary containing the translated protein sequence and metadata
Inputs: sequence (required), table, to_stop. Returns: object
variant_literature_linkA
Find literature (PubMed) articles linked to a specific variant.
Uses Entrez ELink to find cross-database relationships between variant databases and PubMed.
Args: variant_id: Variant ID (ClinVar ID or dbSNP rs number) source_db: Source database - "clinvar" or "snp" (default: "clinvar") max_results: Maximum articles to return (default: 10)
Returns: Dictionary containing: - variant_id: Input variant ID - source_db: Source database used - linked_pmids: List of linked PubMed IDs - articles: List of article summaries - count: Number of articles found
Examples: >>> variant_literature_link("12345", source_db="clinvar") >>> variant_literature_link("80357906", source_db="snp", max_results=5)
Notes: - Not all variants have linked literature - Uses Entrez ELink for database cross-referencing - Rate limited (3 req/sec or 10 req/sec with API key)
Inputs: variant_id (required), source_db, max_results. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 32 tools
There is some overlap between tools, particularly with multiple PubMed search functions (search_pubmed and pubmed_search) and the generic entrez_search also able to search PubMed. Other tools are largely distinct, but the redundancy creates potential confusion for an agent selecting the appropriate tool.
Most tools follow a verb_noun pattern (e.g., calculate_gc_content, fetch_uniprot), but a few deviate like reverse_complement (verb_object) and clinvar_variant_lookup (object_action). Overall naming is clear and mostly consistent.
With 32 tools covering multiple subdomains (sequence analysis, alignment, phylogenetics, NCBI, structure, literature), the tool count is high for a single MCP server. This breadth suggests the server could be split into more focused servers for better manageability and clarity.
The toolset covers a wide range of bioinformatics tasks, but there are notable gaps such as missing tools for sequence format conversion, codon usage analysis, or comprehensive structural analysis. Additionally, the multiple_sequence_alignment tool is noted as a placeholder, indicating incomplete implementation.
Maintenance
Related MCP Connectors
AI-powered bioprotocol optimization — generate, search, and manage lab protocols via MCP
Protein analysis: ESM-2/ESMC embeddings, mutation scoring, landscape scans, ESMFold structure.
Find open biology and chemistry AI models, bioinformatics tools and databases, and run them online.
Connect AI clients to biomedical data and tools.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enhances language models with protein structure analysis capabilities, enabling detailed active site analysis and disease-related protein searches through established protein databases.220ISC
- AlicenseAqualityAmaintenanceProvides LLMs with structured access to critical biomedical databases including PubTator3 (PubMed/PMC), ClinicalTrials.gov, and MyVariant.info through the Model Context Protocol.4635683MIT
- AlicenseBqualityDmaintenanceA comprehensive Model Context Protocol server that enables advanced PubMed literature search, citation formatting, and research analysis through natural language interactions.1210MIT
- FlicenseBqualityDmaintenanceProvides programmatic access to AlphaFold protein structure predictions and UniProt data, enabling users to retrieve protein structures, summaries, and annotations through natural language.3-