ketcher-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., "@ketcher-mcp-serverValidate SMILES: CCO"
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.
Ketcher MCP Server
MCP (Model Context Protocol) server for Ketcher chemical structure editor integration with Claude.
Features
๐งช Open Ketcher Editor: Launch Ketcher web interface in browser
๐ Format Conversion: Convert between SMILES, MOL, InChI formats
๐ผ๏ธ Image Generation: Generate PNG/SVG images from SMILES
๐ Molecular Properties: Calculate molecular weight, LogP, TPSA, etc.
โ Validation: Validate SMILES strings
Related MCP server: ChemDraw Server
Installation
Prerequisites
Python 3.10 or higher (tested with Python 3.11)
pip
Note: If you're using macOS with system Python 3.9, you'll need to install Python 3.10+ separately:
# Using Homebrew
brew install python@3.11
# Verify installation
/opt/homebrew/bin/python3.11 --versionInstall Dependencies
cd ketcher-mcp-server
# If using Python 3.11 from Homebrew
/opt/homebrew/bin/python3.11 -m pip install -e .
# Or if python3 is already 3.10+
pip install -e .For Development
pip install -e ".[dev]"Usage
Running the Server
python -m ketcher_mcp.serverOr use with mcp CLI:
mcp run ketcher_mcp.serverConfiguration for Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"ketcher": {
"command": "/opt/homebrew/bin/python3.11",
"args": ["-m", "ketcher_mcp.server"]
}
}
}Note: Adjust the Python path based on your installation:
Homebrew Python 3.11:
/opt/homebrew/bin/python3.11System Python 3.10+:
python3orpython3.10Check your path with:
which python3.11
On macOS, the config file is located at:
~/Library/Application Support/Claude/claude_desktop_config.jsonAvailable Tools
1. open_ketcher
Opens Ketcher chemical structure editor in your default web browser.
Example:
Open Ketcher editor2. smiles_to_image
Converts SMILES notation to molecular structure image.
Parameters:
smiles(str): SMILES notationwidth(int, optional): Image width (default: 400)height(int, optional): Image height (default: 300)format(str, optional): 'png' or 'svg' (default: 'png')
Example:
Generate image for aspirin: CC(=O)Oc1ccccc1C(=O)O3. smiles_to_mol
Converts SMILES to MOL file format.
Parameters:
smiles(str): SMILES notation
Example:
Convert CC(=O)Oc1ccccc1C(=O)O to MOL format4. mol_to_smiles
Converts MOL file format to SMILES.
Parameters:
mol_block(str): MOL file content
5. get_molecule_properties
Calculates molecular properties from SMILES.
Parameters:
smiles(str): SMILES notation
Returns:
Molecular formula
Molecular weight
Number of atoms, bonds, rings
LogP, TPSA
Hydrogen bond donors/acceptors
Rotatable bonds
Example:
Get properties of caffeine: CN1C=NC2=C1C(=O)N(C(=O)N2C)C6. validate_smiles
Validates a SMILES string.
Parameters:
smiles(str): SMILES notation to validate
Example:
Validate SMILES: CCO7. smiles_to_inchi
Converts SMILES to InChI identifier.
Parameters:
smiles(str): SMILES notation
8. smiles_to_inchikey
Converts SMILES to InChIKey identifier.
Parameters:
smiles(str): SMILES notation
Example Workflows
Workflow 1: Draw and Analyze a Molecule
"Open Ketcher editor"
Draw your molecule in Ketcher
Copy the SMILES from Ketcher
"Get properties of [SMILES]"
"Generate image for [SMILES]"
Workflow 2: Convert Chemical Formats
"Convert aspirin SMILES to MOL format: CC(=O)Oc1ccccc1C(=O)O"
"Convert this MOL to InChI"
"Generate InChIKey"
Workflow 3: Validate and Visualize
"Validate SMILES: CCO"
"Generate SVG image for CCO"
"Get molecular properties"
Technical Details
Architecture
FastMCP: MCP server framework
RDKit: Chemical informatics library for molecule processing
Ketcher: Web-based chemical structure editor (via CDN)
Supported Formats
SMILES: Simplified Molecular Input Line Entry System
MOL: MDL Molfile format
InChI: IUPAC International Chemical Identifier
InChIKey: Hashed InChI for database lookups
PNG/SVG: Image formats for visualization
Troubleshooting
RDKit Installation Issues
If you encounter issues installing RDKit:
# Using conda (recommended)
conda install -c conda-forge rdkit
# Or using pip
pip install rdkit-pypiKetcher Not Opening
Make sure you have a default web browser configured. The server uses Python's webbrowser module.
Development
Running Tests
pytestProject Structure
ketcher-mcp-server/
โโโ ketcher_mcp/
โ โโโ __init__.py
โ โโโ server.py
โโโ pyproject.toml
โโโ README.mdContributing
Contributions are welcome! Please feel free to submit issues or pull requests.
License
MIT License
Acknowledgments
Ketcher - EPAM's open-source chemical structure editor
RDKit - Open-source cheminformatics toolkit
FastMCP - Fast MCP server framework
Version History
0.1.0 (2026-03-09): Initial release
Basic SMILES/MOL conversion
Image generation
Molecular property calculation
Ketcher integration
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/lunnynight/ketcher-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server