
LaunchDarkly Local MCP Server: Setup for Claude, Cursor and Other Apps
Lets your assistant list, create and update LaunchDarkly feature flags, experiments, metrics and AI Configs.
This is LaunchDarkly's self-run server. It runs on your computer and uses a LaunchDarkly API access token. LaunchDarkly says to use its hosted server where you can, because it is more complete and updated more often. This local one is for EU and Federal accounts, which do not have the hosted server yet.
Good for
- Teams on LaunchDarkly EU or Federal who want flag changes from their assistant
- Developers who check flag status across environments while coding
- Product teams that manage experiments and metrics
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install mcp-server
Claude Code
- 1
Copy this prompt.
Add the mcp-server server to Claude Code. Run this command: claude mcp add LaunchDarkly -- npx -y --package @launchdarkly/mcp-server -- mcp start --api-key api-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js 22.23.4, 24.22.1, 26.12.1 or later.
Read-only mode: Add `--scope read` to the start command (after `mcp start`) to load only the read tools. The README does not mention this option; it comes from the server source.
Replace the example key with your LaunchDarkly API access token. For a Federal or EU account, add --server-url with your region's address after the key. The README says to prefer the hosted server where your account supports it.
From the project README. Source.
Tools
Lists your feature flags
Lists the feature flags in a project.
Try: “List the feature flags in my web project.”
Network ·
list-feature-flagsShows one flag
Gets the details of a feature flag.
Try: “Show me the new-checkout flag.”
Network ·
get-feature-flagShows a flag's status in each environment
Returns the status of a flag across environments.
Try: “Is new-checkout on in production and staging?”
Network ·
get-flag-status-across-environmentsCreates a feature flag
Creates a new feature flag.
Try: “Create a boolean flag called dark-mode.”
Write ·
create-feature-flagUpdates a flag
Changes a flag, for example to turn it on or off or to edit its targeting.
Try: “Turn on dark-mode for 10 percent of users in staging.”
Write ·
update-feature-flagDeletes a flag
Deletes a feature flag.
Try: “Delete the old-banner flag.”
Delete ·
delete-feature-flagLists the environments in a project
Lists the environments of a project.
Try: “What environments does my web project have?”
Network ·
get-environmentsShows recent changes in the audit log
Lists audit log entries.
Try: “Who changed flags this week?”
Network ·
get-audit-log-entriesLists repositories with flag references
Lists the code repositories that reference your flags.
Try: “Which repos use LaunchDarkly flags?”
Network ·
get-code-referencesLists experiments
Gets the experiments in a project.
Try: “List my running experiments.”
Network ·
list-experimentsLists experiments in every environment
Gets experiments across any environment.
Try: “List experiments in all environments.”
Network ·
list-experiments-any-environmentShows one experiment
Gets one experiment.
Try: “Show the checkout experiment.”
Network ·
get-experimentCreates an experiment
Creates a new experiment.
Try: “Create an experiment on the new-checkout flag.”
Write ·
create-experimentUpdates an experiment
Patches an experiment.
Try: “Rename that experiment.”
Write ·
update-experimentStarts a new experiment iteration
Creates an iteration. The README marks this deprecated.
Try: “Create a new iteration.”
Write ·
create-experiment-iterationLists metrics
Lists the metrics in a project.
Try: “List my conversion metrics.”
Network ·
list-metricsShows one metric
Gets one metric.
Try: “Show the signup metric.”
Network ·
get-metricCreates a metric
Creates a new metric.
Try: “Create a metric for completed checkouts.”
Write ·
create-metricUpdates a metric
Updates an existing metric.
Try: “Rename the signup metric.”
Write ·
update-metricLists AI Configs
Lists AI Configs in a project.
Try: “List my AI Configs.”
Network ·
list-ai-configsShows one AI Config
Gets an AI Config.
Try: “Show the support-bot AI Config.”
Network ·
get-ai-configCreates an AI Config
Creates a new AI Config.
Try: “Create an AI Config for the summary bot.”
Write ·
create-ai-configUpdates an AI Config
Updates an AI Config.
Try: “Update the description of that AI Config.”
Write ·
update-ai-configDeletes an AI Config
Deletes an AI Config.
Try: “Delete the test AI Config.”
Delete ·
delete-ai-configShows who gets which AI Config
Shows an AI Config's targeting.
Try: “Who is targeted by the support-bot config?”
Network ·
get-ai-config-targetingChanges AI Config targeting
Updates an AI Config's targeting.
Try: “Send 20 percent of users to variation B.”
Write ·
update-ai-config-targetingShows one variation
Gets an AI Config variation.
Try: “Show variation B.”
Network ·
get-ai-config-variationAdds a variation
Creates an AI Config variation.
Try: “Add a new variation with a shorter prompt.”
Write ·
create-ai-config-variationEdits a variation
Updates an AI Config variation.
Try: “Change the model in variation B.”
Write ·
update-ai-config-variationDeletes a variation
Deletes an AI Config variation.
Try: “Delete variation C.”
Delete ·
delete-ai-config-variation
Read from the source code
Permissions
high risk · 4 things to watch
High risk
It can change and delete feature flags and AI Configs, and a flag change can switch features on or off for real users. Use an access token with a reader role, or a role limited to a test project, unless you need changes.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only modeHow to turn it on
Watch out for
It can delete flags and AI Configs
Delete tools remove flags, AI Configs and their variations. Start the server with `--scope read`, or use a reader token, if you only want to look.
A flag update can change what real users see
Updating a flag or its targeting can turn features on or off in production. Ask for a review of the change before you approve it.
The token sits in your config file
The README puts the API key in the command arguments. Keep the file private, or load it from an environment variable where your app supports that.
Use a patched Node.js version
The README lists minimum Node.js versions, 22.23.4, 24.22.1 or 26.12.1, to protect the connection to LaunchDarkly.
Security advisories
No published security advisories as of Nov 1, 2026.
Technical details
| Turning on read-only | Add `--scope read` to the start command to load only read tools. The server source defines the scopes read and write; the README does not mention it. |
|---|---|
| Talks to | LaunchDarkly API (commercial, Federal or EU address) |
| Scopes |
|
Questions
Is it official?
Yes. It comes from the LaunchDarkly GitHub organization.
Should I use this or the hosted LaunchDarkly server?
Use the hosted server if your account supports it. LaunchDarkly says it is more complete and updated more often. This local one is for EU and Federal accounts, which cannot use the hosted server yet.
Do I need an API key?
Yes. Use a LaunchDarkly API access token from the Authorization page of your account. The role on the token decides what it can do.
How do I use it with a Federal or EU account?
Add the --server-url option with your region's address. The README lists https://app.launchdarkly.us for Federal and https://app.eu.launchdarkly.com for EU.
Can I run it read-only?
Yes. Add --scope read to the start command to load only the read tools. This option is in the server source, not the README. A token with a reader role also stops changes.
Can it delete flags?
Yes. It can delete feature flags, AI Configs and their variations. Use --scope read or a reader token if you only want to look.
Information
updated Nov 2, 2026
- Publisher
- Official
- Package
@launchdarkly/mcp-server- Registry
- npm
- Transport
- stdio
- Auth
- API key
- Version
- 0.7.2
- License
- MIT
- Last commit
- Oct 31, 2026
- Open issues
- 11
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.
Show all 2Hide
- github.com · github.com
- LaunchDarkly MCP server README · github.com