MCP

Model Context Protocol lets you connect your Large Language Model (LLM) to external data. Follow this guide to connect your LLM to your Bucket data.

Get started with Bucket MCP

The Model Context Protocol (MCP) is an open protocol that provides a standardized way to connect AI models to different data sources and tools. In the context of Bucket, MCP enables your development environment to understand your feature flags, their states, and their relationships within your codebase. This creates a seamless bridge between your feature management workflow and AI-powered development tools.

1

Install the Bucket CLI

Using npm, yarn, or pnpm install the CLI inside your project directory:

npm install --save-dev @bucketco/cli
npx bucket init
2

Start the Bucket MCP server

Start the MCP server using the CLI inside your project directory:

npx bucket mcp
3

Connect your editor

Use this quick install link for Visual Studio Code to add the MCP directly to your VS Code user settings.

To install the MCP in Cursor or another editor, see Manual setup below.

4

That's it!

Manual setup

Below you can find the manual setup steps for some popular editors. More MCP compatible clients.

  1. Open Cursor.

  2. Go to Settings > MCP.

  3. Click Add new global MCP server and paste the SSE config:

{
  "mcpServers": {
    "Bucket": {
      "url": "http://localhost:8050/sse"
    }
  }
}
  1. Save, go back to Cursor, and start prompting!

You must enable the Copilot agent mode to use MCP in Visual Studio Code Copilot chat.

  1. Open VS Code.

  2. Open the command palette, typically CMD + SHIFT + P or CTRL + SHIFT + P.

  3. Type and select MCP: Add Server... .

  4. Select HTTP (server-sent events) .

  5. Enter http://localhost:8050/sse the Server URL.

  6. Enter Bucket as the Server ID.

  7. Select either User Settings or Workspace Settings.

  8. Start prompting!

  1. Open Cursor Desktop.

  2. Go to Settings > Developer.

  3. Click Edit Config , open claude_desktop_config.json and paste the STDIO config:

Some clients don't support SSE and can instead interface with the MCP server over a STDIO proxy.

{
  "mcpServers": {
    "Bucket": {
      "command": "npx",
      "args": ["-y", "supergateway", "--sse", "http://localhost:8050/sse"]
    }
  }
}
  1. Save, restart Claude Desktop, and start prompting!

Additional notes

MCP is in a very early stage of development, and changes are frequent. If something isn't working, please check out the Model Context Protocol Website and open an issue ticket here.

We're looking into hosting the Bucket MCP server for you, making the setup even easier!

Last updated

Was this helpful?