MCP server for controlling OriginLab Origin Pro via COM automation
Add another data series to an existing graph. Args: graph_name: Existing graph name data_book: Source workbook name data_sheet: Source sheet name x_col: X column number (1-based) y_col: Y column number (1-based) plot_type: Plot type (scatter, line, line+symbol, etc.) y_error_col: Optional Y error column (1-based, 0=none) Returns: Success message
Apply complete publication styling to a graph in ONE call. Sets font (bold), colors, ticks, frame, and legend all at once. Designed to minimize token usage — call this once instead of many separate tools. Args: graph_name: Graph name x_label: X axis label with units, e.g. "Temperature (K)" y_label: Y axis label with units, e.g. "Absorbance (a.u.)" x_min: X axis minimum (None=auto) x_max: X axis maximum (None=auto) y_min: Y axis minimum (None=auto) y_max: Y axis maximum (None=auto) legend_entries: Comma-separated legend entries, e.g. "Sample A,Sample B" legend_position: top-left, top-right, bottom-left, bottom-right Returns: Summary of applied styling
Create a graph from worksheet data. Args: graph_name: Name for the graph window data_book: Source workbook name data_sheet: Source sheet name x_col: X column number (1-based) y_col: Y column number (1-based) plot_type: scatter, line, line+symbol, column, bar, area, histogram, box, contour, pie, bubble y_error_col: Optional Y error column number (1-based, 0=none) title: Optional graph title Returns: Created graph name
Create a new workbook with a worksheet in Origin. Args: book_name: Name for the new workbook sheet_name: Name for the sheet (default: Sheet1) Returns: Created workbook name
Perform curve fitting on worksheet data. Args: data_book: Source workbook name data_sheet: Source sheet name x_col: X column number (1-based) y_col: Y column number (1-based) function: Fitting function. Built-in options: line, poly2-5, exp1, exp2, expgrow1, expdecay1, gauss, lorentz, voigt, power, lognormal, logistic, boltzmann, hill, sine y_error_col: Y error column (1-based, 0=none) Returns: JSON with fit parameters and statistics (R², SSR, etc.)
Export all graphs in the current project to image files. Args: output_dir: Windows directory path for output files format: Image format (png, jpg, tif, emf, eps, pdf, svg) dpi: Resolution (default 300) width: Width in pixels height: Height in pixels Returns: Confirmation message
Export a graph to an image file. Args: graph_name: Graph name to export file_path: Full Windows output path (e.g., C:\Users\fig1.png) format: Image format: png, jpg, tif, bmp, emf, eps, pdf, svg width: Reserved for API compatibility; Origin uses the active page export settings height: Reserved for API compatibility dpi: Reserved for API compatibility Returns: Path to exported file
Get the value of a LabTalk variable. Args: name: Variable name. Use $ suffix for strings (e.g., 'str$') Returns: Variable value as string
Read data from an Origin worksheet. Args: book_name: Workbook name sheet_name: Sheet name Returns: JSON object with column data
Import a CSV/text file into an Origin worksheet. Args: file_path: Full Windows path to the file (e.g., C:\Users\data.csv) book_name: Optional workbook name. Auto-generated if empty. delimiter: Column delimiter (default: comma) Returns: Name of the created workbook
List available built-in fitting functions in Origin. Returns: List of function names grouped by category
List all open workbooks and worksheets in Origin. Returns: JSON list of workbooks with their sheets
Open an Origin project file. Args: file_path: Full Windows path to .opj or .opju file Returns: Success message
Create a new empty Origin project (closes current without saving).
Execute a LabTalk script in Origin Pro. Use this for any Origin operation not covered by other tools. LabTalk is Origin's built-in scripting language. Args: script: LabTalk script to execute Returns: Success/failure message
Save the current Origin project. Args: file_path: Full Windows path to save (e.g., C:\Users\data\experiment.opju). If empty, saves to current location. Returns: Save confirmation with path
Set axis labels and title for a graph. Args: graph_name: Graph name x_label: X axis label y_label: Y axis label title: Graph title Returns: Success message
Set axis range for a graph. Args: graph_name: Graph name x_min: X axis minimum (None=auto) x_max: X axis maximum (None=auto) y_min: Y axis minimum (None=auto) y_max: Y axis maximum (None=auto) Returns: Success message
Set font for graph elements. Args: graph_name: Graph name font_name: Font family (e.g., Arial) font_size: Font size in points (default 24) target: "all", "axes", "title", "legend", "tick" Returns: Success message
Configure graph legend. Args: graph_name: Graph name visible: Show or hide legend position: top-left, top-right, bottom-left, bottom-right entries: Comma-separated custom legend entries Returns: Success message
Set line/symbol style for a data plot. Args: graph_name: Graph name plot_index: Plot index (1-based, order of data added) line_width: Line width in points (default 1.5) symbol_size: Symbol size (3-20, default 8) symbol_shape: 0=auto, 1=square, 2=circle, 3=triangle-up, 4=diamond, 5=triangle-down, 6=hexagon color: Color name (black, red, blue, green, orange, purple, cyan, magenta) Returns: Success message
Write data to an Origin worksheet. Args: book_name: Workbook name (e.g., "Book1") sheet_name: Sheet name (e.g., "Sheet1") columns: JSON array of arrays, each inner array is a column of data. Example: [[1,2,3],[4,5,6]] for 2 columns with 3 rows column_names: Optional comma-separated column names (e.g., "X,Y,Error") Returns: Success message
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 12 | 2026-07-28+ | v2 |