LaunchDarkly MCP server
53 operations0 webhooks
Manage LaunchDarkly feature flags, environments, projects, user segments, audit logs, account members, teams, custom roles, and contexts via the LaunchDarkly REST API.
Try LaunchDarkly with your agent
Connect LaunchDarkly, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in LaunchDarkly on my account, then run one read-only example and show me the result.
LaunchDarkly tools and triggers
Tools are what your agent can do in LaunchDarkly through Corsair's MCP server. Triggers are the LaunchDarkly events a routine can start from.
Environments
- CreateWrite
Create a new environment in a project
environments.create
- DeleteDestructive
Permanently delete an environment
environments.delete
- GetRead-only
Get details of a specific environment
environments.get
- ListRead-only
List all environments in a project
environments.list
- Reset Mobile KeyDestructive
Reset the mobile key for an environment
environments.resetMobileKey
- Reset Sdk KeyDestructive
Reset the SDK key for an environment
environments.resetSdkKey
- UpdateDestructive
Update environment configuration via JSON Patch
environments.update
Feature Flags
- CreateWrite
Create a new feature flag in a project
featureFlags.create
- DeleteDestructive
Permanently delete a feature flag
featureFlags.delete
- GetRead-only
Get details of a feature flag
featureFlags.get
- Get StatusRead-only
Get the status of a feature flag in an environment
featureFlags.getStatus
- ListRead-only
List feature flags in a project
featureFlags.list
- List StatusesRead-only
List statuses for all feature flags in an environment
featureFlags.listStatuses
- UpdateDestructive
Update feature flag rules and variations via JSON Patch (turning a flag on or off, or changing targeting, changes what live apps serve)
featureFlags.update
Account Members
- DeleteDestructive
Remove an account member from the account
accountMembers.delete
- GetRead-only
Get details of an account member by ID
accountMembers.get
- InviteDestructive
Invite new members to the account
accountMembers.invite
- ListRead-only
List all account members
accountMembers.list
- UpdateWrite
Update an account member role or permissions via JSON Patch
accountMembers.update
Custom Roles
- CreateWrite
Create a new custom role
customRoles.create
- DeleteDestructive
Permanently delete a custom role
customRoles.delete
- GetRead-only
Get a custom role by key
customRoles.get
- ListRead-only
List custom roles in the account
customRoles.list
- UpdateWrite
Update a custom role policy via JSON Patch
customRoles.update
Projects
- CreateWrite
Create a new project
projects.create
- DeleteDestructive
Permanently delete a project
projects.delete
- GetRead-only
Get details of a specific project by project key
projects.get
- ListRead-only
List all projects in the account
projects.list
- UpdateWrite
Update project configuration via JSON Patch
projects.update
Segments
- CreateWrite
Create a new user segment
segments.create
- DeleteDestructive
Permanently delete a user segment
segments.delete
- GetRead-only
Get details of a user segment
segments.get
- ListRead-only
List user segments in an environment
segments.list
- UpdateDestructive
Update user segment rules via JSON Patch (changes who flags that use the segment target)
segments.update
Teams
- CreateWrite
Create a new team
teams.create
- DeleteDestructive
Permanently delete a team
teams.delete
- GetRead-only
Get details of a team by key
teams.get
- ListRead-only
List teams in the account
teams.list
- UpdateWrite
Update a team via semantic instructions
teams.update
Access Tokens
- CreateDestructive
Create a new personal or service access token
accessTokens.create
- DeleteDestructive
Revoke and delete an access token
accessTokens.delete
- GetRead-only
Get details of an access token by ID
accessTokens.get
- ListRead-only
List access tokens in the account
accessTokens.list
Contexts
- GetRead-only
Get evaluation context by kind and key
contexts.get
- List KindsRead-only
List context kinds defined in a project
contexts.listKinds
- SearchRead-only
Search for evaluation contexts in an environment
contexts.search
Users
- GetRead-only
Get user record in an environment by user key (deprecated by LaunchDarkly; accounts on contexts answer 404, use contexts.get)
users.get
- ListRead-only
List users in an environment (deprecated by LaunchDarkly; accounts on contexts answer 404, use contexts.search)
users.list
- SearchRead-only
Search users in an environment by query string (deprecated by LaunchDarkly; accounts on contexts answer 404, use contexts.search)
users.search
Audit Log
- GetRead-only
Get a specific audit log entry by ID
auditLog.get
- ListRead-only
List recent audit log entries in the account
auditLog.list
Root
- GetRead-only
Get LaunchDarkly root API metadata and resource links
root.get
Tags
- ListRead-only
List tags across resources in the account
tags.list
Connect LaunchDarkly to Claude, ChatGPT or Cursor
- 1
Connect LaunchDarkly in Corsair
Add your LaunchDarkly API key once in Corsair. Corsair stores the credential encrypted and makes the LaunchDarkly API calls for your agent, so it never goes into a prompt or a config file. Connect LaunchDarkly
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs LaunchDarkly. On a ChatGPT personal plan, connect LaunchDarkly here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Customize → Connectors → Add custom connector, paste the address, then select Connect.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, LaunchDarkly's read and write operations run right away and its 15 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/launchdarkly, add the LaunchDarkly plugin, and connect with an API key. Then call methods like corsair.launchdarkly.api.accessTokens.create() from your app. Corsair keeps each tenant isolated.
Yes. LaunchDarkly requires an API key from your LaunchDarkly account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit LaunchDarkly, GitHub, Notion, Stripe, and the rest. Trigger LaunchDarkly from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for manage LaunchDarkly feature flags, environments, projects, user segments, audit logs, account members, teams, custom roles, and contexts via the LaunchDarkly REST API. Common builds include sync jobs, admin tooling, and agents that call LaunchDarkly APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per LaunchDarkly API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/launchdarkly in the open repo. When LaunchDarkly ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your LaunchDarkly data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store LaunchDarkly data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put LaunchDarkly on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 15 destructive LaunchDarkly operations. You can change a link's mode at hub.corsair.dev/me.