Skip to content

Commit 2d1db2a

Browse files
docs: Adding a page in our Docs for our MCP serverr (#6355)
Co-authored-by: Matthew Elwell <[email protected]>
1 parent 2e0b83e commit 2d1db2a

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# MCP Server
2+
3+
The Flagsmith MCP Server provides programmatic access to the Flagsmith Admin API through the Model Context Protocol. This enables AI assistants and agents to interact with your feature flag infrastructure, including managing flags, segments, and release workflows. The server is compatible with MCP-enabled IDE extensions (such as Cursor), CLI tools (such as Claude Code), and custom AI agents integrated into CI/CD pipelines.
4+
5+
## What is MCP?
6+
7+
[Model Context Protocol (MCP)](https://modelcontextprotocol.io) is an open standard that lets AI assistants connect to external tools and services. Think of it as giving your AI a set of hands to actually *do* things, not just talk about them.
8+
9+
## What Can You Do With It?
10+
11+
The MCP Server exposes the Flagsmith Admin API, giving your AI access to:
12+
13+
- **Organisations & Projects** — List and navigate your Flagsmith workspace
14+
- **Feature Flags** — Create, update, and manage flags across environments
15+
- **Segments** — Build and modify user segments for precise targeting
16+
- **Release Pipelines** — Orchestrate controlled rollouts
17+
- **Change Requests** — Create and manage approval workflows
18+
- **Multivariate Testing** — Configure A/B test variations
19+
20+
Use it for human-in-the-loop workflows (asking your IDE assistant to toggle a flag), or fully automated pipelines (letting an agent manage progressive rollouts).
21+
22+
## Installation
23+
24+
Head to our installation page and pick your client:
25+
26+
👉 **[Install the Flagsmith MCP Server](https://mcp.flagsmith.com/mcp/flagsmith-mcp/install)**
27+
28+
We support Cursor, Claude Code, Claude Desktop, Windsurf, Gemini CLI, Codex CLI, and any other client that supports MCP servers.
29+
30+
### Configuration
31+
32+
You'll need an **Organisation API Key** from Flagsmith:
33+
34+
1. Go to **Organisation Settings** in your Flagsmith dashboard
35+
2. Generate a new API Key
36+
3. Set your environment variable with the `Api-Key` prefix:
37+
38+
```bash
39+
MCP_FLAGSMITH_TOKEN_AUTH="Api-Key YOUR_API_KEY_HERE"
40+
```
41+
42+
> ⚠️ **Important**: The `Api-Key ` prefix is required. The value of your environment variable should look like `Api-Key ser.abc123...`, not just the key itself.
43+
44+
### Self-Hosted Flagsmith
45+
46+
Running your own Flagsmith instance? Point the MCP Server at your API:
47+
48+
```bash
49+
MCP_FLAGSMITH_API_URL="https://your-flagsmith-instance.com/api/v1"
50+
```
51+
52+
## Example Use Cases
53+
54+
**For Developers**
55+
- "Create a feature flag called `new_checkout_flow` and turn it on in the staging environment"
56+
- "What segments exist in the mobile-app project?"
57+
- "Add a multivariate option to the `button_color` flag"
58+
59+
**For Release Managers**
60+
- "Show me all pending change requests for the production environment"
61+
- "Add the `premium_features` flag to the Q1 release pipeline"
62+
- "List all features that have been modified in the last week"
63+
64+
**For DevOps & Automation**
65+
- Build agents that automatically create kill switches for new deployments
66+
- Integrate flag validation and management into your CI/CD pipelines
67+
- Automate segment updates based on external analytics data
68+
69+
## Early Access — We Want Your Feedback! 🚀
70+
71+
This is an early release, and we're actively developing it alongside customers like you. Things might be rough around the edges, but that's where you come in.
72+
73+
**Found a bug? Have an idea? Something confusing?**
74+
75+
We'd love to hear from you - drop our support a message at [[email protected]](mailto:[email protected])
76+
77+
Your feedback directly shapes what we build next. Let's make this awesome together.

0 commit comments

Comments
 (0)