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.
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:
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.
You can also manually configure the MCP server in your AI client. Here, we show examples for Cursor and Claude Code.
To manually configure the MCP server in Cursor:
Create or update .cursor/mcp.json in your project root:
In Cursor, navigate to Settings > Cursor Settings > Tools & Integrations > MCP Tools.
Toggle on the LaunchDarkly server.
Click Connect to authorize with your LaunchDarkly account.
To manually configure the MCP server in Claude Code, add the server to your Claude Code MCP configuration:
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:
Click Save.
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:
and should be replaced with this:
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:
To learn how to use the MCP server in your AI client, read Use the MCP server.