# OriginLab MCP Server

> Connect AI clients to OriginLab through natural language.

- **URL**: https://followmcp.com/en/servers/originlab-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 102
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/garethbeaumo/originlab-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Python 3.10+
- **Auth**: No credential needed

## Overview
OriginLab MCP Server connects AI clients to OriginLab over MCP, enabling natural-language requests to import and manage data, create and customize plots, run fits, and export results. It uses Python, originpro, and COM to communicate with OriginLab. It requires Windows, OriginLab 2021 or later with a valid license, and Python 3.10 or later.

## Best for
- Users analyzing and visualizing data with a local Windows installation of OriginLab.
- Users who want to operate OriginLab workflows through an MCP-capable AI client.

## Not for
- Users without Windows or local OriginLab 2021 or later.
- Users without a valid OriginLab license, or those needing a cloud or remote OriginLab service; support for those services is not stated in the source.

## Required permissions
- Requires access to local OriginLab and interacts with it through COM.
- Depending on the selected operation, may read or write import, export, and project file paths. The optional allowed-roots setting can restrict these paths.
- Session, worksheet, and graph reads expose current project data; write, delete, open, and close operations change Origin state.

## Risks
- Before destructive operations, the server attempts an in-place save when a project path is known. This overwrites the project file and is not a versioned backup.
- The preflight save and subsequent mutation are not atomic; by default, an operation may proceed if the save cannot run.
- COM dispatch uses a soft timeout. After a timeout error, a call that already started may continue in Origin and hold the lock until Origin unblocks.
- LabTalk is an advanced operation escape hatch; destructive LabTalk operations require confirm=true.

## Client config (JSON)
```json
{"mcpServers":{"originlab":{"command":"uv","args":["--directory","C:\\path\\to\\originlab-mcp","run","originlab-mcp"]}}}
```

## Tools (66)
- `import_csv`: Import CSV data into Origin.
- `import_excel`: Import Excel data into Origin.
- `import_data_from_text`: Import data from text.
- `list_worksheets`: List worksheets.
- `get_worksheet_info`: Get worksheet information.
- `get_worksheet_data`: Read worksheet data.
- `get_cell_value`: Read a cell value.
- `set_column_designations`: Set column designations such as X or Y.
- `set_column_labels`: Set column labels.
- `set_column_formula`: Set a column formula.
- `add_worksheet`: Add a worksheet.
- `sort_worksheet`: Sort a worksheet.
- `clear_worksheet`: Clear a worksheet.
- `delete_columns`: Delete columns.
- `create_plot`: Create a plot.
- `create_double_y_plot`: Create a double-Y plot.
- `add_plot_to_graph`: Add a plot to a graph.
- `remove_plot_from_graph`: Remove a plot from a graph.
- `change_plot_data`: Change plot data.
- `change_plot_type`: Change the plot type.
- `add_graph_layer`: Add a graph layer.
- `group_plots`: Group plots.
- `list_graphs`: List graphs.
- `list_graph_templates`: List graph templates.
- `get_graph_info`: Get graph information.
- `set_axis_range`: Set an axis range.
- `set_axis_scale`: Set an axis scale.
- `set_axis_step`: Set an axis step.
- `set_axis_title`: Set an axis title.
- `set_plot_line_style`: Set a plot line style.
- `set_plot_line_width`: Set a plot line width.
- `set_graph_font`: Set a graph font.
- `set_tick_style`: Set tick style.
- `set_plot_color`: Set a plot color.
- `set_plot_colormap`: Set a plot colormap.
- `set_plot_transparency`: Set plot transparency.
- `set_plot_symbols`: Set plot symbols.
- `set_symbol_size`: Set symbol size.
- `set_symbol_interior`: Set symbol interior.
- `set_color_increment`: Set color increments.
- `set_symbol_increment`: Set symbol increments.
- `set_error_bar_style`: Set error bar style.
- `set_fill_area`: Set a fill area.
- `set_legend`: Set the legend.
- `apply_publication_style`: Apply a publication-style preset.
- `set_graph_title`: Set the graph title.
- `add_text_label`: Add a text label.
- `add_line_to_graph`: Add a line to a graph.
- `remove_graph_label`: Remove a graph label.
- `linear_fit`: Run a linear fit.
- `nonlinear_fit`: Run a nonlinear fit.
- `list_fit_functions`: List available fit functions.
- `export_graph`: Export a graph.
- `export_all_graphs`: Export all project graphs.
- `export_worksheet_to_csv`: Export a worksheet to CSV.
- `save_project`: Save a project.
- `open_project`: Open a project.
- `new_project`: Create a new project.
- `get_origin_info`: Get Origin environment information.
- `originlab_doctor`: Run an environment checklist, optionally attempting an Origin connection.
- `read_origin_session`: Read a snapshot of the current Origin session.
- `release_origin`: Release Origin so it can be used manually.
- `reconnect_origin`: Reconnect to Origin.
- `close_origin`: Close Origin.
- `execute_labtalk`: Execute LabTalk operations; destructive operations require confirmation.
- `get_labtalk_variable`: Safely read a LabTalk variable value.
