MCP server for working with LaunchDarkly feature flags, written in Go.
- 🚀 Get feature flag values for specific users
- 📋 List all feature flags in the project
- 🔍 Get information about flag variations
- 🎯 Support for user attributes for targeting
- ⚡ Fast integration with Kiro through MCP
- Go 1.23+ (updated for LaunchDarkly SDK v7 compatibility)
- LaunchDarkly SDK Key
- Internet access
# 1. Navigate to project directory
cd launchdarkly-mcp-server
# 2. Install dependencies
make deps
# 3. Build the project
make build
# 4. Test (optional)
./test.sh
- Login to LaunchDarkly Dashboard
- Navigate to Settings → Projects
- Select your project
- Copy the Server-side SDK key
Add configuration to ~/.kiro/settings/mcp.json
:
{
"mcpServers": {
"launchdarkly": {
"command": "/full/path/to/launchdarkly-mcp-server/build/launchdarkly-mcp-server",
"args": [],
"env": {
"LAUNCHDARKLY_SDK_KEY": "sdk-your-real-key-here"
},
"disabled": false,
"autoApprove": ["get_feature_flag", "list_feature_flags", "get_flag_variations"]
}
}
}
Restart Kiro or reconnect MCP servers through the MCP Server view panel.
Gets the value of a feature flag for a specific user.
Parameters:
flag_key
(string): The feature flag keyuser_key
(string): The user keyuser_attributes
(object, optional): User attributes
Example:
{
"flag_key": "my-feature-flag",
"user_key": "user123",
"user_attributes": {
"email": "user@example.com",
"plan": "premium"
}
}
Returns a list of all feature flags in the project.
Gets information about variations for a specific feature flag.
Parameters:
flag_key
(string): The feature flag key
After setup, you can use these commands:
Get feature flag "new-checkout-flow" for user "user-123"
Get feature flag "premium-features" for user "user-456" with attributes email="test@example.com" and plan="premium"
Show all available feature flags
For development, you can run the server in debug mode:
go run main.go
- Go 1.23+
- LaunchDarkly SDK Key
- Internet access to connect to LaunchDarkly