Skip to main content
Confidence has two MCP servers: one that exposes the Confidence documentation, and one that exposes tools for managing feature flags.

Documentation MCP Server

The Documentation MCP provides AI assistants with access to Confidence documentation through semantic search, regular expression search, and SDK integration guides.

Integration Setup

No authentication required for the Documentation MCP server. The server uses streamable HTTP as the transport and the URL is https://mcp.confidence.dev/mcp/docs.
claude mcp add --transport http confidence-docs https://mcp.confidence.dev/mcp/docs

Available Tools

searchDocumentation

Searches the Confidence documentation using semantic search to learn about experiments, A/B tests, rollouts, feature flags, metrics, surfaces, insights, and other experiment-related topics. Returns the 10 most relevant chunks using Maximum Marginal Relevance (MMR) to balance relevance and diversity.

getFullSource

Retrieves the full text content from a specific Confidence documentation source URL.

grepDocumentation

Searches the Confidence documentation content using regular expressions. Returns a list of documentation pages that contain matches for the given regular expression pattern.

getCodeSnippetAndSdkIntegrationTips

Gets complete integration guides with code examples and README documentation for integrating Confidence feature flags. Returns full integration examples including OpenFeature provider setup, best practices, and configuration for the specified SDK.

Example Usage

Once integrated, ask your AI assistant to:
  • “Search Confidence documentation for information about A/B testing”
  • “Show how to integrate Confidence with Python”
  • “Summarize the A/B test quickstart”

Flag Management MCP Server

The Flag Management MCP provides AI assistants with tools to manage Confidence feature flags, including creation, modification, targeting rules, and testing.

Integration Setup

The Confidence Flags MCP requires authentication. Allow access from your IDE or developer tool where you use the MCP server. The server uses streamable HTTP as the transport and the URL is https://mcp.confidence.dev/mcp/flags.
claude mcp add --transport http confidence-flags https://mcp.confidence.dev/mcp/flags
After adding, open Claude Code, run /mcp and select confidence-flags to authenticate.

Available Tools

listClients

Lists all available Confidence clients for flag operations.

listFlags

Lists all active feature flags with summary information including names, schemas, and variants.

getFlag

Retrieves detailed information about a specific feature flag, including its complete schema, variants, and targeting rules.

createFlag

Creates a new feature flag with schema and variant definitions.

addFlagVariant

Adds a new variant to an existing feature flag.

updateFlagSchema

Updates the schema definition of an existing feature flag.

createOverrideRule

Creates targeting rules to override flag behavior for specific entities.

testResolveFlag

Tests flag resolution for specific clients and entities and explains why the system selects a particular variant.

analyzeFlagUsage

Finds unused Confidence feature flags or flags fully rolled out, helping you clean up feature flag code.

Example Usage

Once integrated, ask your AI assistant to:
  • “List all feature flags in Confidence”
  • “Create a new flag called ‘new-checkout-flow’ with a boolean schema”
  • “Add a variant to the ‘new-checkout-flow’ flag”
  • “Create an override rule for user ‘test-user’ to see the ‘variant-b’ of ‘experiment-flag’”
  • “Test flag resolution for ‘new-checkout-flow’ with user ‘john@example.com’”
  • “Analyze what flags you can clean up in this codebase”