---
updatedAt: 2026-08-21T15:40:08.000Z
agentTools:
  projectIndex: https://developers.rebrandly.com/llms.txt
---

# MCP Installation

Step-by-step guides for installing the Rebrandly MCP server on different AI assistants.

When you install an MCP, you're providing your AI assistant with instructions about how to connect to the server. The installation process varies by AI assistant. Most follow these steps:

1. **Get your Rebrandly API key**
   * Log into [Rebrandly](https://www.rebrandly.com)
   * Click the **Profile icon** and select **API**
   * Click "New API Key" and add a note like "MCP API"

2. **Configure your AI assistant**
   * Add the Rebrandly MCP to your assistant's configuration
   * Provide your API key
   * Restart your assistant

3. **Test it**
   * Ask your AI to create a test link
   * Verify it appears in your Rebrandly dashboard

## Before you begin

You'll need:

1. **Your Rebrandly API key** - Go to your [Rebrandly profile](https://app.rebrandly.com/settings/api-keys), click **API**, then **New API key**.
2. **AI assistant** - One of the platforms listed below
3. **Node.js 20+** (for most platforms) - [Download here](https://nodejs.org/)

***

## Platform availability

Some AI assistants require paid plans to use MCP servers. Check your AI assistant subscription for details. This quick reference reflects availability as of December 14, 2025.

### Platforms with free MCP access

| Platform                | Complexity           | Requirements                                      |
| ----------------------- | -------------------- | ------------------------------------------------- |
| Claude                  | Easiest (one click)  | Claude account, Rebrandly account to sign in with |
| Claude Desktop (manual) | Easy (config file)   | Claude Desktop, Node.js 20+                       |
| Gemini CLI              | Easy (one command)   | Gemini CLI, Node.js 20+                           |
| VS Code + Copilot       | Medium (config file) | VS Code 1.102+, Copilot                           |
| Amazon Q                | Medium (config file) | Amazon Q, Node.js 20+                             |

### Platforms requiring paid plans

| Platform    | Complexity           | Requirements           |
| ----------- | -------------------- | ---------------------- |
| Claude Code | Easy (one command)   | Claude Code CLI        |
| Cursor      | Medium (config file) | Cursor IDE             |
| Codex CLI   | Easy (one command)   | Codex CLI, Node.js 20+ |

For other platforms, we include a generic configuration section.

***

## Sign in with your Rebrandly account (OAuth)

For **Claude** (Claude Desktop, Claude web, and Claude Code) you can connect the Rebrandly MCP server and authenticate by **signing in with your Rebrandly account** — no API key required. This is the connection used when Rebrandly is added from Claude's **Settings → Connectors**.

The server URL is the same one used below (`https://mcp.rebrandly.com/v1/mcp`); the only difference is that you log in through Rebrandly (OAuth 2.1) instead of pasting an API key. Access is scoped to the account you sign in with.

<Accordion title="Claude Desktop / Claude web — Add custom connector (OAuth)">
  ### Requirements

  * **Claude Desktop** ([Download](https://claude.ai/download)) or Claude on the web
  * A **Rebrandly account** (you'll sign in during setup — no API key needed)

  ### Steps

  1. Open **Settings → Connectors**.
  2. Click **Add custom connector**.
  3. Enter a **Name** (e.g. `Rebrandly`) and the **URL** `https://mcp.rebrandly.com/v1/mcp`, then add it.
  4. Click the connector and choose **Connect** — a browser window opens the Rebrandly login.
  5. Sign in with your Rebrandly account and approve access. The connector shows as **Connected**.

  <aside>
    No API key is required with this method — you authenticate by signing in, and the connector can only access the Rebrandly account you logged in with.
  </aside>

  ### Verification

  Ask Claude:

  ```
  List my Rebrandly links
  ```
</Accordion>

<Accordion title="Claude Code — OAuth (no API key)">
  ### Requirements

  * **Claude Code CLI** installed ([Installation Guide](https://docs.anthropic.com/en/docs/claude-code))
  * A **Rebrandly account**

  ### Installation

  Add the server **without** an API key header, then authenticate:

  ```bash
  claude mcp add --transport http -s user rebrandly https://mcp.rebrandly.com/v1/mcp
  ```

  Then run `/mcp`, select **rebrandly**, and choose **Authenticate**. A browser opens the Rebrandly login — sign in and approve, and the server shows as connected.

  (Omit `-s user` to scope the connector to the current directory instead of all projects.)

  ### Verification

  ```
  List my Rebrandly links
  ```
</Accordion>

<aside>
  **OAuth or API key?** Signing in with your Rebrandly account (above) is the simplest option for Claude and needs no key. The per-platform guides below use an **API key** header instead — use those for Gemini, Cursor, VS Code, Amazon Q, and Codex, or if you prefer key-based authentication on Claude.
</aside>

***

## Choose your platform

Installation guides for each AI assistant platform. These guides use **API key** authentication; for Claude you can instead **sign in with your Rebrandly account** — see [Sign in with your Rebrandly account (OAuth)](#sign-in-with-your-rebrandly-account-oauth) above.

<Accordion title="Claude">
  **Setup: One click via Claude's connectors directory (recommended)**

  Rebrandly is listed in Claude's connectors directory. This works in claude.ai, Claude Desktop, and the Claude mobile app.

  ### Requirements

  * A Claude account
  * A Rebrandly account to sign in with

  ### Installation

  1. In Claude, go to **Settings → Connectors**.
  2. Find **Rebrandly** in the connectors directory and add it.
  3. Sign in with your normal Rebrandly login when prompted.

  ### Verification

  Ask Claude:

  ```
  List my Rebrandly links
  ```

  ***

  ### Manual setup with an API key (fallback)

  **Setup: JSON configuration file or via Settings UI**

  If you need direct control over the config file, you can still connect Claude Desktop with an API key via the `supergateway` proxy.

  ### Requirements

  * **Claude Desktop** application installed ([Download](https://claude.ai/download))
  * **Node.js 20+** ([Download](https://nodejs.org/))

  Use the `supergateway` or `mcp-remote` proxy to connect Claude Desktop to remote HTTP MCP servers.

  ### Configuration File Location

  * **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
  * **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

  ### Option 1: Via settings UI (recommended)

  1. Open Claude Desktop.
  2. Click on your **profile icon** and then click **Settings**.
  3. Click **Developer** and then **Edit Config**. This will open your file finder and select the configuration file—`claude_desktop_config.json` .
  4. Open the file with a text or code editor.
  5. Copy these lines and paste them into the configuration file.

     ```json
     {
       "mcpServers": {
         "rebrandly": {
           "command": "npx",
           "args": [
             "-y",
             "supergateway",
             "--streamableHttp",
             "https://mcp.rebrandly.com/v1/mcp",
             "--header",
             "REBRANDLY_API_KEY:YOUR_API_KEY"
           ]
         }
       }
     }
     ```
  6. Replace `YOUR_API_KEY` with the key you've created in Rebrandly. Note that there is no space before the key.
  7. Save the file.

  ### Option 2: Edit config file directly

  **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`

  **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

  (The folder names may vary based on your PC language.)

  Add the same configuration shown above.

  ### Alternative proxy: mcp-remote

  If `supergateway` doesn't work, try `mcp-remote`:

  ```

  `{
    "mcpServers": {
      "rebrandly": {
        "command": "npx",
        "args": [
          "mcp-remote",
          "https://mcp.rebrandly.com/v1/mcp",
          "--header",
          "REBRANDLY_API_KEY: YOUR_API_KEY"
        ]
      }
    }
    }`
  ```

  > Note: mcp-remote may have connection stability issues. Use supergateway if you experience disconnections.

  ### Restart Claude Desktop

  After editing the configuration, completely quit and restart Claude Desktop for changes to take effect.

  ### Troubleshooting

  If the MCP server doesn't appear:

  1. Check that Node.js is installed: `node --version`

  2. Check the debug logs: `cat ~/.mcp-auth/*_debug.log`

  3. Test `mcp-remote` manually:

     ```bash
     npx mcp-remote https://mcp.rebrandly.com/v1/mcp --header "REBRANDLY_API_KEY: YOUR_API_KEY" --debug
     ```

  4. Ensure Claude Desktop is completely restarted (quit from menu bar, not just close window)

  ### Verification

  After configuration and restart, verify the connection by asking Claude Desktop:

  ```
  List my Rebrandly links
  ```
</Accordion>

<Accordion title="Gemini CLI">
  **Setup: One-liner command**

  Gemini CLI provides excellent HTTP transport support with header configuration.

  ### Requirements

  * **Gemini CLI** installed ([Installation Guide](https://github.com/google-gemini/gemini-cli))
  * **Node.js 20+** (for npx commands)

  ### Installation

  ```bash
  gemini mcp add --scope user --transport http --header "REBRANDLY_API_KEY: YOUR_API_KEY" rebrandly https://mcp.rebrandly.com/v1/mcp
  ```

  Replace `YOUR_API_KEY` with your actual Rebrandly API key.

  ### Options

  * `--scope user`: Makes the server available across all projects (recommended)
  * `--scope project`: Makes the server available only for the current project
  * `--trust`: Bypass tool confirmation prompts (use with caution)

  ### Example with Trust

  ```bash
  gemini mcp add --scope user --transport http --trust --header "REBRANDLY_API_KEY: YOUR_API_KEY" rebrandly https://mcp.rebrandly.com/v1/mcp
  ```

  ### Management Commands

  ```bash
  # List configured MCP servers
  gemini mcp list

  # Remove the server
  gemini mcp remove rebrandly
  ```

  ### Manual Configuration

  Alternatively, you can add the configuration directly to `~/.gemini/settings.json`:

  ```json
  {
    "mcpServers": {
      "rebrandly": {
        "httpUrl": "https://mcp.rebrandly.com/v1/mcp",
        "headers": {
          "REBRANDLY_API_KEY": "YOUR_API_KEY"
        }
      }
    }
  }
  ```

  <aside>
    **Note**: If you already have other settings in this file, merge the `mcpServers` section with your existing configuration.
  </aside>

  ### Verification

  After installation, verify the connection by running Gemini and asking:

  ```
  List my Rebrandly links
  ```
</Accordion>

<Accordion title="VS Code + GitHub Copilot">
  **Setup: JSON configuration file with stdio proxy**

  VS Code with GitHub Copilot supports MCP servers starting from VS Code 1.102+. Since Copilot attempts OAuth authentication for HTTP servers, we use `mcp-remote` as a stdio proxy.

  **Requirements**

  * VS Code 1.102 or later ([Download](https://code.visualstudio.com/))
  * GitHub Copilot Chat extension installed and enabled ([Marketplace](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat))
  * Node.js 20+ ([Download](https://nodejs.org/)) — required for mcp-remote proxy

  **Configuration File Location**

  * User-level: `~/.vscode/mcp.json`
  * Workspace-level: `.vscode/mcp.json` (in your project root)

  **Configuration (Recommended)**\
  VS Code Copilot attempts OAuth authentication for direct HTTP connections. Use `mcp-remote` as a stdio proxy to handle header-based authentication:

  ```json
  {
    "servers": {
      "rebrandly": {
        "type": "stdio",
        "command": "npx",
        "args": [
          "-y",
          "mcp-remote",
          "https://mcp.rebrandly.com/v1/mcp",
          "--header",
          "REBRANDLY_API_KEY: YOUR_API_KEY"
        ]
      }
    }
  }
  ```

  Replace YOUR\_API\_KEY with your actual Rebrandly API key.

  Starting the Server

  Open Command Palette (Cmd/Ctrl + Shift + P)

  Run MCP: List Servers

  Click Start next to the Rebrandly server

  Using in Copilot Chat

  Open Copilot Chat (click the icon in the title bar)

  Select Agent from the popup menu

  Use #tool\_name to invoke specific tools

  Troubleshooting If you see OAuth-related errors like "Error populating auth server metadata" or "User did not provide client details":

  This means VS Code is trying to use OAuth instead of header authentication

  Ensure you're using the stdio configuration with mcp-remote

  Restart VS Code after configuration changes
</Accordion>

<Accordion title="Amazon Q Developer">
  **Setup: JSON configuration file with stdio proxy**

  Amazon Q Developer supports MCP servers. Since Amazon Q attempts OAuth authentication for direct HTTP connections, we use `supergateway` as a stdio proxy to handle header-based authentication.

  ### Requirements

  * **Amazon Q Developer CLI** ([Installation Guide](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-installing.html)) OR
  * **Amazon Q Developer IDE extension** for VS Code or JetBrains ([VS Code](https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode))
  * **Node.js 20+** ([Download](https://nodejs.org/)) - required for supergateway proxy

  ### Configuration File Locations

  * **Global**: `~/.aws/amazonq/mcp.json`
  * **Workspace**: `.amazonq/mcp.json`

  ### Configuration (Recommended)

  Amazon Q attempts OAuth authentication for direct HTTP connections. Use `supergateway` as a stdio proxy to handle header-based authentication:

  Create or edit `~/.aws/amazonq/mcp.json`:

  ```json
  {
    "mcpServers": {
      "rebrandly": {
        "command": "npx",
        "args": [
          "-y",
          "supergateway",
          "--streamableHttp",
          "https://mcp.rebrandly.com/v1/mcp",
          "--header",
          "REBRANDLY_API_KEY:YOUR_API_KEY"
        ]
      }
    }
  }
  ```

  Replace `YOUR_API_KEY` with your actual Rebrandly API key.

  <aside>
    **Important**: Note the header format is `REBRANDLY_API_KEY:YOUR_API_KEY` (no space after the colon).
  </aside>

  ### Verification

  In Amazon Q CLI:

  ```bash
  q chat "What Rebrandly tools do you have access to?"
  ```

  ### Troubleshooting

  If you see OAuth-related errors like "Server requires OAuth" or "OAuth client registration failed":

  * This means Amazon Q is trying to use OAuth instead of header authentication
  * Ensure you're using the stdio configuration with `supergateway` (not direct HTTP)
  * Restart Amazon Q after configuration changes
    * Verify Node.js is installed: `node --version`
</Accordion>

<Accordion title="Claude Code">
  **Setup: One-liner command**

  Claude Code supports HTTP transport natively, making setup extremely simple.

  ### Requirements

  * **Claude Code CLI** installed ([Installation Guide](https://docs.anthropic.com/en/docs/claude-code))

  ### Installation at Global level

  ```bash
  claude mcp add --transport http -s user rebrandly https://mcp.rebrandly.com/v1/mcp --header "REBRANDLY_API_KEY: YOUR_API_KEY"
  ```

  ### Installation at folder level

  ```bash
  claude mcp add --transport http rebrandly https://mcp.rebrandly.com/v1/mcp --header "REBRANDLY_API_KEY: YOUR_API_KEY"
  ```

  Replace `YOUR_API_KEY` with your actual Rebrandly API key.

  ### Verification

  Start Claude Code by entering claude into your terminal, then ask Claude Code to list your links:

  ```
  List my Rebrandly links
  ```

  ### Management Commands

  ```bash
  # List configured MCP servers
  claude mcp list

  # Remove the server
  claude mcp remove rebrandly

  # Update your API key
  claude mcp remove rebrandly && claude mcp add --transport http rebrandly https://mcp.rebrandly.com/v1/mcp --header "REBRANDLY_API_KEY: NEW_API_KEY"
  ```
</Accordion>

<Accordion title="Cursor">
  **Setup: Via Settings UI (recommended) or JSON configuration file**

  Cursor supports MCP servers through its settings UI and configuration files.

  ### Requirements

  * **Cursor IDE** installed ([Download](https://cursor.sh/))
  ### Option 1: Via Cursor Settings UI (Recommended)
  The easiest way to configure the Rebrandly MCP server:

  1. Open Cursor
  2. Go to **Settings** (Cmd/Ctrl + ,)
  3. Navigate to **Tools & MCP** section
  4. Click **New MCP Server**
  5. Cursor will open the `mcp.json` file - paste the following configuration:

     ```json
     {
       "mcpServers": {
         "rebrandly": {
           "url": "https://mcp.rebrandly.com/v1/mcp",
           "headers": {
             "REBRANDLY_API_KEY": "YOUR_API_KEY"
           }
         }
       }
     }
     ```

  Replace `YOUR_API_KEY` with your actual Rebrandly API key.

  ### Option 2: Edit JSON Configuration File Directly

  Alternatively, create or edit `~/.cursor/mcp.json`:

  ```json
  {
    "mcpServers": {
      "rebrandly": {
        "url": "https://mcp.rebrandly.com/v1/mcp",
        "headers": {
          "REBRANDLY_API_KEY": "YOUR_API_KEY"
        }
      }
    }
  }
  ```

  Replace `YOUR_API_KEY` with your actual Rebrandly API key.

  ### Verification

  Open Cursor's AI chat and ask:

  ```jsx
  What Rebrandly tools are available?
  ```
</Accordion>

<Accordion title="Codex CLI">
  **Setup: One-liner command**

  Codex CLI supports streamable HTTP transport natively, making setup straightforward.

  ### Requirements

  * **Codex CLI** installed ([Installation Guide](https://developers.openai.com/codex/cli))
  * **Node.js 20+** ([Download](https://nodejs.org/))

  ### Installation

  ```bash
 codex mcp add rebrandly --env REBRANDLY_API_KEY=YOUR_API_KEY https://mcp.rebrandly.com/v1/mcp
  ```

  Replace `YOUR_API_KEY` with your actual Rebrandly API key.

  ### Manual configuration

  Alternatively, edit `~/.codex/config.toml` directly:

  ```toml
  [mcp_servers.rebrandly]
  url = "https://mcp.rebrandly.com/v1/mcp"

  [mcp_servers.rebrandly.headers]
  REBRANDLY_API_KEY = "YOUR_API_KEY"
  ```

  ### Management commands

  ```bash
  # List configured MCP servers
  codex mcp list

  # Remove the server
  codex mcp remove rebrandly
  ```

  ### Verification

  In the Codex TUI, run `/mcp` to confirm the Rebrandly server is listed, then ask:

  ```
  List my Rebrandly links
  ```
</Accordion>

<Accordion title="Other platforms">
  For other MCP-compatible tools not listed above, use this generic configuration pattern:

  ### HTTP Transport

  ```json
  {
    "mcpServers": {
      "rebrandly": {
        "transport": "http",
        "url": "https://mcp.rebrandly.com/v1/mcp",
        "headers": {
          "REBRANDLY_API_KEY": "YOUR_API_KEY"
        }
      }
    }
  }
  ```

  ### Environment Variables

  Many tools support environment variable substitution:

  ```json
  {
    "mcpServers": {
      "rebrandly": {
        "url": "https://mcp.rebrandly.com/v1/mcp",
        "headers": {
          "REBRANDLY_API_KEY": "${REBRANDLY_API_KEY}"
        }
      }
    }
  }
  ```

  Then set the environment variable:

  ```bash
  export REBRANDLY_API_KEY="your-api-key"
  ```


</Accordion>

## Security & Permissions

* **API keys** are stored locally in your AI assistant's configuration.
* **Account permissions** apply - you can only access what your Rebrandly user permissions allow.
* **Plan limits** still apply to link creation and other operations.
* **Best practice:** Use a dedicated API key for your MCP and don't share it or use it for other purposes. You can always create more keys.

***

Having issues? See [MCP troubleshooting](https://developers.rebrandly.com/docs/mcp-troubleshooting).