optuna/optuna-mcp
by Various
The Optuna MCP Server is a Model Context Protocol (MCP) server to interact with Optuna APIs.
MCP
optuna/optuna-mcp
Added 1 June 2026
Overview
An MCP server that exposes Optuna's hyperparameter optimization APIs through the Model Context Protocol. It allows AI agents and MCP-compatible tools to query study results, create new studies, and interact with optimization trials.
Best for
Best for
Developers building MCP-compatible AI assistants that need hyperparameter optimization capabilities
Use cases
- Querying historical hyperparameter optimization studies from an AI agent
- Creating and managing Optuna studies via natural language commands
- Integrating Optuna into MCP-compatible IDEs or chat interfaces
How to use
Tools exposed
create_studyset_samplerget_all_study_namesset_metric_namesget_metric_namesget_directionsget_trialsbest_trialbest_trialsasktellset_trial_user_attrget_trial_user_attrsplot_optimization_historyplot_hypervolume_historyplot_pareto_frontplot_contourplot_parallel_coordinateplot_sliceplot_param_importances
Tested with
Claude Desktop
Example client config
{\n "mcpServers": {\n "Optuna": {\n "command": "/path/to/uvx",\n "args": [\n "optuna-mcp"\n ]\n }\n }\n} Notes
An MCP server that exposes Optuna’s hyperparameter optimization APIs through the Model Context Protocol. It allows AI agents and MCP-compatible tools to query study results, create new studies, and interact with optimization trials.
76 stars on GitHub. Last updated 2026-05-28. Licensed MIT.
Use cases
- Querying historical hyperparameter optimization studies from an AI agent
- Creating and managing Optuna studies via natural language commands
- Integrating Optuna into MCP-compatible IDEs or chat interfaces
Pros
- Open-source and Python-based, integrates seamlessly with existing Optuna workflows
- Provides a standardized interface for AI tools to access optimization data
- Lightweight server with minimal setup overhead
Cons
- Relatively new project with limited community adoption and documentation
- Depends on Optuna’s API, which may undergo breaking changes across versions
- Useful only for teams already using Optuna for hyperparameter tuning
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Open-source and Python-based, integrates seamlessly with existing Optuna workflows
- Provides a standardized interface for AI tools to access optimization data
- Lightweight server with minimal setup overhead
Cons
- Relatively new project with limited community adoption and documentation
- Depends on Optuna's API, which may undergo breaking changes across versions
- Useful only for teams already using Optuna for hyperparameter tuning
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.