# Does optuna have an MCP server?

**Yes — Official.** optuna maintains an official MCP server.

## Facts

- Verdict: Official (Yes)
- Access: Local server — Runs on your machine over stdio, launched by your MCP client.
- Repository: [optuna/optuna-mcp](https://github.com/optuna/optuna-mcp) — ★ 85, last push 2026-08-05, MIT
- Maintainer: optuna
- Language: Python
- Category: [Data Science Tools](https://mcpyet.com/category/data-science-tools/)
- GitHub data refreshed: 2026-08-11 (re-checked every 6 hours)

## What it does

> The Optuna MCP Server is a Model Context Protocol (MCP) server to interact with Optuna APIs.
> — how [optuna/optuna-mcp](https://github.com/optuna/optuna-mcp) describes itself

## The receipts

- **Official repository:** [optuna/optuna-mcp](https://github.com/optuna/optuna-mcp) — ★ 85, pushed 2026-08-05, MIT (active)

## How to connect it

Runs on your machine over stdio, launched by your MCP client.

### Claude Code

```sh
claude mcp add optuna -- npx -y <package-from-readme>
```

Swap in the exact package and flags from the repo README — most servers need an API key passed as an environment variable. Add `--scope user` to make it available in every project.

### Claude Desktop

Open **Settings → Developer → Edit Config** and add the server to `claude_desktop_config.json`, then restart Claude Desktop:

```json
{
  "mcpServers": {
    "optuna": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:

```json
{
  "mcpServers": {
    "optuna": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### VS Code

Add to `.vscode/mcp.json`, then pick the server from Copilot's agent-mode tools menu:

```json
{
  "servers": {
    "optuna": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ]
    }
  }
}
```

### ChatGPT

ChatGPT connects to **remote servers only**, and this one runs on your machine. Either expose it through an MCP gateway that gives it a public URL, or use a client with native local support (Claude or Cursor).

## How we know

Verdict derived by matching the optuna organization against its GitHub presence and cross-checking against published MCP server lists.

- GitHub data refreshed 2026-08-11, then every 6 hours.
- Corrections: hello@mcpyet.com.

## Also in Data Science Tools

- [Open Source by McKinsey](https://mcpyet.com/mcp/mckinsey.md) — Official (Yes)
- [MigoXLab](https://mcpyet.com/mcp/dataeval.md) — Official (Yes)
- [HumanSignal](https://mcpyet.com/mcp/humansignal.md) — Official (Yes)
- [GrowthBook](https://mcpyet.com/mcp/growthbook.md) — Official (Yes)

---

Source: https://mcpyet.com/mcp/optuna/ — data refreshed 2026-08-11
