origin-mcp

v0.1.4
origin-mcp Checked 1 day ago Published 4 months ago

Local MCP server that lets AI assistants automate Origin/OriginPro for data import, worksheet editing, plotting, analysis, and export on Windows.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

origin_run_analysis

Run a supported Origin analysis and return structured metrics or output rows. Use ``include_output=True`` with ``output_sheet`` for analyses that create a worksheet. The ``analysis`` schema lists canonical names; aliases remain accepted for backward compatibility.

ParameterTypeDescription
analysis *stringCanonical analysis name. Supported values are listed in the schema; common choices include linear_fit, polynomial_fit, smooth, peak_find, fft, and correlation.
include_outputbooleanRead output worksheet rows back into the response when possible.
optionsAnalysis-specific options. Examples: polynomial_fit uses order; smooth uses method and points; peak_find uses direction, threshold, and smooth_points; t-tests use tail and alpha; fft/ifft use window a…
output_max_rowsintegerMaximum rows to read from an output worksheet.
output_sheetOptional output sheet/name hint.
worksheetWorksheet range or book/sheet reference.
x_colOptional X column.
y_colOptional Y column.

origin_ping

Connect to Origin/OriginPro and report basic status.

ParameterTypeDescription
showbooleanWhether Origin should be visible after connecting or querying capabilities.

origin_capabilities

Report runtime capabilities; set ``show`` only to change Origin visibility.

ParameterTypeDescription
refreshbooleanWhether to bypass cached capability data and query Origin again.
showWhether Origin should be visible after connecting or querying capabilities.

origin_bridge_shutdown

Ask the Origin GUI bridge to stop serving requests. By default this releases the Origin automation connection without closing Origin itself. Set ``close_origin=True`` to force-close Origin as part of shutdown.

ParameterTypeDescription
close_originbooleanWhether bridge shutdown should also force-close the Origin application.
hostOptional Origin bridge host override. Normally omit to use configured localhost.
portOptional Origin bridge TCP port override. Normally omit to use the handshake value.
release_originbooleanWhether bridge shutdown should release its Origin automation connection.
timeoutBridge request timeout in seconds; null uses the configured default.
tokenOptional bridge authentication token override. Normally omit to use the handshake.

origin_doctor

Diagnose Origin bridge configuration, status file, and connectivity.

ParameterTypeDescription
hostOptional Origin bridge host override. Normally omit to use configured localhost.
ping_originbooleanWhether diagnostics should also make a live request to Origin.
portOptional Origin bridge TCP port override. Normally omit to use the handshake value.
status_pathOptional bridge status-file path override used by diagnostics.
timeoutBridge request timeout in seconds; null uses the configured default.
tokenOptional bridge authentication token override. Normally omit to use the handshake.

origin_bridge_submit_task

Submit a supported Origin bridge method as a queued background task.

ParameterTypeDescription
method *stringAllowlisted Origin bridge method to run as a background task.
hostOptional Origin bridge host override. Normally omit to use configured localhost.
paramsKeyword arguments passed to the selected allowlisted bridge method.
portOptional Origin bridge TCP port override. Normally omit to use the handshake value.
timeoutBridge request timeout in seconds; null uses the configured default.
tokenOptional bridge authentication token override. Normally omit to use the handshake.

origin_bridge_task_status

Read status, result, or optional recent logs for an Origin bridge background task.

ParameterTypeDescription
task_id *stringBackground task identifier returned by origin_bridge_submit_task.
hostOptional Origin bridge host override. Normally omit to use configured localhost.
include_logsbooleanWhether to include recent background-task log records in the response.
include_resultbooleanWhether to include a completed background task's result payload.
log_limitintegerMaximum number of recent background-task log records to return.
portOptional Origin bridge TCP port override. Normally omit to use the handshake value.
timeoutBridge request timeout in seconds; null uses the configured default.
tokenOptional bridge authentication token override. Normally omit to use the handshake.

origin_bridge_cancel_task

Cancel a queued Origin bridge task or mark a running task for cancellation.

ParameterTypeDescription
task_id *stringBackground task identifier returned by origin_bridge_submit_task.
hostOptional Origin bridge host override. Normally omit to use configured localhost.
portOptional Origin bridge TCP port override. Normally omit to use the handshake value.
timeoutBridge request timeout in seconds; null uses the configured default.
tokenOptional bridge authentication token override. Normally omit to use the handshake.

origin_bridge_list_tasks

List recent Origin bridge background tasks.

ParameterTypeDescription
hostOptional Origin bridge host override. Normally omit to use configured localhost.
limitintegerMaximum number of matching or recent records to return.
portOptional Origin bridge TCP port override. Normally omit to use the handshake value.
timeoutBridge request timeout in seconds; null uses the configured default.
tokenOptional bridge authentication token override. Normally omit to use the handshake.

origin_plan_figure_spec

Validate a declarative FigureSpec and return the planned Origin operations.

origin_execute_figure_spec

Execute a declarative FigureSpec. The current executor supports worksheet-backed single-panel and grid multi-panel figures with common plot types. Unsupported features are reported in the plan instead of being guessed.

origin_get_graph_info

Inspect a graph page, its layers, axes, and plots.

ParameterTypeDescription
graph_nameOrigin graph page name. Omit to use the active graph or create a new page.

origin_export_graph

Export the active or named Origin graph to an image/PDF file.

ParameterTypeDescription
path *stringFilesystem path consumed or produced by this tool; see the tool description.
graph_nameOrigin graph page name. Omit to use the active graph or create a new page.
overwritebooleanWhether an existing output file may be replaced.
widthintegerExport width in pixels; zero preserves Origin's default export width.

origin_view_graph

Render an Origin graph and return it as an image the model can see. Unlike ``origin_export_graph`` this leaves no file behind: the graph is rendered to a temporary PNG, returned as an image content block alongside a small text summary, and the temp file is deleted. Use it to visually verify a plot and iterate on it. ``max_width`` bounds the rendered pixel width to keep the returned image (and its token cost) small. Requires a vision-capable client to be useful.

ParameterTypeDescription
graph_nameOrigin graph page name. Omit to use the active graph or create a new page.
max_widthintegerMaximum rendered image width in pixels.

origin_format_graph

Set graph long name, axis labels, legend visibility, and optional rescale.

ParameterTypeDescription
graph_nameOptional graph page name.
rescalebooleanWhether to rescale graph axes after formatting.
show_legendSet legend visibility when provided.
titleOptional graph page long name.
x_labelOptional X axis title.
y_labelOptional Y axis title.

origin_browse_knowledge

List knowledge collections or browse one collection by slash-delimited path.

ParameterTypeDescription
collectionKnowledge collection. Omit to list collections; allowed names are in the schema.
topicSlash-delimited entry path within the collection, for example analysis/workflow. Omit to list the collection's immediate children.
versionOptional Origin documentation version filter, such as 2026b.

origin_query_knowledge

Search the local Origin knowledge base by keyword.

ParameterTypeDescription
query *stringKeyword query matched against local knowledge titles, summaries, and bodies.
collectionOptional knowledge collection filter; allowed names are in the schema.
limitintegerMaximum number of matching or recent records to return.
versionOptional Origin documentation version filter, such as 2026b.

origin_run_labtalk

Execute LabTalk script text inside Origin and optionally return captured output.

ParameterTypeDescription
script *stringLabTalk script text to execute inside the connected Origin application.
capture_logbooleanWhether to capture and return LabTalk output produced by the script.

origin_plot

Create a table-based plot selected by ``kind``. A single parameterized entry point for common table plots and the Plot Type ID routes that each also have a dedicated ``origin_plot_*`` tool. For the common line/scatter/line_symbol/column routes, ``selected_cols`` uses the first column as X and the remaining columns as Y. A one-column selection is treated as Y-only. Matrix-range plots still use ``origin_plot_matrix_id``.

ParameterTypeDescription
kind *stringTable plot kind. The schema lists every compact-route kind supported by this tool.
path *stringFilesystem path consumed or produced by this tool; see the tool description.
export_pathOptional output path for exporting the created graph.
graph_nameOrigin graph page name. Omit to use the active graph or create a new page.
palette_nameOptional registered color palette name used by the selected style mode.
selected_colsColumn names or zero-based indexes to include in the plot.
show_legendLegend visibility override; null uses cross-chart rules based on series count and chart type.
style_modestringGraph styling policy: origin_default preserves the Origin template; nature applies the origin-mcp scientific preset.
titleOptional Origin page long name or graph title.

origin_recommend_chart

Recommend chart types from table shape, column semantics, and optional intent.

ParameterTypeDescription
path *stringAbsolute path to a CSV, TSV, TXT, DAT, XLS, or XLSX file.
delimiterDelimiter for text files. If omitted, CSV/TSV defaults or auto-detection are used.
encodingOptional text file encoding.
excel_sheetExcel sheet name or zero-based index. Ignored for text files.
headerZero-based row number to use as column names.
intentOptional natural-language chart intent used to guide automatic routing.
max_recommendationsintegerMaximum number of ranked chart recommendations to return.
na_valuesAdditional missing value markers.
nrowsMaximum number of data rows to read.
skiprowsRows to skip while reading.
x_colColumn name or zero-based index to use as X. Defaults to the first column.
x_error_colOptional X error column.
y_colsColumn names or zero-based indexes to plot as Y. Defaults to all non-X columns.
y_error_colOptional Y error column.
z_colOptional Z column for contour/XYZ plots.

origin_plot_auto

Inspect table columns, select a suitable chart route, and create the plot. Provide ``intent`` when the desired comparison or relationship is known. Otherwise the router uses column types, cardinality, and selected X/Y/Z or error columns. Use ``origin_recommend_chart`` first when no graph should be created yet.

ParameterTypeDescription
path *stringAbsolute path to a CSV, TSV, TXT, DAT, XLS, or XLSX file.
book_nameOptional Origin workbook name.
delimiterDelimiter for text files. If omitted, CSV/TSV defaults or auto-detection are used.
encodingOptional text file encoding.
excel_sheetExcel sheet name or zero-based index. Ignored for text files.
export_pathOptional graph export path.
graph_nameOptional Origin graph page name.
headerZero-based row number to use as column names.
intentOptional natural-language chart intent used to guide automatic routing.
na_valuesAdditional missing value markers.
nrowsMaximum number of data rows to read.
palette_nameOptional registered built-in palette name; nature mode selects one automatically.
sheet_nameOptional Origin worksheet name.
skiprowsRows to skip while reading.
style_modestringGraph styling policy. origin_default/template/theme/none preserve Origin template defaults; nature applies origin-mcp styling after plotting.
titleOptional graph page long name.
x_colColumn name or zero-based index to use as X. Defaults to the first column.
x_error_colOptional X error column.
x_labelOptional X axis title.
y_colsColumn names or zero-based indexes to plot as Y. Defaults to all non-X columns.
y_error_colOptional Y error column.
y_labelOptional Y axis title.
z_colOptional Z column for contour/XYZ plots.

origin_import_table

Import a CSV, TSV, TXT, DAT, XLS, or XLSX file into a new Origin worksheet.

ParameterTypeDescription
path *stringAbsolute path to a CSV, TSV, TXT, DAT, XLS, or XLSX file.
book_nameOptional Origin workbook name.
delimiterDelimiter for text files. If omitted, CSV/TSV defaults or auto-detection are used.
encodingOptional text file encoding.
excel_sheetExcel sheet name or zero-based index. Ignored for text files.
headerZero-based row number to use as column names.
na_valuesAdditional missing value markers.
nrowsMaximum number of data rows to read.
sheet_nameOptional Origin worksheet name.
skiprowsRows to skip while reading.

origin_read_worksheet

Read a window of Origin worksheet data as structured rows.

ParameterTypeDescription
book_nameOrigin workbook name. Omit to use the active workbook or the tool default.
columnsColumn names or zero-based column indexes selected for this operation.
max_rowsintegerMaximum number of worksheet rows to return.
sheet_nameOrigin worksheet name. Omit to use the active sheet or the tool default.
start_rowintegerZero-based worksheet row at which reading begins.

origin_write_worksheet

Write structured rows into a new or existing Origin worksheet.

ParameterTypeDescription
rows *Rows to write, as objects keyed by column name or arrays matching columns.
book_nameOrigin workbook name. Omit to use the active workbook or the tool default.
columnsColumn names for object rows. For array rows, these names define the array order.
createbooleanWhether to create the target Origin object when it does not already exist.
sheet_nameOrigin worksheet name. Omit to use the active sheet or the tool default.
start_colColumn name or zero-based column index at which writing begins.

origin_diagnose_worksheet

Check worksheet data quality before plotting or analysis. Reports per-column dtype, missing count/fraction, and unique count, plus structured issues: empty_worksheet and all_null_column (error), high_missing and duplicate_columns (warning), non_numeric_column and constant_column (info). high_missing_threshold is the missing fraction (0-1) that triggers a high_missing warning. "passed" is false when any error-severity issue is found.

ParameterTypeDescription
book_nameOrigin workbook name. Omit to use the active workbook or the tool default.
columnsColumn names or zero-based column indexes selected for this operation.
high_missing_thresholdnumberMissing-value fraction from 0 through 1 that triggers a high_missing warning.
sheet_nameOrigin worksheet name. Omit to use the active sheet or the tool default.