- READ
- AUDIT
- QUERY
- HUMAN
Short answer
How can I check my feature flags using AI?
Your AI uses the PostHog MCP to pull a list of your current feature flags and their settings. You get the status and configuration details directly in your chat window. This breakdown shows you how to get those details.
The outcomes
What you can do with flag data
The AI pulls the data so you don't have to hunt for it in the dashboard.
READ
Instant flag lists
The AI pulls all existing flags from PostHog. You see the names and statuses immediately.
AUDIT
Configuration checks
The agent reads the specific rules for any flag. You can verify if a rollout is set up correctly.
QUERY
Natural language search
Ask your agent for specific flag details instead of clicking through menus. It finds the exact data you need.
HUMAN
Manual flag changes
The AI only reads flag data. You still need to use the PostHog dashboard to toggle flags or change rules.
The workflow
What your AI does when you ask about flags.
The AI acts as a bridge between your chat window and your PostHog project.
Fetch flag data
Your agent reaches out to PostHog to grab the current state of your feature flags.
list_feature_flagsFilter and identify
The AI parses the returned list to find the specific flag you asked about.
list_feature_flagsInterpret settings
The agent reads the configuration details to explain the flag's current behavior.
list_feature_flagsReport status
The AI presents the flag name, status, and rules in your chat.
list_feature_flags
Try it
Copy these to start.
Use these prompts to interact with your PostHog data.
Starting points
These are opening lines. Swap out the flag names for your actual PostHog flag identifiers.
PostHog Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_vpYk0NiKfoRYdh0mOuVMNfGBNKFlD4K0TVsVAy1i/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — PostHog capabilities are ready to use.
{
"mcpServers": {
"posthog-mcp": {
"url": "https://edge.vinkius.com/vk_preview_vpYk0NiKfoRYdh0mOuVMNfGBNKFlD4K0TVsVAy1i/mcp"
}
}
}List all my current feature flags in PostHog.
What is the status of the 'new-checkout-flow' flag?
Show me the configuration details for the 'beta-user-access' flag.
Are there any feature flags currently enabled in my project?
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect PostHog once, then ask.
Click the link to connect your PostHog account. Your credentials stay encrypted, and you can start asking questions immediately.
Connect PostHog to your AIFAQ
How this task behaves
- 01
Can the AI turn a feature flag on or off?
No. This MCP only allows the AI to read flag data. You must use the PostHog dashboard to change flag states.
- 02
Can I use this to change rollout percentages?
No. The AI can only list and read the current configurations. It cannot modify rollout rules.
- 03
Does the AI see all my PostHog data?
The AI only sees the data it needs to answer your specific questions via the provided tools.
- 04
How often does the AI see flag updates?
The AI fetches fresh data from PostHog every time you ask a question, so it sees the most recent state.
- 05
Do I need to stay logged into PostHog?
No. Once you connect the MCP, your AI client handles the communication with PostHog.
More questions about PostHog? See everything the PostHog Connector can do
Connect PostHog to Claude, Cursor, ChatGPT & more
