usefulapi

Dub MCP server. Short links with click, lead and sale analytics, customers, tags and the partner programme.

Claude

  1. Open Settings → Connectors → Add custom connector
  2. Paste this URL:
    https://dub.usefulapi.io/mcp
  3. Authenticate with Dub when prompted

Cursor · VS Code · Windsurf · Cline

Add to your MCP config, then reload & authorize:

{
  "mcpServers": {
    "dub": {
      "url": "https://dub.usefulapi.io/mcp"
    }
  }
}
live22 toolsFree 100 tool calls / monthPro $9/mo · $90/yr

Tools 22

ToolTypeWhat it does
dub_list_linksread
List short links
List short links, filtered by domain, tag, folder or a text search. Dub: GET /links.
dub_get_linkread
Get one short link
Fetch a single link by its id, its external id, or its domain plus key. Dub: GET /links/info.
dub_count_linksread
Count short links
Count links matching a filter, optionally grouped by domain, tag or folder. Cheaper than listing when you only need totals. Dub: GET /links/count.
dub_get_analyticsread
Get analytics
Get aggregated click, lead and sale analytics, grouped by a dimension such as country, device, referer or top links. The main reporting read. Dub: GET /analytics.
dub_list_eventsread
List raw events
List individual click, lead and sale events rather than aggregates — the row-level detail behind the analytics. Dub: GET /events.
dub_list_customersread
List customers
List the customers Dub has attributed to links, by email, external id or link. Dub: GET /customers.
dub_get_customerread
Get one customer
Fetch a single customer with their attribution. Dub: GET /customers/{id}.
dub_list_tagsread
List tags
List the tags available for organising links. Dub: GET /tags.
dub_list_foldersread
List folders
List link folders and their access levels. Dub: GET /folders.
dub_list_domainsread
List domains
List the short domains configured on the workspace. Dub: GET /domains.
dub_list_partnersread
List partners
List the partners (affiliates) in the programme, by status, country or email. Dub: GET /partners.
dub_get_partner_analyticsread
Get partner analytics
Get analytics for the partner programme — clicks, leads, sales and revenue per partner. Dub: GET /partners/analytics.
dub_list_partner_applicationsread
List partner applications
List pending applications to join the partner programme. Dub: GET /partners/applications.
dub_list_commissionsread
List commissions
List partner commissions, by partner, status, customer or time window. Dub: GET /commissions.
dub_list_payoutsread
List payouts
List partner payouts and their status. Dub: GET /payouts.
dub_create_linkwrite
Create a short link
Create a short link. Omit `key` to let Dub generate one. Dub: POST /links.
dub_update_linkwrite
Update a short link
Change a link's destination, key, tags or archived state. Dub: PATCH /links/{linkId}.
dub_delete_linkwrite
Delete a short link
Delete a short link. The URL stops resolving immediately and its analytics go with it. Dub: DELETE /links/{linkId}.
dub_create_tagwrite
Create a tag
Create a tag for organising links. Dub: POST /tags.
dub_create_folderwrite
Create a folder
Create a folder for grouping links. Dub: POST /folders.
dub_approve_partner_applicationwrite
Approve a partner application
Approve an application to join the partner programme. The partner gains links and starts earning commission. Dub: POST /partners/applications/approve.
dub_reject_partner_applicationwrite
Reject a partner application
Reject an application to join the partner programme. Dub: POST /partners/applications/reject.

Pricing

PlanPriceLimit
Free$0100 tool calls / month
Pro$9/mo · $90/yrUnlimited

This is a Model Context Protocol endpoint — meant to be connected from an AI client, not opened in a browser. An invalid_token response at the URL is the auth gate working as designed; clients authenticate automatically.