LaunchDarkly hosted MCP server
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.
Quick configuration
If you’re using an AI client, like Claude or Cursor, the install page connects to it without requiring you to manually edit a configuration file. Open the install page, select your AI client, and follow the prompts to authorize and connect.
Manual configuration
If you prefer to configure your AI client manually, read the instructions in this section. Here, we show examples for Cursor, Claude Code, Windsurf, and GitHub Copilot.
Expand Cursor installation instructions
Cursor supports two methods for adding the MCP server.
To add the server through Cursor Settings:
- In Cursor, navigate to Settings > Cursor Settings > Tools & Integrations > MCP Tools.
- Click Add Custom MCP. An “Install MCP Server?” dialog appears.
- Enter the following values:
- Name:
LaunchDarkly - Type:
streamableHttp - URL:
https://mcp.launchdarkly.com/mcp/launchdarkly
- Name:
- Click Install.
To edit the configuration file directly:
-
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.
Expand Claude Code installation instructions
To manually configure the MCP server in Claude Code, add the server to your Claude Code MCP configuration:
Expand Windsurf installation instructions
To manually configure the MCP server in Windsurf:
-
Open Windsurf Settings and navigate to Cascade.
-
Click View raw config. This opens
mcp_config.json. You can also open this file directly:- macOS:
~/.codeium/windsurf/mcp_config.json - Windows:
%USERPROFILE%\.codeium\windsurf\mcp_config.json
- macOS:
-
Add the LaunchDarkly server to the
mcpServersobject:Windsurf -
Save the file and restart Windsurf.
Expand GitHub Copilot installation instructions
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.
-
Under the MCP configuration section, add the following .json configuration:
GitHub Copilot -
Click Save.
Migrate to the hosted server
If you used an earlier version of the local npx-based server, migrate to the hosted server using these steps:
-
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.