Mcp Viz Molecule 2D
mcp_viz_molecule_2d
Open in the interactive browser →
Generate publication-quality 2D molecular structure diagrams from SMILES. Supports atom highlighting, multiple output formats (SVG, PNG), and various display options. Returns base64-encoded image for inline display.
Preview. This tool is available but has not yet completed Paramus output verification. Treat results as provisional.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
smiles |
string | yes | SMILES string of the molecule to visualize |
highlight_atoms |
array | no | List of atom indices to highlight (0-based) |
highlight_color |
array | no | RGB color for highlighting as [R, G, B] with values 0-1. Default: [1, 0.8, 0.8] (light red) |
size |
array | no | Image size as [width, height] in pixels. Default: [400, 300] |
output_format |
string | no | Output format: 'svg' or 'png'. Default: 'svg' |
show_atom_indices |
boolean | no | Show atom index numbers on the structure. Default: false |
kekulize |
boolean | no | Show Kekulé structure (alternating single/double bonds). Default: false |
output_path |
string | no | Workspace-relative file path for the figure. A bare file name is placed in the chat's files folder. |
auto_open |
boolean | no | Open the saved file in system default application. Only applies when output_path is provided. Default: false |
overwrite |
boolean | no | Overwrite existing file. If false and file exists, returns an error. Default: true |
Examples
Visualize styrene monomer
Basic molecule visualization
Prompt: “Show me the structure of styrene”
Highlight vinyl group in styrene
Highlighting reactive sites
Prompt: “Show styrene with the vinyl group highlighted”
AIBN initiator structure
Free radical polymerization initiator
Prompt: “Visualize the AIBN initiator molecule”
Usage notes
- SVG format is recommended for scalability and publication
- PNG format uses 300 DPI for print quality
- Atom indices are 0-based matching RDKit convention
- Use highlight_atoms to show reactive sites or functional groups
Related tools
AIBNHighlightRDKitVisualizeatomatomsautocheminformaticscolordrug designfingerprintformatgroupindicesinitiatorkekulizemcpmolecularmolecular descriptormolecule