@configcat/mcp-server

中文文档
0.2.1发布于 2026/11/02MITES Module构建来源已验证近 30 天下载 4243

MCP server exposing ConfigCat Public Management API (products, configs, environments, values v1/v2).

原始使用文档
文档目录18 节
  1. Features
  2. Setup
  3. Cursor
  4. Visual Studio Code
  5. Claude Desktop
  6. Available Tools
  7. Membership Management
  8. General
  9. Diagnostics
  10. Feature Flag metadata
  11. Feature Flag & Setting Values (v1 & v2 APIs)
  12. Change Requests
  13. SDK documentation
  14. API Rate Limits
  15. Security Note
  16. Need help?
  17. Contributing
  18. About ConfigCat

ConfigCat MCP Server

NPM License

The ConfigCat's Model Context Protocol (MCP) server provides access to ConfigCat's public management API for feature flag and configuration management. 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

  • Tools:
    • Complete set of tools for ConfigCat's public management API operations. You can Create, Read, Update and Delete any entities like Feature Flags, Configs, Environments or Products within ConfigCat.
    • Get comprehensive SDK documentation and code examples for seamless feature flag implementation in your project.

Setup

You can use the following environment variables to configure the MCP server.

Environment variableRequiredDefaultDescription
CONFIGCAT_API_USER☑ConfigCat Management API basic authentication username.
CONFIGCAT_API_PASS☑ConfigCat Management API basic authentication password.
CONFIGCAT_BASE_URLhttps://api.configcat.comConfigCat Management API host.

The instructions below show how to connect a client to the MCP server.

Cursor

  1. Open Preferences -> Cursor Settings -> MCP & Integrations
  2. Click Add Custom MCP
  3. Add the following server definition for the ConfigCat MCP server:
{
  "mcpServers": {
    "ConfigCat": {
      "command": "npx",
      "args": ["-y", "@configcat/mcp-server"],
      "env": {
        "CONFIGCAT_API_USER": "YOUR_API_USER",
        "CONFIGCAT_API_PASS": "YOUR_API_PASSWORD"
      }
    }
  }
}
  1. Save the settings.

Visual Studio Code

  1. 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"
      }
    }
  }
}
  1. Save the settings file. The MCP server should now be available in VS Code.

Claude Desktop

  1. Open Settings → Developer
  2. Click Edit Config
  3. Open claude_desktop_config.json
  4. Add the following server definition for the ConfigCat MCP server:
{
  "mcpServers": {
    "ConfigCat": {
      "command": "npx",
      "args": ["-y", "@configcat/mcp-server"],
      "env": {
        "CONFIGCAT_API_USER": "YOUR_API_USER",
        "CONFIGCAT_API_PASS": "YOUR_API_PASSWORD"
      }
    }
  }
}
  1. Save and restart Claude.

Available Tools

Membership Management

Organizations

  • list-organizations - List all organizations

Members

  • list-organization-members - List organization members
  • list-pending-invitations - List pending invitations
  • list-pending-invitations-org - List org pending invitations
  • list-product-members - List product members
  • invite-member - Invite a new member
  • update-member-permissions - Update the permissions of a member
  • delete-organization-member - Remove organization member
  • delete-product-member - Remove product member
  • delete-invitation - Cancel invitation

Permission Groups

  • list-permission-groups - List permission groups
  • create-permission-group - Create a new permission group
  • get-permission-group - Get permission group details
  • update-permission-group - Update permission group
  • delete-permission-group - Delete permission group

General

Products

  • list-products - List all products
  • get-product - Get specific product details
  • update-product - Update existing product
  • delete-product - Delete a product
  • get-product-preferences - Get product preferences
  • update-product-preferences - Update product preferences
  • create-product - Create a new product

Configs

  • list-configs - List configs for a product
  • create-config - Create a new config
  • get-config - Get specific config details
  • update-config - Update existing config
  • delete-config - Delete a config

Environments

  • list-environments - List environments for a product
  • create-environment - Create a new environment
  • get-environment - Get specific environment details
  • update-environment - Update existing environment
  • delete-environment - Delete an environment

Segments

  • list-segments - List user segments
  • create-segment - Create a new segment
  • get-segment - Get specific segment details
  • update-segment - Update existing segment
  • delete-segment - Delete a segment

SDK Keys

  • get-sdk-keys - Get SDK keys for config/environment

Webhooks

  • list-webhooks - List webhooks
  • get-webhook - Get webhook details
  • replace-webhook - Replace webhook configuration
  • update-webhook - Update existing webhook
  • delete-webhook - Delete a webhook
  • get-webhook-signing-keys - List webhook signing keys
  • create-webhook - Create a new webhook

Integrations

  • list-integrations - List integrations
  • create-integration - Create a new integration
  • get-integration - Get integration details
  • update-integration - Update existing integration
  • delete-integration - Delete an integration

Code References

  • get-code-references - Get code references

Diagnostics

Audit logs

  • list-auditlogs - Get product audit logs
  • list-organization-auditlogs - Get organization audit logs

Zombie (stale) flags

  • list-staleflags - Get stale feature flags report

Usage & Quota

  • get-organization-usage-and-quota - Get the current usage and quota information for an Organization

Feature Flag metadata

Feature Flags & Settings

  • list-settings - List feature flags for a config
  • create-setting - Create a new feature flag
  • list-predefined-variations - List predefined variations
  • update-predefined-variations - Update predefined variations
  • get-setting - Get specific feature flag details
  • replace-setting - Replace feature flag configuration
  • update-setting - Update existing feature flag
  • delete-setting - Delete a feature flag

Tags

  • list-tags - List tags for a product
  • create-tag - Create a new tag
  • list-settings-by-tag - Get feature flags by tag
  • get-tag - Get specific tag details
  • update-tag - Update existing tag
  • delete-tag - Delete a tag

Feature Flag & Setting Values (v1 & v2 APIs)

  • get-setting-value - Get feature flag value
  • update-setting-value - Update feature flag value
  • replace-setting-value - Replace feature flag value
  • get-setting-values - Get multiple setting values
  • post-setting-values - Update multiple setting values
  • V2 variants: *-v2 versions of above tools for Config V2

Change Requests

  • get-change-request - Returns the details of a specific Change Request
  • update-change-request - Updates the metadata of a Change Request, such as title, note, schedule, etc.
  • list-change-requests - List Change Requests
  • get-change-request-proposed-changes - Returns the proposed changes to the Settings included in a Change Request
  • update-change-request-proposed-change - Updates the proposed changes to the Settings included in a Change Request
  • add-change-request-comment - Adds a new comment to the Change Request
  • apply-change-request - Applies the Change Request
  • approve-change-request - Adds your approval to the Change Request
  • claim-change-request-ownership - Claims ownership of the Change Request
  • close-change-request - Closes the Change Request without applying it
  • create-change-request - Creates a new Change Request for the specified Config and Environment
  • remove-change-request-approval - Removes your existing approval from the Change Request
  • resolve-change-request-setting-conflicts - Updates the proposed changes to a Setting included in the Change Request to resolve conflicts caused by concurrently published changes
  • update-change-request-comment - Updates an existing Change Request comment
  • delete-change-request-comment - Deletes a Change Request comment
  • delete-change-request-proposed-change - Removes a setting from a Change Request

SDK documentation

  • get-sdk-documentation - Get comprehensive SDK documentation and code examples for seamless feature flag implementation in your project.

API Rate Limits

The ConfigCat public API has rate limits. The server will respect these limits and return appropriate error messages if limits are exceeded.

Security Note

This server is designed for management operations only. Do not use it for evaluating feature flag values in production applications - use the ConfigCat SDKs or ConfigCat Proxy instead.

Need help?

https://configcat.com/support

Contributing

Contributions are welcome. For more info please read the Contribution Guideline.

About ConfigCat

版本与发布记录

@configcat/mcp-server 共发布 14 个版本,首次发布于 2025/09/26;过去 12 个月发布了 10 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.1latest2026/11/028 天前
0.2.02026/10/3011 天前
0.1.112026/10/1427 天前
0.1.102026/09/102 个月前
0.1.92026/08/282 个月前
0.1.82026/06/174 个月前

关于 @configcat/mcp-server 的常见问题

@configcat/mcp-server 是什么?

MCP server exposing ConfigCat Public Management API (products, configs, environments, values v1/v2).

如何安装 @configcat/mcp-server?

在项目目录运行 npm install @configcat/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 mcp-server,可以用 npx mcp-server 直接运行。

@configcat/mcp-server 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/configcat__mcp-server 是否存在。

@configcat/mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@configcat/mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@configcat/mcp-server 可以商用吗?

@configcat/mcp-server 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@configcat/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@configcat/mcp-server 在 2026/10/11 – 2026/11/09 这 30 天内被下载 4,243 次,日均约 141 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@configcat/mcp-server 还在维护吗?

最新版本 0.2.1 发布于 2026/11/02(8 天前);至今共发布 14 个版本,其中过去 12 个月发布了 10 个;首次发布于 2025/09/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。