Skip to main content

Documentation Index

Fetch the complete documentation index at: https://dub-mcp-servers.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The Dub Links MCP server gives your AI agent native access to the full Dub Links platform through a single integration. You can manage links, track conversions, and retrieve analytics using natural language.
  • Links — Create, upsert, bulk-create, retrieve, list, update, bulk-update, delete, bulk-delete, and count links
  • Analytics — Retrieve analytics and list events for any link, domain, or workspace
  • QR codes — Retrieve a QR code for any link
  • Customers — List, retrieve, update, and delete customers
  • Tracking — Track lead, sale, and deep link open events
  • Domains — Create, list, update, and delete custom domains
  • Tags — Create, list, update, and delete tags
  • Folders — Create, list, update, and delete folders

Prerequisites

You’ll need a Dub API key to authenticate with the MCP server. You can create one in your Dub workspace settings.

Setup

Choose your MCP client below to get started. Replace dub_xxxxxx with your actual Dub API key.
Open Cursor SettingsMCPAdd new global MCP server and paste the following:
{
  "mcpServers": {
    "dub-links": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@0.1.25",
        "https://mcp.dub.sh/mcp/dub-links",
        "--header",
        "Mcp-Dub-Token:${MCP_DUB_TOKEN}"
      ],
      "env": {
        "MCP_DUB_TOKEN": "dub_xxxxxx"
      }
    }
  }
}

Available tools

ToolDescription
dub_retrieve_analyticsRetrieve analytics for a link, domain, or workspace. The response type depends on the event and type query parameters
dub_list_eventsRetrieve a paginated list of events for the authenticated workspace
ToolDescription
dub_get_qr_codeRetrieve a QR code for a link
ToolDescription
dub_get_customersRetrieve a paginated list of customers
dub_get_customerRetrieve a customer by ID. Prefix the ID with ext_ to look up by external ID
dub_update_customerUpdate a customer
dub_delete_customerDelete a customer from the workspace
ToolDescription
dub_track_leadTrack a lead event for a short link
dub_track_saleTrack a sale event for a short link
dub_track_openTrack when a user opens your app via a Dub-powered deep link (iOS and Android)
ToolDescription
dub_create_domainCreate a custom domain for the workspace
dub_list_domainsRetrieve a paginated list of domains
dub_update_domainUpdate a domain
dub_delete_domainDelete a domain and all its associated links
ToolDescription
dub_create_tagCreate a tag for the workspace
dub_get_tagsRetrieve a paginated list of tags
dub_update_tagUpdate a tag
dub_delete_tagDelete a tag. Existing links will no longer be associated with this tag
ToolDescription
dub_create_folderCreate a folder for the workspace
dub_list_foldersRetrieve a paginated list of folders
dub_update_folderUpdate a folder
dub_delete_folderDelete a folder. Existing links will no longer be associated with this folder