OriginLab MCP Serverのロゴ

OriginLab MCP Server

コミュニティ
garethbeaumo

MCP Server for OriginLab Control OriginLab with natural language through AI clients via the Model Context Protocol.

公開者garethbeaumo
リポジトリoriginlab-mcp
言語Python
フォーク
4
スター
82
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    OriginLab MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには82件のスターと4件のフォークがあります。

What Is OriginLab MCP Server?

OriginLab MCP Server is a bridge between AI clients and OriginLab. It lets you import data, create plots, customize figures, run analysis, and export results through natural-language requests instead of manually operating the Origin UI.

text
User: Import experiment.csv from my desktop into Origin, use the first column as X
      and the second column as Y, create a scatter plot, run a Gaussian fit,
      then export the graph as PNG.

AI: Done.
    Imported experiment.csv -> Sheet1 (200 rows x 5 columns)
    Created scatter plot -> Graph1
    Gaussian fit completed -> xc=2.35, w=0.82, A=156.3, R²=0.9987
    Exported -> C:\Users\Desktop\Graph1.png

How It Works

text
AI Client (Antigravity / Claude / Cursor)
       ↓ MCP over stdio
OriginLab MCP Server (Python)
       ↓ originpro + COM
OriginLab

Requirements

RequirementDetails
Operating systemWindows
OriginLabOriginLab 2021 or later with a valid license
Python3.10+

Quick Start

For AI assistants or one-command local setup, run this from the repository root:

powershell
powershell -ExecutionPolicy Bypass -File .\scripts\install-and-open.ps1

The script installs uv if needed, runs uv sync, starts the local status panel, and opens http://127.0.0.1:8765/ automatically. From that page you can test Origin and write MCP client configs.

Choose one installation method.

1. Install uv

powershell
irm https://astral.sh/uv/install.ps1 | iex

2. Install dependencies

powershell
cd C:\path\to\originlab-mcp
uv sync

3. Start the server

powershell
uv run originlab-mcp

1. Create a virtual environment (optional but recommended)

powershell
cd C:\path\to\originlab-mcp
python -m venv .venv
.venv\Scripts\activate

2. Install the project

powershell
pip install -e .

3. Start the server

powershell
originlab-mcp

After startup, the server waits for MCP client requests over stdio. The first tool call automatically connects to the local OriginLab installation.

Optional: Local Status Panel

To check whether the MCP server can start, whether Origin can be reached, and whether common client config files exist, start the local UI:

powershell
uv run originlab-mcp-ui

Then open http://127.0.0.1:8765/. This page can start/stop a debug MCP server subprocess, test the Origin connection, read the current Origin session (worksheets and graphs), and write the originlab MCP configuration for Antigravity / Gemini, Cursor, Codex, Trae, and Claude Desktop. For normal use, the AI client should still start the server automatically from its configuration.

When updating an existing config file, the UI creates a .bak-timestamp backup first. To prevent the browser from opening automatically:

powershell
$env:ORIGINLAB_MCP_UI_NO_BROWSER = "1"
uv run originlab-mcp-ui

Features

The server provides 66 tools covering the OriginLab data workflow.

Data Management (14 Tools)

CategoryTools
Importimport_csv · import_excel · import_data_from_text
Inspectlist_worksheets · get_worksheet_info · get_worksheet_data · get_cell_value
Editset_column_designations · set_column_labels · set_column_formula
Manageadd_worksheet · sort_worksheet · clear_worksheet · delete_columns

Plotting (11 Tools)

CategoryTools
Createcreate_plot · create_double_y_plot
Modifyadd_plot_to_graph · remove_plot_from_graph · change_plot_data · change_plot_type
Layersadd_graph_layer · group_plots
Inspectlist_graphs · list_graph_templates · get_graph_info

Graph Customization (25 Tools)

CategoryTools
Axesset_axis_range · set_axis_scale · set_axis_step · set_axis_title
Linesset_plot_line_style · set_plot_line_width
Fonts and ticksset_graph_font · set_tick_style
Colorsset_plot_color · set_plot_colormap · set_plot_transparency
Symbolsset_plot_symbols · set_symbol_size · set_symbol_interior
Group incrementsset_color_increment · set_symbol_increment
Error barsset_error_bar_style
Fillset_fill_area
Legendset_legend
Preset stylingapply_publication_style
Annotationsset_graph_title · add_text_label · add_line_to_graph · remove_graph_label

Analysis (3 Tools)

linear_fit · nonlinear_fit · list_fit_functions

Common Origin fit functions such as Gauss, Lorentz, ExpDec1, and Boltzmann are supported. You can provide initial parameters, fix parameters, and fit with error bars.

Export and Project Management (6 Tools)

export_graph · export_all_graphs · export_worksheet_to_csv · save_project · open_project · new_project

System Management (5 Tools)

get_origin_info · read_origin_session · release_origin · reconnect_origin · close_origin

read_origin_session is a read-only snapshot of the current project: workbooks/worksheets, graphs, matrices, notes, active objects, and project path. Pass include_preview=true to include a truncated preview of the active worksheet.

MCP Resources (Session Reading)

In addition to tools, clients can inspect the Origin session through MCP resources/read without changing the project:

URIContents
originlab://sessionFull project snapshot
originlab://worksheetsWorksheet list
originlab://graphsGraph list
originlab://worksheet/{book}/{sheet}One worksheet's columns and data preview
originlab://graph/{name}One graph's layers and curves

Advanced (2 Tools)

execute_labtalk · get_labtalk_variable

execute_labtalk is an escape hatch for operations not covered by standard tools. get_labtalk_variable safely reads LabTalk variable values.

Examples

RequestTypical tool call
Inspect the current Origin projectread_origin_session
Import data.csv into Originimport_csv
Show worksheet columns and metadataget_worksheet_info
Set the first column as X and the next two columns as Yset_column_designations
Create a scatter plotcreate_plot
Add another curve from the third columnadd_plot_to_graph
Change the X-axis title and set the curve color to redset_axis_title + set_plot_color
Apply a publication-style presetapply_publication_style
Apply publication styling to layer 2 with line width 3 and symbol size 12apply_publication_style
Run a Gaussian fitnonlinear_fit
Set the Y axis to logarithmic scaleset_axis_scale
Export a graph as PNGexport_graph
Export all project graphs as SVGexport_all_graphs
Release Origin so I can use it manuallyrelease_origin

apply_publication_style supports layer_index, axis-title font size, tick-label font size, legend font size, major tick length, minor tick count, line width, symbol size, and other common publication-figure settings.

Typical workflow:

text
Import data -> inspect structure -> set column designations -> create plot -> customize graph -> run analysis -> export results

Client Configuration

[!NOTE] You do not need to start the MCP server manually. Once configured, the AI client starts the server process when needed and communicates with it over stdin/stdout.

Replace paths with your actual project path.

You can also run uv run originlab-mcp-ui, choose a client in the local status panel, and let it write the config automatically. Manual examples are shown below.

Antigravity (Gemini) - Recommended

Create .gemini/settings.json in the project root.

Using uv:

json
{
  "mcpServers": {
    "originlab": {
      "command": "uv",
      "args": ["--directory", "C:\\path\\to\\originlab-mcp", "run", "originlab-mcp"]
    }
  }
}

Using pip:

json
{
  "mcpServers": {
    "originlab": {
      "command": "C:\\path\\to\\originlab-mcp\\.venv\\Scripts\\originlab-mcp.exe"
    }
  }
}

Edit %APPDATA%\Claude\claude_desktop_config.json using the same format as above.

Create .cursor/mcp.json in the project root using the same format as above.

Create .trae/mcp.json in the project root using the same format as above.

Create .codex/config.json in the project root using the same format as above.

Testing

powershell
# uv
uv run python -m pytest tests/ -v

# pip, after activating the virtual environment
pytest tests/ -v

The basic test suite does not require OriginLab to be installed.

Project Structure

text
originlab-mcp/
├── pyproject.toml                # Project configuration and dependencies
├── CHANGELOG.md                  # Release notes
├── scripts/
│   └── install-and-open.ps1      # One-command setup and UI launcher
├── src/originlab_mcp/
│   ├── server.py                 # MCP server entry point and dependency injection
│   ├── ui.py                     # Local status panel
│   ├── origin_manager.py         # Thread-safe Origin COM connection manager
│   ├── session.py                # Read-only Origin session snapshot
│   ├── resources.py              # MCP Resources (session reading)
│   ├── exceptions.py             # Custom exceptions
│   ├── types.py                  # Protocol type definitions
│   ├── tools/
│   │   ├── data.py               # Data import and worksheet management (14)
│   │   ├── plot.py               # Plot creation and graph management (11)
│   │   ├── customize.py          # Graph customization (25)
│   │   ├── analysis.py           # Linear and nonlinear fitting (3)
│   │   ├── export.py             # Export and project management (6)
│   │   ├── system.py             # System and connection management (4)
│   │   └── advanced.py           # LabTalk escape hatch (2)
│   └── utils/
│       ├── constants.py          # Enums, defaults, and fit-function metadata
│       ├── helpers.py            # Graph/sheet resolution and error handling helpers
│       └── validators.py         # Input validation and standard response builders
└── tests/
    ├── test_helpers.py           # Helper tests
    ├── test_phase3.py            # LabTalk safety and resolve-pattern tests
    ├── test_session.py           # Session reading and MCP resource tests
    ├── test_tools.py             # Tool registration and integration tests
    └── test_ui.py                # Local status panel config tests

FAQ

Check that:

  • OriginLab 2021 or later is installed locally
  • You have a valid OriginLab license
  • The current user can start Origin
  • No other program is blocking the Origin COM interface
  1. Confirm the client configuration path is correct.
  2. Confirm dependencies are installed with uv sync or pip install -e ..
  3. Restart the MCP client.
  1. Check for outliers with get_worksheet_data.
  2. Provide better initial values through initial_params.
  3. Fix known parameters with fixed_params.
  4. Confirm that the fit function is appropriate. Use list_fit_functions to inspect common options.

License

MIT © 2025 garethbeaumo

インストール

TypingMind
{
  "mcpServers": {
    "originlab-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\path\\to\\originlab",
        "run",
        "originlab-mcp"
      ]
    }
  }
}

OriginLab MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度OriginLab MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

OriginLab MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. OriginLab MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "originlab-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてOriginLab MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. OriginLab MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
OriginLab MCP Serverを使ってこのタスクを手伝ってもらえますか?
OriginLab MCP Server
はい、読みました。
OriginLab MCP Serverで調べた結果をお伝えします。

よくある質問

OriginLab MCP Server MCPサーバーは何に使いますか?

OriginLab MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでOriginLab MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでOriginLab MCP Serverを利用できます。

TypingMindでOriginLab MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。OriginLab MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

OriginLab MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

OriginLab MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでOriginLab MCP Server MCPのどのようなツールを利用できますか?

OriginLab MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

OriginLab MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。OriginLab MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇