npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mcp-packages/flagsmith-server

v0.1.0

Published

MCP server for Flagsmith — feature flag listing, search, inspection, and toggling via the Model Context Protocol

Downloads

22

Readme

@mcp-packages/flagsmith-server

MCP server for Flagsmith — list, search, inspect, and toggle feature flags via the Model Context Protocol.

Designed for self-hosted Flagsmith instances. Connects to the Flagsmith Admin API over VPN.

Setup

1. Create an API Token

  1. Log in to your Flagsmith dashboard
  2. Go to Organisation SettingsAPI Keys
  3. Create an Admin API token
  4. Note your Project ID (visible in the dashboard URL: /project/<id>/...)

2. Environment Variables

| Variable | Required | Description | |---|---|---| | FLAGSMITH_API_TOKEN | Yes | Admin API token for authentication | | FLAGSMITH_BASE_URL | Yes | Base URL of your Flagsmith API (e.g., https://flagsmith.yourcompany.com/api/v1) | | FLAGSMITH_PROJECT_ID | Yes | Numeric project ID |

3. Configure Your IDE

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "flagsmith": {
      "command": "npx",
      "args": ["-y", "@mcp-packages/flagsmith-server"],
      "env": {
        "FLAGSMITH_API_TOKEN": "${FLAGSMITH_API_TOKEN}",
        "FLAGSMITH_BASE_URL": "https://flagsmith.yourcompany.com/api/v1",
        "FLAGSMITH_PROJECT_ID": "12345"
      }
    }
  }
}

Claude Code

claude mcp add flagsmith -- npx -y @mcp-packages/flagsmith-server

Set environment variables in your shell profile (~/.zshrc):

export FLAGSMITH_API_TOKEN="your-token"
export FLAGSMITH_BASE_URL="https://flagsmith.yourcompany.com/api/v1"
export FLAGSMITH_PROJECT_ID="12345"

Tools

| Tool | Description | |---|---| | list_flags | List all feature flags in the project | | search_flags | Search flags by name substring | | get_flag | Get flag details including state across all environments | | get_environment_flags | Get all flag states for a specific environment | | toggle_flag | Enable or disable a flag in an environment | | update_flag_value | Update a flag's remote config value in an environment |

Tool Details

list_flags

No parameters. Returns all flags with name, description, tags, default enabled state, and type.

search_flags

| Parameter | Type | Required | Description | |---|---|---|---| | query | string | Yes | Search term to match against flag names |

get_flag

| Parameter | Type | Required | Description | |---|---|---|---| | flagName | string | Yes | Exact name of the feature flag |

Returns flag metadata plus enabled state and value for every environment.

get_environment_flags

| Parameter | Type | Required | Description | |---|---|---|---| | environmentKey | string | Yes | Flagsmith environment API key (e.g., ser.abc123...) |

toggle_flag

| Parameter | Type | Required | Description | |---|---|---|---| | flagName | string | Yes | Exact name of the feature flag | | environmentKey | string | Yes | Flagsmith environment API key | | enabled | boolean | Yes | true to enable, false to disable |

update_flag_value

| Parameter | Type | Required | Description | |---|---|---|---| | flagName | string | Yes | Exact name of the feature flag | | environmentKey | string | Yes | Flagsmith environment API key | | value | string | Yes | New remote config value (plain string or JSON) |

Development

# Install dependencies (from monorepo root)
npm install

# Build
npm run build -w @mcp-packages/flagsmith-server

# Watch mode
npm run dev -w @mcp-packages/flagsmith-server