Skip to main content
Version: Config V2

MCP Server

Overview​

Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to large language models (LLMs). The ConfigCat MCP server lets you manage feature flags and configurations via the Public Management API seamlessly from AI tools. It also enables your code editor to understand your feature flags, integrate the appropriate ConfigCat SDK into your project or even create new feature flags directly in your codebase.

Features​

  • Manage organizations, members and permissions
  • Create and update products, configs, and environments
  • Manage feature flags and settings
  • Manage tags and user segments
  • Connect with integrations and webhooks
  • Track activity with audit logs and zombie flag (stale flag) reports
  • Find code references linked to your features
  • Integrate ConfigCat SDK and implement feature flags in your project

Connect to the MCP server​

You can connect to the ConfigCat MCP server in two ways:

  • Remote MCP server: Connect to the hosted MCP server without installing or running anything locally. Authenticate with your ConfigCat account and use it from desktop or browser-based AI tools.
  • Local MCP server: Runs on your machine as a process that your AI client starts. It connects to ConfigCat using your Public Management API credentials.

Both ways provide the same functionality.

Remote MCP server​

The remote MCP server uses Streamable HTTP and is hosted by ConfigCat, so you don't need to install or run anything locally.
It uses OAuth authentication. Sign in to your ConfigCat account in your browser when prompted by the AI client. The MCP server uses your ConfigCat user permissions. You can manage your MCP connections in the ConfigCat Dashboard.

OAuth access tokens are refreshed automatically by your AI client, so you only need to reauthorize after 14 days of inactivity. If your ConfigCat account is deleted, the MCP connection ends. Any changes to your account permissions take effect immediately.

info

To limit the MCP server's access, you can create a dedicated ConfigCat user with only the necessary permissions, such as read-only access, and use that account to connect to the MCP server.

Client Configuration​

Select your AI client and follow the instructions to connect to ConfigCat MCP server.

Cursor
1

Install Cursor.

2

Open Cursor Settings → MCP & Integrations → Add Custom MCP.

3

Add (or merge) the following snippet into your MCP settings:

{
"mcpServers": {
"ConfigCat": {
"url": "https://mcp.configcat.com/mcp"
}
}
}
4

Save the settings and sign in to ConfigCat when prompted.

Claude Code
1

Install Claude Code.

2

Add the remote ConfigCat MCP server from your terminal:

claude mcp add --transport http ConfigCat https://mcp.configcat.com/mcp
3

Start Claude Code with claude, run /mcp, and sign in to ConfigCat.

Claude Desktop
1
2

Open Settings → Connectors → Add custom connector.

3

Enter https://mcp.configcat.com/mcp as the MCP server URL, then connect and sign in to ConfigCat.

Claude (Web)
1

Sign in to Claude.ai.

2

Open Settings → Connectors → Add custom connector.

3

Enter ConfigCat as the name and https://mcp.configcat.com/mcp as the MCP server URL, then click Continue.

4

Click Add, then sign in to your ConfigCat account in the browser that opens.

5

In a chat, open the + menu → Connectors and make sure ConfigCat is enabled.

GitHub Copilot in Visual Studio Code
1

Install VS Code and GitHub Copilot.

2

Create a .vscode/mcp.json file in your project root with the following content:

{
"servers": {
"ConfigCat": {
"type": "http",
"url": "https://mcp.configcat.com/mcp"
}
}
}
3

Save the settings and sign in to ConfigCat when prompted.

GitHub Copilot App
1

Install the GitHub Copilot app.

2

Click Customize in the app sidebar, then click MCP and add a custom server.

3

Enter the following details:

  • Name: ConfigCat
  • Type: HTTP
  • URL: https://mcp.configcat.com/mcp
4

Install the server and sign in to your ConfigCat account in the browser that opens.

tip

MCP servers you add to GitHub Copilot CLI are automatically available in the GitHub Copilot app.

GitHub Copilot CLI
2

Add the remote ConfigCat MCP server from your terminal:

copilot mcp add --transport http ConfigCat https://mcp.configcat.com/mcp
3

Start Copilot CLI with copilot and sign in to ConfigCat when prompted.

4

Run /mcp to verify that the ConfigCat MCP server is connected.

ChatGPT (Web)
1

Open ChatGPT Plugins and click Add → Add custom MCP server.

2

Enter the following details:

  • Name: ConfigCat
  • Server URL: https://mcp.configcat.com/mcp
3

Accept the security warning, and click Create as a plugin.

4

Connect the plugin and sign in to your ConfigCat account in the browser that opens.

OpenAI Codex CLI
1

Install the Codex CLI.

2

Add the remote ConfigCat MCP server from your terminal:

codex mcp add configcat --url https://mcp.configcat.com/mcp
3

Start Codex with codex and run /mcp to verify that the ConfigCat MCP server is connected.

Devin Desktop (Windsurf)
1

Install Devin Desktop.

2

In Cascade, open the MCP menu and select Open MCP config file.

3

Add (or merge) the following snippet into your MCP settings:

{
"mcpServers": {
"ConfigCat": {
"serverUrl": "https://mcp.configcat.com/mcp"
}
}
}
4

Save the file, refresh the MCP servers in Cascade, and sign in to ConfigCat when prompted.

Local MCP server​

You can also run the ConfigCat MCP server locally on your machine.

Prerequisites​

Setup​

Supply your Public Management API basic auth credentials. The MCP server uses your Public Management API credentials and the associated permissions when performing actions.

The MCP server's configuration includes the following environment variables:

VariableRequiredDefaultDescription
CONFIGCAT_API_USERYes–Management API basic auth username.
CONFIGCAT_API_PASSYes–Management API basic auth password.
CONFIGCAT_BASE_URLNohttps://api.configcat.comOverride the API host (rarely needed).
info

To limit the MCP server's permissions, you can create a dedicated ConfigCat user with only the necessary permissions, such as read-only access, and use that user's API credentials.

Client Configuration​

You can connect to the local MCP server from multiple AI clients using the following instructions.

Cursor
1

Install Cursor.

2

Open Cursor Settings → Tools & Integrations → MCP Tools and select Add Custom MCP.

3

Add (or merge) this server definition into your JSON settings:

{
"mcpServers": {
"ConfigCat": {
"command": "npx",
"args": ["-y", "@configcat/mcp-server"],
"env": {
"CONFIGCAT_API_USER": "YOUR_API_USER",
"CONFIGCAT_API_PASS": "YOUR_API_PASSWORD"
}
}
}
}
4

Save the settings. The MCP server starts on demand. You can now use it in Cursor's AI panel.

Claude Code
1

Install Claude Code.

2

Add the local ConfigCat MCP server:

claude mcp add --env CONFIGCAT_API_USER=YOUR_API_USER --env CONFIGCAT_API_PASS=YOUR_API_PASSWORD --transport stdio ConfigCat -- npx -y @configcat/mcp-server
3

Start Claude Code with claude command.

4

Check the ConfigCat MCP server with /mcp command in Claude Code. The connected ConfigCat server should appear in the Local MCPs list.

5

You can now start writing prompts in Claude Code.

Claude Desktop
1
2

Open Settings → Developer → Edit Config.

3

In claude_desktop_config.json add:

{
"mcpServers": {
"ConfigCat": {
"command": "npx",
"args": ["-y", "@configcat/mcp-server"],
"env": {
"CONFIGCAT_API_USER": "YOUR_API_USER",
"CONFIGCAT_API_PASS": "YOUR_API_PASSWORD"
}
}
}
}
4

Save & restart Claude Desktop.

GitHub Copilot in Visual Studio Code
1

Install VS Code and GitHub Copilot.

2

Create a .vscode/mcp.json file in your project root with the following content:

{
"servers": {
"ConfigCat": {
"command": "npx",
"args": ["-y", "@configcat/mcp-server"],
"env": {
"CONFIGCAT_API_USER": "YOUR_API_USER",
"CONFIGCAT_API_PASS": "YOUR_API_PASSWORD"
}
}
}
}
3

Save the settings file. The MCP server should now be available in VS Code.

4

You can start writing prompts into VS Code's AI panel.

GitHub Copilot App
1

Install the GitHub Copilot app.

2

Click Customize in the app sidebar, then click MCP and add a custom server.

3

Enter the following details:

  • Name: ConfigCat
  • Type: STDIO (local)
  • Command: npx -y @configcat/mcp-server
  • Environment variables: CONFIGCAT_API_USER set to YOUR_API_USER and CONFIGCAT_API_PASS set to YOUR_API_PASSWORD
4

Install the server. You can now use it in the GitHub Copilot app.

tip

MCP servers you add to GitHub Copilot CLI are automatically available in the GitHub Copilot app.

GitHub Copilot CLI
2

Add the local ConfigCat MCP server from your terminal:

copilot mcp add --env CONFIGCAT_API_USER=YOUR_API_USER --env CONFIGCAT_API_PASS=YOUR_API_PASSWORD ConfigCat -- npx -y @configcat/mcp-server
3

Start Copilot CLI with copilot and run /mcp to verify that the ConfigCat MCP server is connected.

OpenAI Codex CLI
1

Install the Codex CLI.

2

Add the local ConfigCat MCP server from your terminal:

codex mcp add configcat --env CONFIGCAT_API_USER=YOUR_API_USER --env CONFIGCAT_API_PASS=YOUR_API_PASSWORD -- npx -y @configcat/mcp-server
3

Start Codex with codex and run /mcp to verify that the ConfigCat MCP server is connected.

Devin Desktop (Windsurf)
1

Install Devin Desktop.

2

In Cascade, open the MCP menu and select Open MCP config file.

3

Add (or merge) the following snippet into your MCP settings:

{
"mcpServers": {
"ConfigCat": {
"command": "npx",
"args": ["-y", "@configcat/mcp-server"],
"env": {
"CONFIGCAT_API_USER": "YOUR_API_USER",
"CONFIGCAT_API_PASS": "YOUR_API_PASSWORD"
}
}
}
}
4

Save the file and refresh the MCP servers in Cascade.

info

Replace YOUR_API_USER and YOUR_API_PASSWORD environment variables with your Public Management API basic auth credentials.

Interaction​

After you install the ConfigCat MCP server in your AI client, you can prompt your agent to create or manage your feature flags and configurations. Typically you need to click Run tool (or the equivalent option in your AI client) to execute the result.

For example, you could try asking

Create a boolean feature flag called "my_awesome_feature" in the "Backend" config

or

Turn the "my_awesome_feature" flag ON in all environments

or

Update the "my_awesome_feature” flag in dev environment so it’s only enabled for users in Canada

or

Create a new feature flag by cloning the configuration of the "my_awesome_feature" flag, and name it "my_another_awesome_feature".

or

Update the "my_awesome_feature" flag description: "When enabled, show my awesome feature.”

or

List the stale feature flags that haven’t been modified in the past 6 days.

or

Show who last modified the "myNewAwesomeFeature" flag, and to what.

or

Invite sarah@example.com to the "Main" product with "Administrators" permissions.

See Also​