You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/advanced/mcp-server.mdx
+33-31Lines changed: 33 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,23 @@ import TabItem from '@theme/TabItem';
9
9
10
10
## Overview
11
11
12
-
The ConfigCat Model Context Protocol (MCP) server exposes the full power of the [Public Management API](/api/reference/configcat-public-management-api/) to AI assistants and MCP‑capable developer tools. It lets you Create, Read, Update and Delete entities (Products, Configs, Environments, Feature Flags, Segments, Tags, Webhooks, Integrations, etc.) safely and consistently.
13
-
14
-
> Management only. For evaluating feature flag values inside applications use the [SDKs](/sdk-reference/overview/) or the [ConfigCat Proxy](/advanced/proxy/proxy-overview/).
12
+
[Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro) is an open protocol that standardizes how applications provide context to large language models (LLMs).
13
+
The ConfigCat MCP server lets you manage feature flags and configurations via the Public Management API seamlessly from AI tools.
15
14
16
15
## Features
17
16
18
17
- Complete CRUD coverage of ConfigCat management entities
19
-
- Both Config (v1) and Config V2 feature flag/value endpoints
20
18
- Fine‑grained membership, permission group & invitation management
21
19
- Tagging, stale flag reporting, audit logs & code reference visibility
22
-
- Respect for API rate limits (propagates error details back to the client)
20
+
21
+
## Prerequisites
22
+
23
+
-[Node.js](nodejs.org) version 16 or higher installed
24
+
-[Public Management API basic auth credentials](https://app.configcat.com/my-account/public-api-credentials) for ConfigCat MCP server created
23
25
24
26
## Setup
25
27
26
-
Install & run via `npx` (no local clone required). Supply your Public Management API basic auth credentials (find them at https://app.configcat.com/my-account/public-api-credentials).
28
+
Supply your Public Management API basic auth credentials (find them at https://app.configcat.com/my-account/public-api-credentials).
27
29
28
30
### Environment Variables
29
31
@@ -33,11 +35,7 @@ Install & run via `npx` (no local clone required). Supply your Public Management
|`CONFIGCAT_BASE_URL`||`https://api.configcat.com`| Override API host (rarely needed). |
35
37
36
-
Keep credentials secret. Prefer using your tool's secret storage facilities over committing them.
37
-
38
-
## Client Configuration Examples
39
-
40
-
Below are quick recipes for popular MCP clients.
38
+
## Client Configuration
41
39
42
40
<Tabs>
43
41
<TabItemvalue="cursor"label="Cursor"default>
@@ -49,7 +47,7 @@ Below are quick recipes for popular MCP clients.
49
47
```json
50
48
{
51
49
"mcpServers": {
52
-
"configcat": {
50
+
"ConfigCat": {
53
51
"command": "npx",
54
52
"args": ["-y", "@configcat/mcp-server"],
55
53
"env": {
@@ -61,7 +59,7 @@ Below are quick recipes for popular MCP clients.
61
59
}
62
60
```
63
61
4. Save – the server will start on demand.
64
-
62
+
65
63
</TabItem>
66
64
<TabItemvalue="claude"label="Claude Desktop">
67
65
@@ -72,7 +70,7 @@ Below are quick recipes for popular MCP clients.
72
70
```json
73
71
{
74
72
"mcpServers": {
75
-
"configcat": {
73
+
"ConfigCat": {
76
74
"command": "npx",
77
75
"args": ["-y", "@configcat/mcp-server"],
78
76
"env": {
@@ -88,6 +86,25 @@ Below are quick recipes for popular MCP clients.
88
86
</TabItem>
89
87
</Tabs>
90
88
89
+
Replace YOUR_API_USER and YOUR_API_PASSWORD environment variables with your [Public Management API basic auth credentials](https://app.configcat.com/my-account/public-api-credentials).
90
+
91
+
## Interaction
92
+
93
+
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.
94
+
Typically you need to click Run tool or similar in your AI client to execute the result.
95
+
96
+
For example, you could try asking
97
+
98
+
> Create a boolean feature flag called "my_awesome_feature" in the "Backend" config
99
+
100
+
or
101
+
102
+
> Turn the "my_awesome_feature" flag ON in all environments
103
+
104
+
or
105
+
106
+
> Update the "my_awesome_feature” flag in dev environment so it’s only enabled for users in Canada
107
+
91
108
## Available Tools
92
109
93
110
### Membership Management
@@ -194,29 +211,14 @@ Below are quick recipes for popular MCP clients.
194
211
-`update-tag`
195
212
-`delete-tag`
196
213
197
-
### Feature Flag & Setting Values (v1 & v2)
214
+
### Feature Flag & Setting Values
198
215
-`get-setting-value`
199
216
-`update-setting-value`
200
217
-`replace-setting-value`
201
218
-`get-setting-values`
202
219
-`post-setting-values`
203
-
- V2 variants: each tool above has a `*-v2` counterpart for Config V2
204
-
205
-
## API Rate Limits
206
-
207
-
The Public Management API enforces rate limits. The MCP server surfaces limit exceed errors directly so clients can adapt (e.g. backing off or summarizing batched operations). See [Subscription Plan Limits](/subscription-plan-limits) for general guidance.
208
-
209
-
## Security Note
210
-
211
-
Credentials grant management rights. Store them securely, do not embed them in shared config, and rotate periodically. Avoid using the MCP server from untrusted or multi‑tenant environments.
212
220
213
221
## See Also
214
222
223
+
-[ConfigCat MCP server GitHub repository](https://github.com/configcat/mcp-server)
215
224
-[Management API Reference](/api/reference/configcat-public-management-api/)
0 commit comments