Mcp Viz Reaction Network

mcp_viz_reaction_network
preview Other cloud unknown
Draw a reaction network as a directed graph figure: nodes are species (reactants, intermediates, products, catalysts), edges are reactions (A -> B, B -> C, A -> C ...). Use it for branched pathways, shortcuts, catalytic cycles, reversible steps and mechanisms with rate constants. Species roles are classified from the graph or given as node_types. For a linear synthesis drawn with structures use mcp_viz_multi_reaction. Saves interactive HTML (Plotly) or a static PNG in the workspace when output_path is given.

Preview. This tool is available but has not yet completed Paramus output verification. Treat results as provisional.

Parameters

NameTypeRequiredDescription
reactions array yes List of reactions defining the network. Each reaction connects reactants to products via directed edges. Each item is an object with: reactants (array of string, required): List of reactant species names or SMILES; products (array of string, required): List of product species names or SMILES; label (string, optional): Reaction label displayed on the edge (e.g., 'R1', 'initiation', 'k₁'); rate_constant (number, optional): Rate constant for edge annotation; conditions (string, optional): Reaction conditions shown on edge (e.g., 'hv', '80°C', 'Pd/C, H₂'); reversible (boolean, optional): If true, draws a reverse arrow to indicate equilibrium; catalysts (array of string, optional): Species that catalyze this reaction (creates a catalytic loop in the graph).
species_labels object no Optional mapping of species IDs to display labels (e.g., {"CH3OH": "Methanol"})
node_types object no Explicit species role assignment. When omitted, roles are auto-classified from graph topology: in-degree=0 → reactant, out-degree=0 → product, both → intermediate.
layout string no Graph layout algorithm. 'hierarchical' is best for sequential mechanisms, 'shell' for catalytic cycles, 'spring' for general networks.
highlight_species array no Species to highlight in red
show_rate_constants boolean no Legacy shortcut: if true, sets edge_label_mode to 'all'
edge_label_mode string no What to show on edges: 'label' = reaction name, 'rate' = k values, 'conditions' = conditions text, 'all' = everything, 'none' = hide
show_legend boolean no Show a color legend for node types (reactant/intermediate/product/catalyst)
node_size integer no Base node size in points² (matplotlib). Larger values for fewer nodes.
title string no Title for the network diagram
output_format string no Output format: interactive HTML (Plotly) or static PNG (matplotlib)
width integer no Figure width in pixels
height integer no Figure height in pixels
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.
overwrite boolean no Overwrite existing file. If false and file exists, returns an error.

Examples