T5Chem MCP Server
Enables chemical reaction predictions (retrosynthesis, product, reagents), molecule validation, and property calculation through the Model Context Protocol, integrating with AI assistants.
README
T5Chem
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
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
- predict_retrosynthesis: Predict retrosynthesis routes
- predict_product: Predict product from reactants
- predict_reagents: Predict reagents for a reaction
- validate_molecule: Validate SMILES strings
- 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.