drio
Open app

Replicate Flux

Source

Catalog onlyCatalog onlySTDIO

Add to your AI client

Use these steps to connect Replicate Flux in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "replicate-flux-andylee20014": {
      "command": "node",
      "args": [
        "C:\\Users\\YourUsername\\path\\to\\mcp-replicate-flux\\index.js"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "your_replicate_token",
        "STORAGE_ACCESS_KEY": "your_r2_access_key",
        "STORAGE_BUCKET": "your_bucket_name",
        "STORAGE_DOMAIN": "your_domain",
        "STORAGE_ENDPOINT": "your_r2_endpoint",
        "STORAGE_SECRET_KEY": "your_r2_secret_key"
      }
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "replicate-flux-andylee20014": {
      "command": "node",
      "args": [
        "C:\\Users\\YourUsername\\path\\to\\mcp-replicate-flux\\index.js"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "your_replicate_token",
        "STORAGE_ACCESS_KEY": "your_r2_access_key",
        "STORAGE_BUCKET": "your_bucket_name",
        "STORAGE_DOMAIN": "your_domain",
        "STORAGE_ENDPOINT": "your_r2_endpoint",
        "STORAGE_SECRET_KEY": "your_r2_secret_key"
      }
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "replicate-flux-andylee20014": {
      "command": "node",
      "args": [
        "C:\\Users\\YourUsername\\path\\to\\mcp-replicate-flux\\index.js"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "your_replicate_token",
        "STORAGE_ACCESS_KEY": "your_r2_access_key",
        "STORAGE_BUCKET": "your_bucket_name",
        "STORAGE_DOMAIN": "your_domain",
        "STORAGE_ENDPOINT": "your_r2_endpoint",
        "STORAGE_SECRET_KEY": "your_r2_secret_key"
      }
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "replicate-flux-andylee20014": {
      "type": "stdio",
      "command": "node",
      "args": [
        "C:\\Users\\YourUsername\\path\\to\\mcp-replicate-flux\\index.js"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "your_replicate_token",
        "STORAGE_ACCESS_KEY": "your_r2_access_key",
        "STORAGE_BUCKET": "your_bucket_name",
        "STORAGE_DOMAIN": "your_domain",
        "STORAGE_ENDPOINT": "your_r2_endpoint",
        "STORAGE_SECRET_KEY": "your_r2_secret_key"
      }
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "replicate-flux-andylee20014": {
      "command": "node",
      "args": [
        "C:\\Users\\YourUsername\\path\\to\\mcp-replicate-flux\\index.js"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "your_replicate_token",
        "STORAGE_ACCESS_KEY": "your_r2_access_key",
        "STORAGE_BUCKET": "your_bucket_name",
        "STORAGE_DOMAIN": "your_domain",
        "STORAGE_ENDPOINT": "your_r2_endpoint",
        "STORAGE_SECRET_KEY": "your_r2_secret_key"
      }
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "replicate-flux-andylee20014": {
      "command": "node",
      "args": [
        "C:\\Users\\YourUsername\\path\\to\\mcp-replicate-flux\\index.js"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "your_replicate_token",
        "STORAGE_ACCESS_KEY": "your_r2_access_key",
        "STORAGE_BUCKET": "your_bucket_name",
        "STORAGE_DOMAIN": "your_domain",
        "STORAGE_ENDPOINT": "your_r2_endpoint",
        "STORAGE_SECRET_KEY": "your_r2_secret_key"
      }
    }
  }
}