# LaunchDarkly MCP server

> Lets an AI client manage feature flags, experiments, and AI configurations within LaunchDarkly EU or Federal environments.

- Repository: https://github.com/launchdarkly/mcp-server
- Page: https://hostedmcp.org/servers/launchdarkly/mcp-server
- Transport: stdio
- Stars: 27
- License: MIT

## Install

### Claude Code

```sh
claude mcp add mcp-server -- npx -y @launchdarkly/mcp-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@launchdarkly/mcp-server"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@launchdarkly/mcp-server"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@launchdarkly/mcp-server"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@launchdarkly/mcp-server"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server -- npx -y @launchdarkly/mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@launchdarkly/mcp-server"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-server npx -- -y @launchdarkly/mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@launchdarkly/mcp-server"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `LD_ACCESS_TOKEN` | no | no |  |

## FAQ

### When should I use the local MCP server instead of the hosted version?

You should use the local server if you are using LaunchDarkly EU or Federal instances, as these do not yet support the hosted MCP.
