Provides an MCP interface to Flipt for managing and evaluating feature flags via a stdio transport.
Configuration
View docs{
"mcpServers": {
"flipt-io-mcp-server-flipt": {
"command": "npx",
"args": [
"-y",
"@flipt-io/mcp-server-flipt"
],
"env": {
"FLIPT_API_KEY": "<YOUR_API_KEY>",
"FLIPT_API_URL": "<YOUR_FLIPT_API_URL>"
}
}
}
}You run an MCP server for Flipt to let AI assistants interact with feature flags. It exposes management, evaluation, and control of namespaces, flags, segments, rules, and more through a simple transport, enabling practical automation and conversational control of Flipt features.
You connect your MCP client to the Flipt MCP Server using a stdio transport, which streams commands and responses between the client and server. Use the server to list, create, update, and delete namespaces, flags, segments, rules, and related entities. You can also evaluate flags for specific entities, toggle flags on or off, and manage constraints, variants, distributions, and rollouts. Typical workflows include configuring a namespace, adding flags with their rules, and then asking the client to evaluate a flag for a given entity to decide feature behavior in real time.
npm install -g @flipt-io/mcp-server-flipt && mcp-server-flipt
```
```
npx -y @flipt-io/mcp-server-flipt
```
```
docker run -d --name mcp-server-flipt ghcr.io/flipt-io/mcp-server-flipt:latestThe server can read its configuration from environment variables. You can set these variables in a ".env" file in the directory where you run the server. The key variables are the API URL for Flipt and an optional API key.
- FLIPT_API_URL: The URL of the Flipt API (default: http://localhost:8080).
- FLIPT_API_KEY: The API key for authenticating with the Flipt API (optional).
List all namespaces in Flipt, allowing you to see available scoping for flags and rules.
Create a new namespace to group related flags and resources.
Update properties of an existing namespace.
Delete a namespace and its associated flags and rules.
List all flags within a namespace or across the server.
Create a new feature flag with its rules and constraints.
Modify an existing flag's properties, such as constraints or default variant.
Remove a flag from a namespace.
List segments used to target groups of entities for flag evaluation.
Create a new targeting segment for flags.
Update an existing segment's rules or membership.
Delete a segment from the MCP view.
List evaluation rules for a flag, including conditions and outcomes.
Update a specific evaluation rule for a flag.
Remove an evaluation rule from a flag.
Evaluate a flag for a given entity to determine its active variant.
Enable or disable a flag across the applicable namespace.
Manage constraints that govern when a flag is evaluated.
Manage the variants that a flag can return during evaluation.
Configure how flag variants are distributed across entities.
Configure gradual rollouts and rollout strategies for flags.