OO

optuna/optuna-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

90 stars 26 forks 品質 75 トレンド 29MIT

optuna/optuna-mcp は [https://github.com/optuna/optuna-mcp. からインポートされた MCP サーバーの候補です

概要

optuna/optuna-mcp は [https://github.com/optuna/optuna-mcp. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Optunaを使用して最適化と分析を自動化するモデルコンテキストプロトコル(MCP)サーバー。

ユースケース

Optuna MCP Server は、以下のようなユースケースで使用できます。

  • LLMによる自動ハイパーパラメータの最適化
  • チャットインターフェイスによるOptunaの最適化結果のインタラクティブな分析
  • 他のMCPツールの入力と出力を最適化

詳しくは、例のセクションを参照してください。

インストール

uv または Docker を使用して、Optuna MCP サーバーをインストールできます。 このセクションでは、Claude Desktop を MCP クライアントとして使用して、Optuna MCP サーバーをインストールする方法について説明します。

uv の使用

インストールプロセスを開始する前に、Astral から uv をインストールします。

その後、MCP クライアントに Optuna MCP サーバー構成を追加します。 Claudeデスクトップに含めるには、Claude > Settings > Developer > Edit Config > claude_desktop_config.json に移動します。 以下を追加します。

また、結果を主張するために、Optuna ストレージを --storage 引数で指定できます。

追加後、Claude Desktopアプリケーションを再起動してください。 Claudeデスクトップの詳細については、クイックスタートページを参照してください。

Docker の使用

また、Optuna MCP サーバを Docker で実行することもできます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Optuna MCP Server

A Model Context Protocol (MCP) server that automates optimization and analysis using Optuna.

Use Cases

The Optuna MCP Server can be used in the following use cases, for example.

  • Automated hyperparameter optimization by LLMs
  • Interactive analysis of Optuna’s optimization results via chat interface
  • Optimize input and output of other MCP tools

For details, see the Examples section.

Installation

The Optuna MCP server can be installed using uv or Docker. This section explains how to install the Optuna MCP server, using Claude Desktop as an example MCP client.

Usage with uv

Before starting the installation process, install uv from Astral.

Then, add the Optuna MCP server configuration to the MCP client. To include it in Claude Desktop, go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json and add the following:

{
  "mcpServers": {
    "Optuna": {
      "command": "/path/to/uvx",
      "args": [
        "optuna-mcp"
      ]
    }
  }
}

Additionally, you can specify the Optuna storage with the --storage argument to persist the results.

{
  "mcpServers": {
    "Optuna": {
      "command": "/path/to/uvx",
      "args": [
        "optuna-mcp",
        "--storage",
        "sqlite:///optuna.db"
      ]
    }
  }
}

After adding this, please restart Claude Desktop application. For more information about Claude Desktop, check out the quickstart page.

Usage with Docker

You can also run the Optuna MCP server using Docker. Make sure you have Docker installed and running on your machine.

{
  "mcpServers": {
    "Optuna": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--net=host",
        "-v",
        "/PATH/TO/LOCAL/DIRECTORY/WHICH/INCLUDES/DB/FILE:/app/workspace",
        "ghcr.io/optuna/optuna-mcp:latest",
        "--storage",
        "sqlite:////app/workspace/optuna.db"
      ]
    }
  }
}

Tools provided by Optuna MCP

The Optuna MCP provides the following tools. Specifically, it offers primitive functions of Optuna such as Study, Trial, Visualization, and Dashboard.

GitHub で README 全文を見る

インストール

docker run -i --rm --net=host -v /PATH/TO/LOCAL/DIRECTORY/WHICH/INCLUDES/DB/FILE:/app/workspace ghcr.io/optuna/optuna-mcp:latest --storage sqlite:////app/workspace/optuna.db
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "Optuna": { "command": "/path/to/uvx", "args": [ "optuna-mcp" ] } } }