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

@toggletown/mcp-server

v0.1.0

Published

ToggleTown MCP server — manage feature flags, rollouts, targeting rules, and A/B experiments from any AI assistant

Readme

@toggletown/mcp-server

MCP server for ToggleTown — manage feature flags, rollouts, targeting rules, and A/B experiments from any AI assistant that supports the Model Context Protocol.

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "toggletown": {
      "command": "npx",
      "args": ["-y", "@toggletown/mcp-server"],
      "env": {
        "TOGGLETOWN_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Code

claude mcp add toggletown -- npx -y @toggletown/mcp-server

Then set your API key in the environment:

export TOGGLETOWN_API_KEY=your-api-key

Configuration

| Variable | Required | Description | |----------|----------|-------------| | TOGGLETOWN_API_KEY | Yes | Your account API key from the ToggleTown dashboard | | TOGGLETOWN_API_URL | No | API base URL (defaults to https://api.toggletown.com) |

Tools

The server exposes 12 tools:

| Tool | Description | |------|-------------| | toggletown_list_projects | List all projects with IDs, names, and flag counts | | toggletown_list_flags | List feature flags in a project with per-environment status | | toggletown_get_flag | Get full flag details including rules and rollout config | | toggletown_create_flag | Create a new feature flag (boolean, string, number, or JSON) | | toggletown_toggle_flag | Enable or disable a flag in a specific environment | | toggletown_evaluate_flag | Test flag evaluation with a user context | | toggletown_update_rules | Set targeting rules for a flag (first match wins) | | toggletown_set_rollout | Set percentage rollout (deterministic user bucketing) | | toggletown_list_environments | List environments in a project | | toggletown_get_audit_logs | Get recent flag change activity | | toggletown_list_experiments | List A/B experiments in a project | | toggletown_create_experiment | Create a new A/B experiment on a string flag |

Resources

The server also provides MCP resources for reading flag data:

  • toggletown://projects — All projects overview
  • toggletown://projects/{projectId}/flags — Flags for a project
  • toggletown://projects/{projectId}/environments — Environments for a project
  • toggletown://projects/{projectId}/flags/{flagKey} — Single flag detail

Examples

Once connected, you can ask your AI assistant things like:

  • "List all my feature flags"
  • "Create a flag called new-checkout and roll it out to 10% in production"
  • "Who changed the dark-mode flag recently?"
  • "Set up a targeting rule so users with plan=enterprise get the new dashboard"
  • "Create an A/B experiment on the hero-text flag with control and treatment variants"

License

MIT