Skip to main content
Glama
T5Chem MCP Server

T5Chem MCP Server

by bugatti742

T5Chem

License: MIT Python 3.10+

A Unified Deep Learning Model for Multi-task Reaction Predictions with MCP (Model Context Protocol) support.

Features

  • Retrosynthesis Prediction: Predict reactants from a product molecule

  • Product Prediction: Predict products from reactants and reagents

  • Reagents Prediction: Predict required reagents for a reaction

  • Molecule Validation: Validate SMILES strings

  • Molecular Properties: Calculate detailed molecular properties

  • MCP Server: Integrate with AI assistants through Model Context Protocol

Related MCP server: Chempane

Installation

# Clone the repository
git clone https://github.com/bugatti742/t5chem.git
cd t5chem

# Install with MCP support
pip install -e ".[mcp]"

# Or install all dependencies
pip install -e .

Download Pre-trained Model

Large model files are NOT included in the repository. Download them separately:

# Download USPTO multi-task model
wget https://yzhang.hpc.nyu.edu/T5Chem/models/USPTO_MT_model.tar.bz2
tar -xjvf USPTO_MT_model.tar.bz2 -C model/

Usage

As MCP Server

Start the MCP server:

# Using default model path (model/)
t5chem-mcp

# Specify custom model path
t5chem-mcp --model_dir /path/to/your/model

Available MCP Tools

  1. predict_retrosynthesis: Predict retrosynthesis routes

  2. predict_product: Predict product from reactants

  3. predict_reagents: Predict reagents for a reaction

  4. validate_molecule: Validate SMILES strings

  5. get_molecule_properties: Get molecular properties

Command Line

# Batch prediction
t5chem predict --data_dir data/sample/reactants/ --model_dir model/

# Training
t5chem train --data_dir data/sample/reactants/ --output_dir model/ --task_type reactants

Requirements

  • Python 3.10+

  • PyTorch 2.2+

  • Transformers 4.38+

  • RDKit 2022.9+

  • MCP SDK 1.0+

Citation

Jieyu Lu and Yingkai Zhang, J Chem Inf Model, 62, 1376 - 1387 (2022)

License

MIT License

Available Tools

5 tools
get_molecule_propertiesD

Inputs: smiles (required).

predict_productD

Inputs: reactants_smiles (required), model_dir, num_beams, num_preds, +1 more.

predict_reagentsD

Inputs: product_smiles (required), reactants_smiles (required), model_dir, num_beams, +1 more.

predict_retrosynthesisD

Inputs: product_smiles (required), model_dir, num_beams, num_preds.

validate_moleculeD

Inputs: smiles (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.1/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct chemical task: properties, product prediction, reagent prediction, retrosynthesis, and validation. There is no overlap in functionality.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., get_molecule_properties, predict_product) with clear verbs and nouns, enhancing predictability.

    Tool Count5/5

    Five tools cover the essential operations for a chemistry prediction server without being excessive or insufficient for the stated purpose.

    Completeness4/5

    Core workflows (property retrieval, forward/reverse prediction, validation) are covered. A tool for reaction conditions (e.g., temperature/solvent) is a minor gap but does not impede typical use.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      Enables generation of chemical structures, reactions, spectra, titration curves, 3D models, and more from natural language or SMILES, using RDKit for offline rendering and supporting formats like PNG, SVG, CDXML, and Anki decks.
      18
      34
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables file operations, database queries, web search, and calculations through the Model Context Protocol, allowing integration with clients like Claude Desktop and Cursor.
      1
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to render and validate publication-quality multi-step reaction schemes, resolve compound names, extract structures from images or experimental text, and manage reagent aliases through the Model Context Protocol.
      MIT