# @launchdarkly/mcp-server [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/launchdarkly/mcp-server  
**GitHub Stars:** 27  
**npm Downloads (last month):** 427817  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/launchdarkly-mcp-server

## Description
The local [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [LaunchDarkly](https://launchdarkly.com/) federal and European Union (EU) environments.

## Claude Desktop Quick Installation
Install path inferred — verify against the README before running it. Uses `npx` (confidence: medium):

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

## Documentation

## What @launchdarkly/mcp-server does

@launchdarkly/mcp-server exposes LaunchDarkly operations through the Model Context Protocol. It is intended for LaunchDarkly federal and European Union environments, which do not yet support the hosted MCP service. The server lets an MCP-compatible AI client work with selected LaunchDarkly resources without requiring a custom integration for each client.

Supported operations include listing, reading, creating, updating, and deleting AI Configs. AI Config variations can also be created, retrieved, updated, and deleted. Targeting for an AI Config can be inspected and changed. Additional operations include listing audit log entries, repositories available to code references, and environments associated with a project.

LaunchDarkly recommends using its hosted MCP server where that service is available because the hosted option has broader feature coverage and is updated more frequently.

## How it works

The server uses the MCP protocol and can be launched as a local process with the `mcp start` command. Client configurations invoke the package through `npx`, passing a LaunchDarkly API key with `--api-key`. A locally cloned checkout can instead run the built server with Node.js.

Docker provides an alternative deployment model. The container exposes an SSE endpoint, and an MCP client connects to `/sse`. When the process listens beyond its default loopback address, authentication is required. Docker deployments listen on all interfaces by default, so they must use an authentication token and clients must send it as a Bearer token on the SSE and message endpoints.

## Setup and configuration

For an npx installation, configure the client to run:

```text
npx -y --package @launchdarkly/mcp-server -- mcp start --api-key <LaunchDarkly API key>
```

Create the corresponding MCP server entry in the client’s configuration. The API key is obtained from LaunchDarkly’s Authorization page. Clients that support environment-variable expansion can substitute a variable for the key; the example configuration maps `MCP_LD_TOKEN` to the `LD_ACCESS_TOKEN` value passed to the command.

A local checkout requires installing dependencies with `npm install` and building with `npm run build`. The resulting server can be started with Node.js and the path to `bin/mcp-server.js`.

For Docker, map port 8080 and provide both the LaunchDarkly API key and an authentication token of at least 16 characters. Configure the client with the container’s `/sse` URL and an `Authorization: Bearer` header. Cursor cannot directly expand environment variables in its MCP configuration; a local wrapper script is an available workaround.

Use a supported JavaScript runtime listed by the project. Due to compromised eMudhra intermediate certificate authorities, npx and local installations should use Node.js 22.23.4, 24.22.1, 26.12.1, or later. Docker images 0.7.1 and later use a patched Node.js runtime.

## Tools and capabilities

- Manage AI Configs and their variations.
- Read and update AI Config targeting.
- List audit log entries.
- List repositories for code references.
- List environments by project.
- Serve these operations to MCP-compatible AI clients over local process or SSE transports.

## Limitations and notes

This is a self-managed server for LaunchDarkly federal and EU environments. The hosted LaunchDarkly MCP server is preferred where available. The server requires a LaunchDarkly API key, and Docker or non-loopback SSE deployments also require an authentication token. Clients must support MCP, and Docker-based connections require support for the configured SSE endpoint and authorization header.

_Full upstream README: https://allmcps.com/mcp/launchdarkly-mcp-server/readme_

