Molecular Docking MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Molecular Docking MCP Server
A Model Context Protocol (MCP) server for molecular docking simulation using AutoDock Vina. This server enables docking small molecules against protein targets by providing SMILES strings and target names.
Features
Molecular Docking: Dock small molecules against protein targets using AutoDock Vina
SMILES Input: Accept molecular structures in SMILES notation
Multiple Targets: Support for multiple protein targets (currently includes AKT1)
MCP Protocol: Standardized API through Model Context Protocol
Comprehensive Logging: Detailed logging for debugging and monitoring
Error Handling: Robust error handling with informative messages
Related MCP server: BoltzGen MCP
Installation
Prerequisites
AutoDock Vina: Install AutoDock Vina for molecular docking from https://github.com/ccsb-scripps/AutoDock-Vina/releases/download/v1.2.2/vina_1.2.2_macos_arm64.
Please make sure that the vina command is in your PATH.
which vinaPython Dependencies: Install using uv or pip
# Using uv (recommended) uv pip install -e .
Required Dependencies
rdkit>=2024.9.6- Chemical informatics toolkitmcp>=1.2.0- Model Context Protocolmeeko>=0.5.0- PDBQT file preparationpathlib- Path handling utilities
Usage
Starting the MCP Server
# From the project directory
python server.pyAvailable Tools
The MCP server provides three main tools:
1. run_molecular_docking
Dock a molecule against a target protein.
Parameters:
smiles(str): SMILES string of the molecule to docktarget(str, optional): Target protein name (default: "akt1")
Returns:
smiles: Input SMILES stringtarget: Target protein namebinding_affinity: Best binding affinity (kcal/mol)all_scores: List of all binding scoresbest_score: Best (lowest) binding scorenum_poses: Number of generated poses
2. list_available_targets
Get list of all available target proteins.
Returns:
targets: List of target namestarget_count: Number of available targetstarget_details: Detailed information for each target
3. get_target_info
Get detailed configuration for a specific target.
Parameters:
target(str, optional): Target protein name (default: "akt1")
Returns:
target: Target namereceptor_file: Path to receptor PDBQT filecenter_coordinates: Binding site center coordinatessearch_space: Search space dimensionscomputational_settings: CPU and exhaustiveness settings
Example Usage
# Example docking simulation
from molDocking import dock_molecule, get_available_targets
# List available targets
targets = get_available_targets()
print(f"Available targets: {targets}")
# Dock aspirin against AKT1
result = dock_molecule("CC(=O)OC1=CC=CC=C1C(=O)O", "akt1")
print(f"Best binding affinity: {result['best_score']} kcal/mol")Target Configuration
Current Targets
AKT1: Protein kinase involved in cell survival and metabolism
Adding New Targets
To add a new target:
Create a directory in
../docking/with the target nameAdd the receptor PDBQT file as
receptor.pdbqtUpdate the configuration in
molDocking/docking.py:
config = {
'your_target': {
'receptor': f'{DOCKING_DIR}/your_target/receptor.pdbqt',
'center_x': 0.0, # Binding site center X
'center_y': 0.0, # Binding site center Y
'center_z': 0.0, # Binding site center Z
'size_x': 25, # Search space size X
'size_y': 25, # Search space size Y
'size_z': 25, # Search space size Z
'cpu': 8, # Number of CPU cores
'exhaustiveness': 8 # Search exhaustiveness
}
}MCP Configuration
To use this server with an MCP client, use the configuration in config file.
{
"mcpServers": {
"molecular-docking": {
"command": "uv",
"args": [
"--directory", "/PATH/TO/MCP_Vina",
"run", "server.py"
],
"env": {
"UV_PROJECT_ENVIRONMENT": "/PATH/TO/MCP_Vina/.venv"
}
}
}
}File Structure
molDocking/
├── README.md
├── pyproject.toml
├── server.py # MCP server entry point
├── docking/ # Target protein files
│ └── akt1/
│ ├── config.txt
│ └── receptor.pdbqt
└── molDocking/
├── __init__.py # Package initialization
├── __main__.py # Module entry point
└── docking.py # Core docking functionality
Troubleshooting
Common Issues
Vina not found: Ensure AutoDock Vina is installed and in PATH
Missing dependencies: Install all required Python packages
Invalid SMILES: Check SMILES string format
Target not found: Verify target exists in configuration
## Development
### Running Tests
```bash
# Install development dependencies
uv pip install -e .[dev]
# Run tests
pytestCode Formatting
# Format code
black molDocking/
isort molDocking/License
MIT License
Dependencies Credits
RDKit: Chemical informatics and machine learning toolkit
AutoDock Vina: Molecular docking program
Meeko: PDBQT file preparation toolkit
MCP: Model Context Protocol for AI integration
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Support
For issues and questions:
Check the troubleshooting section
Review the logs for error details
Create an issue on the project repository
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Link compounds to protein targets, rank bioactivity, and look up drug mechanisms and indications.
Fold proteins, co-fold ligands with binding affinity, design binders and embed sequences.
Connect AI clients to biomedical data and tools.
Run protein folding, docking, design and sequence analysis tools, and read their results.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides chemical informatics endpoints for converting between chemical names and SMILES, processing molecule structures, and comparing molecules, with MCP compatibility.5MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI-powered protein design, including binders, peptides, and custom proteins, with GPU-accelerated Docker deployment and async job management.2-
- FlicenseNot gradedqualityCmaintenanceEnables protein modeling and design using the Rosetta suite via Docker, including structure refinement, mutation stability analysis, docking, and loop modeling through natural language commands.-
- AlicenseNot gradedqualityCmaintenanceEnables querying BindingDB for measured protein/small-molecule binding affinities, including finding ligands that bind a protein, protein targets for a compound, and affinities from PDB structures.56 npmMIT