1. Conduid
  2. Developer Tools
  3. optuna/optuna-mcp
MCP server · Developer Tools

optuna/optuna-mcp

The Optuna MCP Server is a Model Context Protocol (MCP) server to interact with Optuna APIs.

66Good

Scored 5 hours ago · breakdown

About optuna/optuna-mcp

optuna/optuna-mcp is an MCP server published by optuna in the Developer Tools category: the Optuna MCP Server is a Model Context Protocol (MCP) server to interact with Optuna APIs. Conduid read 26 tools from its source: add_trial, add_trials, ask, best_trial, best_trials, create_study and 20 more. No package is published for it, so it installs from a source checkout.

The repository has 95 stars and 27 forks, is licensed MIT, and its last commit was on 22 Oct 2026. The latest release is v0.2.0 (10 Nov 2025). It follows v0.1.2 (13 Jun 2025), and the 4 most recent releases go back to v0.1.0 (11 Jun 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include optimization and hyperparameter-optimization.

Install

From source
git clone https://github.com/optuna/optuna-mcp

Tools (26)

add_trialAdd a trial to the study.
ParameterTypeDescription
trial *any
add_trialsAdd multiple trials to the study.
ParameterTypeDescription
trials *array
askSuggest new parameters using Optuna
ParameterTypeDescription
search_space *object
best_trialGet the best trial
best_trialsReturn trials located at the Pareto front in the study.
create_studyCreate a new Optuna study with the given study_name and directions.
ParameterTypeDescription
directionsarray
study_name *string
get_all_study_namesGet all study names from the storage.
get_directionsGet the directions of the study.
get_metric_namesGet metric_names
get_trial_user_attrsGet user attributes in a trial
ParameterTypeDescription
trial_number *integer
get_trialsGet all trials in a CSV format
launch_optuna_dashboardLaunch the Optuna dashboard
ParameterTypeDescription
portinteger
plot_contourReturn the contour plot as an image.
ParameterTypeDescription
paramsarray
targetinteger
target_namestring
plot_edfReturn the EDF plot as an image.
ParameterTypeDescription
targetinteger
target_namestring
plot_hypervolume_historyReturn the hypervolume history plot as an image.
ParameterTypeDescription
reference_point *array
plot_optimization_historyReturn the optimization history plot as an image.
ParameterTypeDescription
targetinteger
target_namestring
plot_parallel_coordinateReturn the parallel coordinate plot as an image.
ParameterTypeDescription
paramsarray
targetinteger
target_namestring
plot_param_importancesReturn the parameter importances plot as an image.
ParameterTypeDescription
paramsarray
targetinteger
target_namestring
plot_pareto_frontReturn the Pareto front plot as an image for multi-objective optimization.
ParameterTypeDescription
include_dominated_trialsboolean
target_namesarray
targetsarray
plot_rankReturn the rank plot as an image.
ParameterTypeDescription
paramsarray
targetinteger
target_namestring
plot_sliceReturn the slice plot as an image.
ParameterTypeDescription
paramsarray
targetinteger
target_namestring
plot_timelineReturn the timeline plot as an image.
set_metric_namesSet metric_names. metric_names are labels used to distinguish what each objective value is.
ParameterTypeDescription
metric_names *array
set_samplerSet the sampler for the study.
ParameterTypeDescription
name *any
set_trial_user_attrSet user attributes for a trial
ParameterTypeDescription
key *string
trial_number *integer
value *any
tellReport the result of a trial
ParameterTypeDescription
trial_number *integer
values *any

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.4K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock.
  • ✓No dynamic code executionScanned 4 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
None found in the source
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
No file writes or deletes
Lockfile
uv.lock

Pattern matches on the source text of 4 files: places to read, not proof of what the code does at run time.

Releases

v0.2.0v0.2.0 · 10 Nov 2025What's Changed Fix README.md by @y0z in https://github.com/optuna/optuna-mcp/pull/26 Add matplotlib example to `README.md` by @nabenabe0928 in https://github.com/optuna/optuna-mcp/pull/27 Update bottle to 0.13.4 by @toshihikoyanase in…
v0.1.2v0.1.2 · 13 Jun 2025What's Changed Fix pypi publish by @HideakiImamura in https://github.com/optuna/optuna-mcp/pull/16 Fix bottle dependency in pyproject.toml by @toshihikoyanase in https://github.com/optuna/optuna-mcp/pull/21 Update README. by @y0z in…
v0.1.1v0.1.1 · 11 Jun 2025What's Changed Add badges for Python versions and license. by @toshihikoyanase in https://github.com/optuna/optuna-mcp/pull/2 Update `README.md` and `CONTRIBUTING.md`. by @toshihikoyanase in https://github.com/optuna/optuna-mcp/pull/3 Add…
v0.1.0v0.1.0 · 11 Jun 2025What's Changed Add badges for Python versions and license. by @toshihikoyanase in https://github.com/optuna/optuna-mcp/pull/2 Update `README.md` and `CONTRIBUTING.md`. by @toshihikoyanase in https://github.com/optuna/optuna-mcp/pull/3 Add…

README

The repository's README runs to about 1.4K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About optuna/optuna-mcp

How do I install optuna/optuna-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is optuna/optuna-mcp safe to use with an AI agent?

Its trust score is 66 out of 100 (good). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 4 source files found that it makes no calls that start programs, reach the network or write files. Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is optuna/optuna-mcp still maintained?

Yes — the last commit was a month ago. The repository has 95 stars and 27 forks.

What tools does optuna/optuna-mcp provide?

Conduid read 26 tools from the source: add_trial, add_trials, ask, best_trial, best_trials, create_study, get_all_study_names, get_directions and 18 more. 19 of them publish their parameters, listed under Tools above.

What license is optuna/optuna-mcp released under?

The repository declares the MIT license. That applies to the latest release, v0.2.0, as well.