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 Partners MCP server gives your AI agent native access to the full Dub Partners platform through a single integration. You can manage your partner program, review applications, update commissions, and track attribution using natural language.

What can the Dub Partners MCP server do?

  • Partners — Create or update partners, list all partners, deactivate, or ban partners from your program
  • Partner links — Create and upsert links for enrolled partners
  • Applications — List, approve, and reject pending partner applications
  • Analytics — Retrieve analytics and list events for any link, domain, or workspace
  • Customers — List, retrieve, update, and delete customers
  • Tracking — Track lead, sale, and deep link open events
  • Bounties — List, approve, and reject bounty submissions
  • Commissions — List and update commissions (e.g. for refunds or fraud)
  • Payouts — List payouts for your partner program

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-partners": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@0.1.25",
        "https://mcp.dub.sh/mcp/dub-partners",
        "--header",
        "Mcp-Dub-Token:${MCP_DUB_TOKEN}"
      ],
      "env": {
        "MCP_DUB_TOKEN": "dub_xxxxxx"
      }
    }
  }
}

Available tools

ToolDescription
dub_create_partnerCreate or update a partner (upsert). If a partner with the same email already exists, their program enrollment is updated
dub_list_partnersList all partners enrolled in a program
dub_deactivate_partnerDeactivate a partner and disable all their active links. Commissions and payouts remain intact
dub_ban_partnerBan a partner from your program. All links are disabled and commissions are canceled
dub_create_partner_linkCreate a link for a partner enrolled in your program
dub_upsert_partner_linkUpsert a link for a partner — returns the existing link or creates a new one
ToolDescription
dub_list_partner_applicationsRetrieve a paginated list of pending applications for your partner program
dub_approve_partner_applicationApprove a pending partner application. The partner is enrolled in the specified group and notified
dub_reject_partner_applicationReject a pending partner application. The partner is notified via email
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_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_list_bounty_submissionsList all submissions for a specific bounty in your partner program
dub_approve_bounty_submissionApprove a bounty submission. Optionally specify a custom reward amount
dub_reject_bounty_submissionReject a bounty submission with a specified reason and optional note
ToolDescription
dub_list_commissionsRetrieve a paginated list of commissions for your partner program
dub_update_commissionUpdate an existing commission amount. Useful for handling refunds or fraudulent sales
ToolDescription
dub_list_payoutsRetrieve a paginated list of payouts for your partner program