Optuna MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_studyC | Create a new Optuna study with the given study_name and directions. |
| get_all_study_namesC | Get all study names from the storage. |
| askC | Suggest new parameters using Optuna |
| tellC | Report the result of a trial |
| set_samplerA | Set the sampler for the study. The sampler must be one of the following: - TPESampler - NSGAIISampler - RandomSampler - GPSampler |
| set_trial_user_attrC | Set user attributes for a trial |
| get_trial_user_attrsC | Get user attributes in a trial |
| set_metric_namesB | Set metric_names. metric_names are labels used to distinguish what each objective value is. |
| get_metric_namesD | Get metric_names |
| get_directionsC | Get the directions of the study. |
| get_trialsA | Get all trials in a CSV format |
| best_trialA | Get the best trial |
| best_trialsA | Return trials located at the Pareto front in the study. |
| add_trialC | Add a trial to the study. |
| add_trialsC | Add multiple trials to the study. |
| plot_optimization_historyA | Return the optimization history plot as an image. |
| plot_hypervolume_historyC | Return the hypervolume history plot as an image. |
| plot_pareto_frontA | Return the Pareto front plot as an image for multi-objective optimization. |
| plot_contourB | Return the contour plot as an image. |
| plot_parallel_coordinateB | Return the parallel coordinate plot as an image. |
| plot_sliceC | Return the slice plot as an image. |
| plot_param_importancesA | Return the parameter importances plot as an image. |
| plot_edfC | Return the EDF plot as an image. |
| plot_timelineB | Return the timeline plot as an image. |
| plot_rankA | Return the rank plot as an image. |
| launch_optuna_dashboardC | Launch the Optuna dashboard |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/optuna/optuna-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server