OpenFeature MCP Server logo

OpenFeature MCP Server

Organization
open-feature

Model Context Protocol (MCP) Server for OpenFeature

Publisheropen-feature
Repositorymcp
LanguageTypeScript
Forks
3
Stars
3
Available tools
2
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    OpenFeature MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 2 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    3 stars and 3 forks from the linked repository.

OpenFeature is an open specification that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool or in-house solution.

Overview

⚠️ Active Development: This project is in active development. Features and APIs may change.

The OpenFeature Model Context Protocol (MCP) Server enables AI coding assistants to interact with OpenFeature through a standardized protocol. It provides SDK installation guidance and feature flag evaluation capabilities directly within your AI-powered development environment.

The OpenFeature MCP Server is a local tool that connects AI coding assistants (like Cursor, Claude Code, VS Code, and Windsurf) to OpenFeature functionality. It acts as a bridge between your AI assistant and OpenFeature capabilities, enabling intelligent code generation and migration, SDK installation guidance, and feature flag evaluation.

This server is published to the MCP Registry under dev.openfeature/mcp.

⚠️ AI Agent Behavior: AI agents are non-deterministic and may not complete tasks correctly. Always manually review their changes before committing. If you encounter issues, please open an issue with details about your AI agent (e.g., Claude Code + Sonnet 4.5, Cursor + gpt-5-codex) with the commands you used and the behavior you saw.

Quick Start

NPX Install

The easiest way to use the OpenFeature MCP Server is through NPX, which requires no installation:

json
{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

NPM Global Install

You can install the MCP server globally:

bash
npm install -g @openfeature/mcp

Then configure your AI assistant to use the global installation:

json
{
  "mcpServers": {
    "OpenFeature": {
      "command": "openfeature-mcp"
    }
  }
}

AI Assistant Configuration

Cursor

📦 Install in Cursor

To open Cursor and automatically add the OpenFeature MCP, click the install button above.

Alternatively, navigate to Cursor Settings -> Tools & MCP -> New MCP Server and add to ~/.cursor/mcp_settings.json:

json
{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

VS Code

📦 Install in VS Code

To open VS Code and automatically add the OpenFeature MCP, click the install button above. For more details, see the VS Code MCP documentation.

Alternatively, add to .vscode/mcp.json in your project:

json
{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"],
      "env": { // Optional environment variables
        "OPENFEATURE_OFREP_BASE_URL": "<your-base-url>",
        "OPENFEATURE_OFREP_API_KEY": "<your-api-key>"
      }
    }
  }
}

Claude Code

Add the server via the Claude Code CLI:

bash
claude mcp add --transport stdio openfeature npx -y @openfeature/mcp

Then manage the connection with /mcp in the CLI.

Windsurf

In the Manage MCP servers raw config, add:

json
{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

Codex CLI

Edit ~/.codex/config.toml:

toml
[mcp_servers.openfeature]
command = "npx"
args = ["-y", "@openfeature/mcp"]

Restart Codex CLI after saving.

Gemini CLI

Edit ~/.gemini/settings.json:

json
{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

Restart Gemini CLI after saving.

Claude Desktop

Edit your Claude Desktop config at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following configuration:

json
{
  "mcpServers": {
    "openfeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

Restart Claude Desktop after saving.

Available Tools

The OpenFeature MCP Server provides two main tools accessible to AI assistants:

SDK Installation Guide: install_openfeature_sdk

Fetches installation instructions for OpenFeature SDKs in various languages and frameworks. Optionally includes provider-specific setup documentation.

SDK Tool Parameters

ParameterTypeRequiredDescription
technologystringYesTarget language/framework (see supported list below)
providersstring[]NoProvider identifiers to include installation instructions

Supported Technologies

The technologies list is built from the available prompts/*.md, updated automatically using scripts/build-prompts.js

TechnologySDK
androidAndroid Kotlin SDK
dotnet.NET SDK
goGo SDK
iosiOS Swift SDK
javaJava SDK
javascriptJavaScript Web SDK
nestjsNestJS SDK
nodejsNode.js SDK
phpPHP SDK
pythonPython SDK
reactReact SDK
rubyRuby SDK

Supported Providers

The provider list is automatically sourced from the OpenFeature ecosystem (open-feature/openfeature.dev repo).

See scripts/build-providers.js for details on how the provider list is maintained.

OFREP Flag Evaluation: ofrep_flag_eval

Evaluate feature flags using the OpenFeature Remote Evaluation Protocol (OFREP). Supports both single flag and bulk evaluation.

OFREP Tool Parameters

ParameterTypeRequiredDescription
base_urlstringNoBase URL of your OFREP-compatible flag service
flag_keystringNoFlag key for single evaluation (omit for bulk)
contextobjectNoEvaluation context (e.g., { targetingKey: "user-123" })
etagstringNoETag for bulk evaluation caching
authobjectNoAuthentication configuration
auth.bearer_tokenstringNoBearer token for authorization
auth.api_keystringNoAPI key for authorization

OFREP Configuration

To use OFREP flag evaluation features, configure authentication and endpoint details. The server checks configuration in this priority order:

  1. Tool Arguments

    • base_url
    • auth.bearer_token / auth.api_key
  2. Environment Variables

    • OFREP_ENDPOINT (preferred) or OPENFEATURE_OFREP_BASE_URL / OFREP_BASE_URL
    • OFREP_HEADERS (comma-separated key=value pairs, URL-decoded before parsing)
    • OFREP_TIMEOUT_MS (positive integer milliseconds)
    • OPENFEATURE_OFREP_BEARER_TOKEN or OFREP_BEARER_TOKEN
    • OPENFEATURE_OFREP_API_KEY or OFREP_API_KEY
  3. Configuration File: ~/.openfeature-mcp.json

OFREP_HEADERS parsing follows the OFREP protocol convention:

  • URL-decode the full value first
  • Split by comma into header pairs
  • Split each pair by the first equals sign (=)
  • Trim whitespace around keys/values
  • Skip malformed entries

Examples:

  • OFREP_HEADERS=Authorization=Bearer%20token,X-Custom=value
  • OFREP_TIMEOUT_MS=5000

Example ~/.openfeature-mcp.json:

json
{
  "OFREP": {
    "baseUrl": "https://flags.example.com",
    "bearerToken": "<your-token>",
    "apiKey": "<your-api-key>",
    "headers": {
      "X-Custom-Header": "value"
    },
    "timeoutMs": 5000
  }
}

You can override the config file path using the OPENFEATURE_MCP_CONFIG_PATH environment variable.

Note: All logs are written to stderr. The MCP protocol messages use stdout.

MCP Usage Examples

SDK Installation Example

"install the OpenFeature SDK for Node.js with the flagd provider"

The AI will use the MCP to fetch relevant installation instructions and attempt to install the OpenFeature SDK with the correct provider.

Flag Evaluation Example

When interacting with your AI assistant:

"Can you check the value of the 'new-checkout-flow' feature flag for 'user-123'?"

The AI will use the MCP to evaluate the flag using OFREP and provide you with the result, along with additional metadata like variant and reason.

Resources

Get Involved

The OpenFeature MCP Server is an open-source project maintained by the OpenFeature community. We welcome contributions:

Join the CNCF Slack to get involved.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": [
        "-y",
        "@openfeature/mcp"
      ]
    }
  }
}

Available Tools

  • install_openfeature_sdk

    Fetch OpenFeature SDK installation instructions, and follow the instructions to install the OpenFeature SDK. If you are installing a provider, also fetches the provider installation instructions. Also includes documentation and examples for using OpenFeature SDK in your application. Choose the technology that matches the application's language/framework.

  • ofrep_flag_eval

    Evaluate feature flags using OpenFeature Remote Evaluation Protocol (OFREP). If flag_key is omitted, performs bulk evaluation.

Use OpenFeature MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once OpenFeature MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add OpenFeature MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the OpenFeature MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "openfeature-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@openfeature/mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the OpenFeature MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the OpenFeature MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use OpenFeature MCP Server to help me with this task?
OpenFeature MCP Server
Sure. I read it.
Here is what I found using OpenFeature MCP Server.

Frequently asked questions

What is the OpenFeature MCP Server MCP server used for?

OpenFeature MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use OpenFeature MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use OpenFeature MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use OpenFeature MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With OpenFeature MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect OpenFeature MCP Server MCP to TypingMind?

OpenFeature MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does OpenFeature MCP Server MCP provide in TypingMind?

OpenFeature MCP Server exposes 2 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use OpenFeature MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If OpenFeature MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇