Flagsmith MCP by usefulapi

Read flags, segments and audit logs; switch flags on or off in Flagsmith.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
93%
Naming quality
78%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'flagsmith_set_feature_state_enabled' name length outside 3-30 rangein flagsmith_set_feature_state_enabled

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~2,189Tokens (tool definitions)
~1.2 KBTypical response size
Moderate attention impact (1.71% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "flagsmith": {
      "url": "https://flagsmith.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://flagsmith.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (13)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢flagsmith_list_organisations(page)

List the organisations this API token can access. Good first call to find the organisation scope. Management API: GET /api/v1/organisations/.

Input Schema

{
  "type": "object",
  "properties": {
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_projects

List the projects in the organisations this token can access, with their settings. Management API: GET /api/v1/projects/.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_get_project(project_id)

Get one project's settings (name, organisation, migration status, edge identities). Management API: GET /api/v1/projects/{id}/.

Input Schema

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    }
  },
  "required": [
    "project_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_environments(project_id, page)

List environments (for example Development, Staging, Production), optionally for one project. Each item has an api_key you pass to the other environment tools. Management API: GET /api/v1/environments/.

Input Schema

{
  "type": "object",
  "properties": {
    "project_id": {
      "description": "Only environments of this project.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_get_environment(environment_api_key)

Get one environment's settings and its project, by environment API key. Management API: GET /api/v1/environments/{api_key}/.

Input Schema

{
  "type": "object",
  "properties": {
    "environment_api_key": {
      "type": "string",
      "minLength": 1,
      "description": "Environment API key (the api_key field from flagsmith_list_environments)."
    }
  },
  "required": [
    "environment_api_key"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_features(project_id, search, page, page_size)

List the feature flags in one project, with type, default state and tags. Use search to filter by name. Management API: GET /api/v1/projects/{project_pk}/features/.

Input Schema

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "search": {
      "description": "Filter flags whose name matches this text.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page_size": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "project_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_get_feature(project_id, feature_id)

Get one feature flag: its name, type, default value, description and tags. Management API: GET /api/v1/projects/{project_pk}/features/{id}/.

Input Schema

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "feature_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Feature id (from flagsmith_list_features)."
    }
  },
  "required": [
    "project_id",
    "feature_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_feature_states(environment_api_key, feature_id, feature_name, page)

List the on/off state and value of each flag in one environment. Filter by feature id or feature name. Each item has an id you can pass to flagsmith_set_feature_state_enabled. Management API: GET /api/v1/environments/{environment_api_key}/featurestates/.

Input Schema

{
  "type": "object",
  "properties": {
    "environment_api_key": {
      "type": "string",
      "minLength": 1,
      "description": "Environment API key (the api_key field from flagsmith_list_environments)."
    },
    "feature_id": {
      "description": "Only the state of this feature id.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "feature_name": {
      "description": "Only the state of the feature with this exact name.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "environment_api_key"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_segments(project_id, q, page, page_size)

List the segments (rule-based groups of identities) in one project. Use q to search by name. Management API: GET /api/v1/projects/{project_pk}/segments/.

Input Schema

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "q": {
      "description": "Search text for segment names.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page_size": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "project_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_get_segment(project_id, segment_id)

Get one segment with its rules, description and membership counts. Management API: GET /api/v1/projects/{project_pk}/segments/{id}/.

Input Schema

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "segment_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Segment id (from flagsmith_list_segments)."
    }
  },
  "required": [
    "project_id",
    "segment_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_identities(environment_api_key, page, page_size)

List the identities (end users or devices with traits) known to one environment. Management API: GET /api/v1/environments/{environment_api_key}/identities/.

Input Schema

{
  "type": "object",
  "properties": {
    "environment_api_key": {
      "type": "string",
      "minLength": 1,
      "description": "Environment API key (the api_key field from flagsmith_list_environments)."
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page_size": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "environment_api_key"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_audit_log(project_id, search, page, page_size)

List the audit log of one project: who changed which flag, segment or setting, and when. Management API: GET /api/v1/projects/{project_pk}/audit/.

Input Schema

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "search": {
      "description": "Search text in the audit log messages.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page_size": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "project_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴flagsmith_set_feature_state_enabled(environment_api_key, feature_state_id, enabled)

Set a flag on or off in one environment. This changes live behaviour for every SDK that reads that environment, so check the environment first (use Production with care). Use the id from flagsmith_list_feature_states. Management API: PATCH /api/v1/environments/{environment_api_key}/featurestates/{id}/.

Input Schema

{
  "type": "object",
  "properties": {
    "environment_api_key": {
      "type": "string",
      "minLength": 1,
      "description": "Environment API key (the api_key field from flagsmith_list_environments)."
    },
    "feature_state_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Feature state id (from flagsmith_list_feature_states)."
    },
    "enabled": {
      "type": "boolean",
      "description": "true turns the flag on, false turns it off."
    }
  },
  "required": [
    "environment_api_key",
    "feature_state_id",
    "enabled"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded13 tools