LaunchDarkly MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with LaunchDarkly MCP or direct API to manage feature flags, configure experiments, review releases, and inspect observability data through natural language.

LaunchDarkly MCP logoLaunchDarkly MCP
Dcr Oauth

LaunchDarkly is a feature management platform for controlling releases, experiments, and observability. It helps teams safely roll out changes and monitor their impact.

169 Tools

Try LaunchDarkly MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
LaunchDarkly MCP
Try asking
TOOLS

Supported Tools

Every LaunchDarkly MCP action and event your agent gets out of the box.

Apply agent config approval

Apply an already-approved AgentControl Config approval request.

Apply approval request

Apply an already-approved flag or segment approval request without approving it.

Archive automated rollout config

Archive an automated rollout config so the scheduler stops processing it.

Archive flag

Archive a feature flag after a removal-readiness check, or set restore:true to unarchive it.

Copy flag config

Copy a flag's targeting configuration from one environment to another.

Create agent config

Create an AgentControl Config or one of its variations.

Create agent config approval

Create an approval request for an AgentControl Config change without approving it.

Create agent graph

Create an AgentControl graph for a multi-agent workflow.

Create agent skill

Create an AgentControl agent skill from SKILL.md markdown.

Create ai model config

Create a custom AI model config for a model that is not in the global catalog.

Create ai tool

Create an AI tool definition using raw JSON Schema.

Create alert

Create an observability alert that fires when an aggregated metric crosses a threshold.

Create approval request

Create an approval request for a flag or segment change without approving it.

Create assignment data source

Create a custom assignment data source from a warehouse table, view, or SQL query.

Create automated rollout config

Record an automated rollout config for a feature-flagged change.

Create dashboard

Create a new empty dashboard (visualization) for organizing charts.

Create dataset

Create and upload an offline evaluation dataset with a stable key.

Create environment

Create an environment in a LaunchDarkly project.

Create environment release plan

Create a reusable progressive-release plan in the specified project and environment.

Create evaluation

Create an AI evaluation definition snapshot.

Create experiment

Create a draft experiment on a flag or AgentControl Config.

Create flag

Create a new feature flag in a project.

Create flag release

Start a flag release: release a flag across environments by a flag release plan (kind "plan") or a list of environments (kind "custom").

Create flag release plan

Create a flag release plan, a reusable project-wide template for releasing flags across environments.

Create graph

Add a chart to an existing dashboard.

Create metric

Create a custom, pageview, click, or trace metric.

Create metric data source

Create a warehouse-native metric data source that maps a SQL query, table, or view in a connected warehouse to metric events.

Create playground

Create a new LLM playground.

Create project

Create a new LaunchDarkly project.

Create prompt snippet

Create a reusable prompt snippet.

Create segment

Create a new segment in a project environment.

Create trace annotation

Save a review (annotation) on one span of a trace that has none: correctness, explanation, or expectedOutputOverride; give at least one.

Create trace promotion

Add one span of a trace, or the whole trace, to an offline evaluation dataset as a new row.

Create view

Create a new view in a project.

Delete agent config

Permanently delete an AgentControl Config (resource=config) or one of its variations (resource=variation, with variationKey).

Delete agent graph

Permanently delete an AgentControl graph.

Delete agent skill

Permanently delete an AgentControl agent skill and all of its versions.

Delete ai model config

Permanently delete a custom AI model config.

Delete ai tool

Permanently delete an AI tool definition.

Delete alert

Permanently delete an observability alert.

Delete dashboard

Permanently delete a dashboard (visualization) and all of its graphs.

Delete dataset

Permanently delete an offline dataset and its associated metadata.

Delete environment release plan

Permanently delete an environment release plan.

Delete flag

Permanently delete a feature flag from the whole project.

Delete flag release plan

Permanently delete a flag release plan.

Delete graph

Permanently delete one graph from a dashboard and keep the dashboard and its other graphs.

Delete metric

Permanently delete a metric.

Delete prompt snippet

Permanently delete a prompt snippet.

Delete segment

Permanently delete a segment from one environment.

Delete view

Delete a view by key.

Find o11y project

Find the LaunchDarkly project that holds a service's observability data (logs, traces, metrics, errors).

Get agent config approvals

List approval requests for an AgentControl Config.

Get agent configs

Without configKey: search and browse AgentControl Configs (query, tags, view, modes, maintainerId, maintainerTeamKey, sort, limit, offset; filters combine with AND).

Get agent graphs

Without graphKey: list AgentControl graphs in a project (limit, offset).

Get agent skills

AgentControl agent skills: versioned SKILL.md documents that AgentControl Config variations attach by {key, version}.

Get ai model configs

Get the AI model configs that AgentControl Config variations can select: global catalog models (global=true) and the project's custom models.

Get ai tools

Without toolKey: list AI tool definitions in a project (limit, offset).

Get alert firing history

Show when an alert actually fired, what it evaluated, and what state it is in now.

Get alerts

Without alertId: list existing alerts as compact rows with each enabled alert's current state, 50 at a time; page with offset, and set fullConfig for investigation settings and destination IDs; check this before creating a new alert.

Get approval requests

List approval requests, including applied (completed), scheduled, and failed requests.

Get assignment data sources

Custom assignment data sources: project-scoped warehouse tables recording which treatment each context received, for experiments assigned outside LaunchDarkly.

Get automated rollout config

Fetch a single automated rollout config by id to verify its state.

Get changes

Show what changed around a failure: one time-ordered timeline for a service and window that merges build version changes seen in traces, logs and errors, LaunchDarkly flag changes from the audit log, and the service's alert firings and config edits.

Get context attributes

Discover context attribute names and values recently seen in one environment, to build a search-contexts filter or a targeting clause from real data instead of guessed names.

Get context instances

Get all stored instances of a specific context by kind and key.

Get context kinds

List the context kinds defined in a project (for example user, organization, device), with key, name, description, archived, hideInTargeting, createdFrom, and lastSeen.

Get dashboards

Without dashboardId: list existing dashboards, with next_offset when more remain; set includeGraphs for each dashboard's graph stubs.

Get datasets

Without datasetId: list offline datasets in a project (id, name, status, row count, creation info), paged by page and pageSize.

Get doc

Fetch the full markdown content of a LaunchDarkly documentation page.

Get environment

Get a LaunchDarkly environment's client-side ID, mobile key, and approval settings.

Get environment release plans

Get environment release plans, reusable progressive-release recipes.

Get error group

Get one error group by secure_id with its state, stack and one occurrence (the latest unless errorObjectId or startDate picks another), with its trace_id, session, and next_id and previous_id.

Get evaluation run summary

Get the summary results of a completed evaluation run, including pass/fail counts and aggregate scores.

Get evaluations

Without evaluationId: list AI evaluation definition snapshots in a project (search by name, state active or archived, sortBy updatedAt or lastRun, limit, offset).

Get experiment metric results

Get detailed statistical results for one metric on an experiment iteration.

Get experiment results

Get an overall results summary across every metric on an experiment iteration.

Get experiments

Without experimentKey: list experiments in a project, optionally filtered by environmentKey, flagKey, or status; each entry has key, name, description, and current iteration status.

Get flag code references

Get per-repository code-reference counts for one flag.

Get flag extinctions

Get commits that removed the last code reference to one flag in scanned repositories.

Get flag health

Get a combined flag health view with lifecycle status, last request time, targeting summary, age, and temporary state.

Get flag release plans

Get flag release plans, reusable templates that say how a flag is released across a project's environments.

Get flags

Without flagKey: search and browse feature flags; returns a paginated summary per flag (key, name, kind, tags, temporary, archived, deprecated, maintainer, and whether targeting is on) in one environment.

Get flag scheduled changes

List the scheduled changes on one flag in one environment: targeting changes LaunchDarkly will apply automatically at a future executionDate, such as turning the flag on or off, changing the default rule, or editing rules and targets.

Get flag status across envs

Check whether a flag is still evaluated, and where: its lifecycle status (new, active, inactive or launched) and when it was last evaluated.

Get flag unique context exposures

Get distinct context counts for a flag and environment, broken down by context kind.

Get holdouts

Holdouts keep a percentage of traffic out of a group of experiments to measure their combined impact.

Get incidents

Read incidents from the incident.io workspace connected to this project, to learn whether one already exists for a problem and what responders found.

Get keys

List observability keys (name, type, count in the window, highest first) for a product type, to pick groupBy, filter and column keys.

Get layers

List a project's experiment layers.

Get member self

Return the authenticated member's profile and team memberships.

Get metric data sources

Warehouse-native metric data sources: each maps a SQL query, table, or view in a connected warehouse to metric events.

Get metric events

Metric event keys LaunchDarkly has observed.

Get metrics

LaunchDarkly metrics used by experiments and guarded rollouts; for observability metric names in a time window, use get-keys with productType metrics.

Get playgrounds

Without playgroundId: list LLM playgrounds in a project (names, variant counts, timestamps); search by name, filter by status, paged by limit and offset.

Get projects

Without projectKey: list LaunchDarkly projects in the account; use to discover project keys before calling project-scoped toolruntime.

Get prompt snippets

Without snippetKey: list reusable prompt snippets in a project (filter, limit, offset).

Get removal readiness

Detailed safety check before removing a feature flag in one environment; env is required, so ask which environment when the user hasn't named one.

Get resource views

List the views a flag, segment, or AgentControl Config is linked to, answering which views contain a given resource.

Get rollout completeness

Check whether a feature flag is fully rolled out: every traffic-bearing environment serves one variation to all contexts, and a stability gate is met.

Get sdk active

Check whether any SDKs have been active in a given environment.

Get sdk key

Return the server-side SDK key (sdk-...) for one environment.

Get segments

Without segmentKey: list segments in one environment with rule counts and target counts, paged; query searches name or key, tags filters, view restricts to segments linked to a view.

Get service connections usage

Get a time series of service connection minutes from your LaunchDarkly account.

Get session details

Get one session's details in one call: the session row, its frontend errors, a network resource summary, web vitals, rage clicks, and active and idle intervals; choose sections with include.

Get session event chunks

List the rrweb replay event chunks of one session, each with chunk_index and its start timestamp in epoch milliseconds.

Get skills

List the LaunchDarkly guides bundled with this server.

Get teams

Without teamKey: search account teams by name or key (query, limit, offset); each has key, name, description, memberCount, and idpSynced.

Get trace

Get one trace by ID as a span tree with each span's service, duration, self_ms (time not spent in children) and status, plus completeness and error groups.

Get trace annotations

Get the review (annotation) on one span of a trace: correctness, explanation, and expectedOutputOverride (the output the span should have produced).

Get trace promotions

Get a create-trace-promotion job: queued, processing, completed (with the row), or failed (with an error code and message).

Get vega conversations

Read Vega AI conversations in a project: chats from the Vega page, the Ask Vega bar and in-product assistants, and agent runs such as alert auto-investigations, flag cleanups and Factory PR analyses.

Get views

Views are an Enterprise feature.

Invite members

Invite account members by preparing a link to the Members page with their email addresses pre-filled.

Link view resources

Link flags, segments, or AgentControl Configs to a view.

List view resources

List the resources of one type linked to a view.

Load skill

Read a bundled LaunchDarkly guide by skill key, or a supporting file by skill key and reference path.

Preview graph

Preview a chart inline without saving it.

Query funnel

Count how many sessions (or other groups) reach each step of an ordered funnel, where each step is a logs, traces, or product-analytics events search query, e.g.

Run evaluation

Start an AI evaluation run.

Save and start experiment iteration

Stop the running iteration, create a new draft with supplied field updates, and start it.

Search aggregations

Compute time-bucketed aggregates (counts, sums, averages, percentiles) for a product type; prefer it to raw queries for trends, group comparisons, or windows over 24 hours; for services ranked by error rate, request count or p95, or one service's health by endpoint, use search-service-map with include health.

Search change history

Query the audit log to find what changed in a LaunchDarkly account.

Search contexts

Search for stored LaunchDarkly contexts in an environment by kind, key, or attribute value.

Search docs

Search LaunchDarkly documentation to retrieve authoritative reference material for flags, targeting rules, experiments, segments, AgentControl configs, SDKs, API fields, rollouts, metrics, and more.

Search error groups

Query error groups whose occurrences match a filter in a time window.

Search flag evaluations

Query flag evaluations the observability plugin records on spans.

Search log patterns

Cluster the logs matching a filter into message templates, with ids, numbers and other variable parts masked, each with its count and the newest example.

Search logs

Query raw log entries (timestamp, level, message, service, attributes) in a time window.

Search members

Search account members by name or exact emails.

Search service map

Services from trace data in a window.

Search sessions

Query sessions in a time window; set detailed for replay, privacy, and billing fields.

Search stale flags

Find cleanup candidates, prioritized as never requested, inactive beyond the threshold, or launched without recent changes.

Search timeline events

Query timeline indicator events for one session (clicks, navigations, track and identify calls, focus and tab changes) in time order.

Search traces

Query raw spans in a window of up to 24 hours; use search-aggregations for longer windows.

Start experiment iteration

Start an experiment iteration and allocate live end-user traffic.

Start guarded rollout

Before calling this tool, call load-skill for the `feature-flags/launchdarkly-guarded-rollout` guide without asking the user, since loading is read-only; it covers stage design and metric choice, which this tool does not validate.

Stop experiment iteration

Stop the currently running experiment iteration with a required winning treatment.

Stop guarded rollout

Stop an active guarded rollout.

Toggle alert

Enable or disable an observability alert without changing its configuration.

Toggle flag

Turn a feature flag's targeting on or off in a specific environment.

Unlink view resources

Unlink flags, segments, or AgentControl Configs from a view.

Update agent config

Update an AgentControl Config.

Update agent graph

Update AgentControl graph metadata or replace its structure.

Update agent skill

Update an AgentControl agent skill.

Update ai model config

Update an AI model config.

Update ai tool

Update an AI tool definition's description or schema.

Update alert

Update an observability alert.

Update assignment data source

Replace fields on a custom assignment data source, or archive it with archived: true.

Update automated rollout config

Modify an automated rollout config that has not started releasing.

Update dashboard

Change an existing dashboard, or with graphId one of its graphs.

Update default environment release plan

Set or clear an environment release plan as the environment's default, the plan suggested first when starting a release.

Update environment release plan

Update an environment release plan's name, description, or progressive-release configuration.

Update error group state

Triage an error group: set its state to OPEN, RESOLVED, or IGNORED, and optionally snooze it until a time.

Update experiment

Update fields on an experiment or its current iteration.

Update expiring targets

List, add, update, or remove expiring targets on a flag.

Update flag

Update a flag's top-level settings and variations without changing environment targeting.

Update flag release plan

Update a flag release plan's name, description, maintainer, executionMode, applicationKeys, default, or environments.

Update flag targeting

Add, remove, or replace users or contexts in individual flag targeting, and add or remove flag prerequisites, in one environment.

Update metric

Change an existing metric.

Update off variation

Set the variation a flag serves when its targeting is off in each environment in envs, or every environment with ["*"].

Update playground

Update an LLM playground's name, variants, or archived status.

Update project

Rename a LaunchDarkly project or change its tags.

Update prompt snippet

Update a prompt snippet and create a new version.

Update rollout

Change a flag's default rule to a percentage rollout or a single variation in one environment.

Update segment rules

Add, remove, or modify attribute-based targeting rules on a segment.

Update segment targets

Add or remove individual context keys from a segment's included or excluded lists.

Update targeting rules

Before adding or changing a rule's clauses or rollout, load the `feature-flags/launchdarkly-flag-targeting` guide with load-skill; it covers whether the flag's evaluation context can match the rule, which this tool does not check.

Update trace annotation

Change the review (annotation) on one span of a trace.

Update view

Update a view's name, description, maintainer, or tags.

SETUP GUIDE

Connect LaunchDarkly MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["launch_darkly_mcp"],
  mcp: true,
});
Create a session scoped to LaunchDarkly MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List all production feature flags in the mobile-app project and show their current targeting rules.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a LaunchDarkly MCP request
SETUP GUIDE

Connect LaunchDarkly MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["launch_darkly_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to LaunchDarkly MCP
3

Run LaunchDarkly MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List all production feature flags in the mobile-app project and show their current targeting rules." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the LaunchDarkly MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native LaunchDarkly MCP Integration

  • Supports both LaunchDarkly MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your LaunchDarkly MCP data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke LaunchDarkly MCP access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access LaunchDarkly MCP
  • Scoped, least privilege access to LaunchDarkly MCP resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use LaunchDarkly MCP with any AI Agent Framework

Choose a Framework you want to connect LaunchDarkly MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with LaunchDarkly MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every LaunchDarkly MCP tool your agent needs.Free to start.

Start building