Mcp Viz Polymer Repeat
mcp_viz_polymer_repeat
Open in the interactive browser →
Visualize polymer repeat units from BigSMILES or PSMILES notation. Shows the repeat unit structure with optional bonding descriptors and can display multiple repeat units to show the polymer chain. 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 |
|---|---|---|---|
bigsmiles |
string | yes | BigSMILES or PSMILES notation for the polymer. E.g., '{[][<]CC(c1ccccc1)[>][]}' for polystyrene |
n_repeats |
integer | no | Number of repeat units to show (1-5). Default: 1 |
show_bonding_descriptors |
boolean | no | Show [<] and [>] bonding descriptor labels. Default: true |
size |
array | no | Image size as [width, height] in pixels. Default: [500, 300] |
output_format |
string | no | Output format: 'svg' or 'png'. Default: 'svg' |
show_brackets |
boolean | no | Show polymer bracket notation with subscript n. Default: true |
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
Polystyrene repeat unit
Polymer structure visualization
Prompt: “Show the repeat unit of polystyrene”
Polyethylene chain segment
Visualizing polymer chain
Prompt: “Show 3 repeat units of polyethylene”
PMMA repeat unit
Acrylic polymer visualization
Prompt: “Visualize poly(methyl methacrylate) structure”
Usage notes
- Supports BigSMILES notation with {} stochastic blocks
- Also supports PSMILES with [*] connection points
- Repeat unit is extracted and rendered with RDKit
- Bonding descriptors [<] and [>] shown as labels
Related tools
PMMAPolyethylenePolystyreneRDKitSMILESautobigsmilesbondingbracketschaincheminformaticsdescriptorsdrug designfingerprintformatmcpmolecular descriptoropenoutputoverwrite