LaunchDarkly hosted MCP server
The hosted MCP server is not available in federal environments
Instead, consider using the local MCP server. To learn more, read LaunchDarkly in federal environments.Overview
This topic describes how to connect your AI client to the LaunchDarkly hosted Model Context Protocol (MCP) server. To use the hosted MCP server, you must have an AI client that supports MCP, such as Cursor, Claude Code, VS Code with Copilot, or Windsurf.
Configure the MCP server
The hosted MCP server at https://mcp.launchdarkly.com/mcp/launchdarkly connects your AI client to LaunchDarkly using OAuth and supports feature flag management, AgentControl configs, and observability.
You have two options for configuring it:
Quick configuration
To configure your AI client, open the install page and click the AI client you want to install it for. The AI client opens and prompts you to authorize and connect to the hosted MCP server.
Manual configuration
You can also manually configure the MCP server in your AI client. Here, we show examples for Cursor and Claude Code.
Cursor
To manually configure the MCP server in Cursor:
-
Create or update
.cursor/mcp.jsonin your project root:Cursor -
In Cursor, navigate to Settings > Cursor Settings > Tools & Integrations > MCP Tools.
-
Toggle on the LaunchDarkly server.
-
Click Connect to authorize with your LaunchDarkly account.
Claude Code
To manually configure the MCP server in Claude Code, add the server to your Claude Code MCP configuration:
GitHub Copilot
To manually configure the MCP server with GitHub Copilot, add the server to the MCP configuration for a target GitHub repo:
-
Navigate to a target repository on GitHub.
-
Select Settings -> Code and automation -> Copilot -> Coding agent.
-
In the MCP configuration section, add the following .json configuration:
GitHub Copilot -
Click Save.
Migrate to the hosted server
If you use the local npx-based server, you can migrate to the hosted server. Here’s how:
-
Replace your old server configuration. Your old configuration looks like this:
Old configuration to removeand should be replaced with this:
New configuration to add -
Remove any environment variables for the local server, such as
LD_ACCESS_TOKEN. Instead, OAuth now handles authentication. -
Close and reopen your AI client.
-
(Cursor only) If you are using Cursor, authorize your LaunchDarkly account:
- Navigate to Settings > Cursor Settings > Tools & Integrations > MCP Tools.
- Toggle on the LaunchDarkly server.
- Click connect.
To learn how to use the MCP server in your AI client, read Use the MCP server.