Skip to content

Menu

LaunchDarkly MCP Server logo

LaunchDarkly MCP Server

Published

At a glance

Category
Code & Git
GitHub repository
launchdarkly/mcp-server
Watch out for
The local server is meant for EU and Federal instances; LaunchDarkly says the hosted server is more complete and gets updates more often.

LaunchDarkly publishes two MCP options for its feature flag platform. The main one is a hosted server at https://mcp.launchdarkly.com/mcp that LaunchDarkly runs itself. It connects over OAuth and covers feature flag management, AgentControl configs, experimentation and observability. The docs list Cursor, Claude Code, Claude Desktop, VS Code with Copilot and Windsurf as clients that can use it.

The second is the open source local server in the launchdarkly/mcp-server repo, published to npm as @launchdarkly/mcp-server. It runs over stdio and authenticates with a LaunchDarkly API access token passed on the command line. The README is direct about its role: LaunchDarkly strongly recommends the hosted server where it is available, and keeps the local one for EU and Federal instances, which do not yet support the hosted option.

The local server is generated from the LaunchDarkly API and exposes resources such as feature flags, AI Configs, experiments, metrics, environments, code references and the audit log. The repo is active, with v0.7.2 released in October 2026.

How it connects

Your AI app

An assistant or agent that supports MCP

LaunchDarkly MCP Server

Runs as

  • npx (Node.js)
  • Docker
  • Remote (HTTP)

Gives the agent

  • Feature flag management
  • AI Configs
  • Experiments and metrics
  • Environments and code references
  • Audit log
  • Regional endpoints

LaunchDarkly

Signs in with

  • OAuth / browser sign-in
  • Token
Your AI app talks to LaunchDarkly MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Feature flag management
The FeatureFlags group covers list, get, create, patch and delete, plus getStatus to see a flag's status across environments.
AI Configs
Agents can list, create, update and delete AI Configs, manage their variations, and read or change targeting with getTargeting and updateTargeting.
Experiments and metrics
The Experiments group lists, creates, reads and patches experiments, and the Metrics group lists, creates, reads and patches metrics.
Environments and code references
listByProject returns a project's environments, and listRepositories lists repositories connected through code references.
Audit log
listEntries pulls audit log entries, which helps when an agent needs to explain who changed a flag and when.
Regional endpoints
The --server-url argument points the local server at Commercial (https://app.launchdarkly.com), Federal (https://app.launchdarkly.us) or EU (https://app.eu.launchdarkly.com).

Setting it up

For the hosted server, add https://mcp.launchdarkly.com/mcp as a remote MCP server in your client and complete the OAuth sign-in. In Cursor you can also go to Settings > Cursor Settings > Tools & Integrations > MCP Tools and enter that URL, or install the LaunchDarkly plugin from the Cursor Marketplace. OAuth tokens last two hours and refresh automatically, but you must reauthorize every 90 days. For the local server (EU or Federal accounts), create an API access token on LaunchDarkly's Authorization page. Then add a server entry to .cursor/mcp.json in Cursor or claude_desktop_config.json in Claude Desktop with command "npx" and args "-y", "--package", "@launchdarkly/mcp-server", "--", "mcp", "start", "--api-key", followed by your key. Add "--server-url" with https://app.launchdarkly.us or https://app.eu.launchdarkly.com for Federal or EU. The README asks for Node.js 22.23.4, 24.22.1, 26.12.1 or later, or Docker image 0.7.1 or later.

Run in a terminal
claude mcp add --transport http launchdarkly https://mcp.launchdarkly.com/mcp

If the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Create a feature flag for a new code path and check its status in each environment before merging.
  • Find which flags changed recently by reading audit log entries during an incident.
  • Adjust targeting or variations on an AI Config while iterating on a prompt.
  • Set up an experiment and its metrics from the editor instead of the LaunchDarkly UI.
  • List environments for a project so the agent picks the right one before making a change.

Limitations and things to watch

  • The local server is meant for EU and Federal instances; LaunchDarkly says the hosted server is more complete and gets updates more often.
  • The local server uses an API access token on the command line, so its permissions are whatever that token's role allows, including deletes.
  • Write tools such as patch and delete act on live flags and can change production behavior immediately.
  • The standalone mcp-server-bun binaries from v0.6.1 and earlier are no longer published and should be replaced with npx or Docker.
  • Hosted server OAuth access must be reauthorized every 90 days.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…