
unleash ff mcp server
Unleash MCP Server
Repository Info
About This Server
Unleash MCP Server
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Unleash Feature Flag MCP Server
This repository contains a Model Context Protocol (MCP) server for interacting with Unleash feature flag management system. It allows AI agents to manage feature flags through the Unleash API.
What is MCP?
The Model Context Protocol (MCP) is a specification for enabling AI models to interact with external tools and data sources. This server implements the MCP protocol for Unleash, allowing AI assistants to manage feature flags programmatically.
Installation
You can install the package from npm:
npm install -g @ylin6/unleash-ff-mcp-server
Or run it directly using npx:
npx @ylin6/unleash-ff-mcp-server
Configuration
The server requires the following environment variables:
UNLEASH_API_URL: The URL of your Unleash API instanceUNLEASH_AUTH_TOKEN: The authentication token for your Unleash instance
Available Tools
The MCP server provides the following tools for managing feature flags:
Get Projects
Retrieves a list of all projects in the Unleash instance.
Get Features
Retrieves all feature flags within a specific project.
Parameters:
projectId: The ID of the project
Create Feature Flag
Creates a new feature flag within a project.
Parameters:
projectId: The ID of the projectname: The name of the feature flagdescription: A description of the feature flagtype: The type of the feature flag (e.g., "release", "experiment", "operational", "kill-switch")
Update Feature Flag
Updates an existing feature flag.
Parameters:
projectId: The ID of the projectfeatureId: The ID of the feature flagdescription: A new description for the feature flagtype: A new type for the feature flag
Get Feature Flag
Retrieves details about a specific feature flag.
Parameters:
projectId: The ID of the projectfeatureId: The ID of the feature flag
Using with Cursor
To use this MCP server with Cursor, use the following command in your cursor settings
env UNLEASH_API_URL=XXXX UNLEASH_AUTH_TOKEN=XXX npx -y @ylin6/unleash-ff-mcp-server
Examples
Example conversation with Cursor/Claude:
You: Show me all the feature flags in the 'dashboard' project
Claude: I'll fetch all the feature flags in the 'dashboard' project for you.
[Claude uses the getFeatures tool with projectId='dashboard']
Claude: Here are all the feature flags in the 'website' project:
- new-homepage (type: release)
- dark-mode (type: experiment)
- beta-footer (type: operational)
...
Development
To inspect the MCP server's operations, you can run:
npm run inspect
This uses the MCP inspector to analyze request/response patterns.
License
ISC
Quick Start
Clone the repository
git clone https://github.com/ylin6/unleash-ff-mcp-serverInstall dependencies
cd unleash-ff-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.